Last active
August 29, 2015 14:27
-
-
Save gbabula/b77864c6b8e3835f6c6f to your computer and use it in GitHub Desktop.
g5-component NPM scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"serve": "http-server -p 9966", | |
"start": "npm run serve & npm run build", | |
"start-dev": "npm run serve & npm run watch", | |
"build-js": "browserify -u bootstrap -u jquery -u lodash -u isomorphic-fetch src/scripts/g5-component.js --s 'g5-component' | uglifyjs -mc drop_console > src/static/g5-component.js", | |
"build-js-vendor": "browserify -r bootstrap -r jquery -r lodash -r isomorphic-fetch | uglifyjs -mc > src/static/g5-component-vendor.js", | |
"build-js-full": "browserify src/scripts/g5-component.js --s 'g5-component' | uglifyjs -mc drop_console > src/static/g5-component.js", | |
"build-css": "lessc src/styles/component.less > src/static/bundle.css", | |
"build": "npm run build-js", | |
"watch-js": "watchify -u bootstrap -u jquery -u lodash -u isomorphic-fetch src/scripts/g5-component.js --s 'g5-component' -o src/static/g5-component.js -dv", | |
"watch-css": "catw -w -c 'lessc -' 'src/styles/component.less' -o src/static/bundle.css -v", | |
"watch": "npm run watch-js", | |
"test": "babel-tape-runner test/*.js | tap-spec", | |
"pretest": "echo 'Checking code via babel-tape-runner'", | |
"posttest": "echo 'tests successfully passed!'", | |
"lint": "jshint src/scripts/ || true", | |
"prelint": "echo 'Checking code via JSHint...'", | |
"postlint": "echo 'Code is lint free, great success!'" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment