node package manager


Conactenate and minify javscripts files


Used to build javascript: it allow to make a config file for the javascripts files you want to concatenate and minify in one file.

$javascript-packager [--watch] ][--path] [--jsFile] [--destDir] [--destFile] [--debug]

--watch: watch the javascript folder for changes, if changes concatenate and minify the javascripts files another time

--path: path to js files

--jsFile: javascript configuration file, every importation line must start by @import:

--destDir: destination directory for the concatenated and minifyed js files

--destFile: name of the concatenated and minifyed files withtout .js

--debug: enable debug message in the console

@import: script1.js
@import: script2.js
@import: scriptX.js
$javascript-packager --watch --jsFile src/js/javascript.config --destDir ../../workspace/build/src/js --destFile file