0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-16 23:20:54 +03:00

JS minification using closure-compiler

The compiler should be in your PATH.
This commit is contained in:
Alexander Yakovlev 2016-09-12 12:23:18 +07:00
parent faf0797b21
commit 784ca8609f
3 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,4 @@
node_modules
src
npm-debug.log
lib/index.js

View file

@ -30,3 +30,8 @@ task 'build', 'Compile all CoffeeScript files', ->
util.log err
process.exit 1 # abort npm packaging
util.log "Compiled CoffeeScript."
exec "closure-compiler --js_output_file lib/index.min.js lib/index.js", (err) ->
if err
util.log err
process.exit 1 # abort npm packaging
util.log "Minified JavaScript."

View file

@ -18,7 +18,7 @@
"devDependencies": {
"coffee-script": "*"
},
"main": "lib/index.js",
"main": "lib/index.min.js",
"repository": {
"type" : "git",
"url" : "https://git.oreolek.ru/oreolek/salet-module"