g5-component NPM scripts
"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