Skip to content

Commit

Permalink
Rakefile: Use terser
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Jun 26, 2024
1 parent 45ba067 commit e71142e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ has similar API to [DXRuby](http://dxruby.osdn.jp/)

see https://yhara.github.io/dxopal/

## Development

- `rake build` to make build/dxopal.js
- `rake build_min` to make build/dxopal.min.js (You need `npm install -g terser`)
- `rake api` to build yardoc
- `rake server` to preview website

## License

MIT (including images and sounds under examples/)
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ desc "Build dxopal.js and dxopal.min.js"
task :build_min => "build/dxopal.min.js"

file "build/dxopal.min.js" => "build/dxopal.js" do |t|
sh "uglifyjs #{t.source} -o #{t.name}"
sh "terser #{t.source} -o #{t.name}"
end

file "build/dxopal.js" => Dir["lib/**/*.rb"] do |t|
Expand Down

0 comments on commit e71142e

Please sign in to comment.