Created
February 13, 2019 03:56
-
-
Save chalist/4a234639a5794a655a2407fe1aaa9793 to your computer and use it in GitHub Desktop.
pckage.json for coompile and lint scss files and minify css, lint and minify js, inject css with browserSync and watch files
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
{ | |
"name": "bookism", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"scss": "node-sass --output-style compressed --watch src/scss -o dist/css", | |
"serve": "browser-sync start --proxy 0.0.0.0:9999 --files 'dist/css/*.css'", | |
"clean": "rimraf dist/{css/*,js/*}", | |
"lint": "eslint src/js || true", | |
"lint-scss": "stylelint src/scss/*.scss --syntax scss || true", | |
"uglify": "mkdirp dist/js -p && uglifyjs src/js/*.js -m -o dist/js/app.js && uglifyjs dist/js/*.js -m -c -o dist/js/app.min.js", | |
"build:css": "run-s lint-scss scss", | |
"build:js": "run-s lint uglify", | |
"build": "run-s build:*", | |
"watch:css": "onchange \"src/scss\" -- run-s build:css", | |
"watch:js": "onchange \"src/js\" -- run-s build:js", | |
"watch": "run-p serve watch:*", | |
"postinstall": "run-s build watch" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"browser-sync": "^2.26.3", | |
"eslint": "^5.13.0", | |
"eslint-config-standard": "^12.0.0", | |
"eslint-plugin-promise": "^4.0.1", | |
"eslint-plugin-standard": "^4.0.0", | |
"mkdirp": "^0.5.1", | |
"node-sass": "^4.11.0", | |
"npm-run-all": "^4.1.5", | |
"onchange": "^5.2.0", | |
"rimraf": "^2.6.3", | |
"stylelint": "^9.10.1", | |
"stylelint-config-standard": "^18.2.0", | |
"uglify-js": "^3.4.9" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment