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:
parent
faf0797b21
commit
784ca8609f
|
@ -1,3 +1,4 @@
|
|||
node_modules
|
||||
src
|
||||
npm-debug.log
|
||||
lib/index.js
|
||||
|
|
5
Cakefile
5
Cakefile
|
@ -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."
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue