Created
February 22, 2016 16:26
-
-
Save cfxd/670dcb75617f38185697 to your computer and use it in GitHub Desktop.
Knight Digital package.json starter
This file contains hidden or 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": "knight_digital_starter", | |
"version": "1.0.0", | |
"author": "Knight Digital <[email protected]>", | |
"scripts": { | |
"autoprefixer": "postcss -u autoprefixer -r static/dist/css/*", | |
"scss": "node-sass --output-style compressed -o static/dist/css static/src/scss", | |
"lint": "eslint static/src/js", | |
"uglify": "mkdir -p static/dist/js && uglifyjs static/src/js/*.js -m -o static/dist/js/app.js && uglifyjs static/src/js/*.js -m -c -o static/dist/js/app.min.js", | |
"imagemin": "imagemin static/src/img static/dist/img -p", | |
"build:css": "npm run scss && npm run autoprefixer", | |
"build:js": "npm run lint && npm run uglify", | |
"build:images": "npm run imagemin", | |
"build:all": "npm run build:css && npm run build:js && npm run build:images", | |
"watch:css": "onchange 'static/src/scss/*.scss' -- npm run build:css", | |
"watch:js": "onchange 'static/src/js/*.js' -- npm run build:js", | |
"watch:all": "parallelshell 'npm run watch:css' 'npm run watch:js'", | |
"postinstall": "mkdir -p static/dist/js && mkdir -p static/dist/css && mkdir -p static/dist/img && mkdir -p static/src/scss && mkdir -p static/src/js && mkdir -p static/src/img && touch static/src/scss/main.scss && touch static/src/js/app.js && npm run watch:all" | |
}, | |
"devDependencies": { | |
"autoprefixer": "latest", | |
"eslint": "latest", | |
"eslint-config-standard": "latest", | |
"eslint-plugin-standard": "latest", | |
"imagemin-cli": "latest", | |
"node-sass": "latest", | |
"onchange": "latest", | |
"parallelshell": "latest", | |
"uglify-js": "latest", | |
"postcss-cli": "latest", | |
"touch": "latest" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment