Skip to content

Instantly share code, notes, and snippets.

@clohr
Last active October 2, 2015 06:55
Show Gist options
  • Save clohr/21e9d09a03ce8e982309 to your computer and use it in GitHub Desktop.
Save clohr/21e9d09a03ce8e982309 to your computer and use it in GitHub Desktop.
NPM Build Pipeline Scripts
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "babel-node ./node_modules/.bin/blue-tape ./test/**/*.spec.js | faucet",
"cover": "babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/tape ./lib/*.js --report html --dir ./test/coverage",
"audit": "nsp package",
"validate": "npm run audit & npm outdated --depth 0",
"start": "babel-node server.js",
"start-dev": "nodemon --ignore node_modules/ --ignore client/ --ignore test/ server.js",
"build-assets": "npm run build-css & npm run build-js",
"build-css": "node-sass --include-path ./node_modules/node-bourbon/node_modules/bourbon/app/assets/stylesheets --output-style compressed ./client/src/scss/main.scss -o ./client/dist/css/main.css",
"build-js": "browserify -d -t babelify ./client/src/js/main.js -o ./client/dist/js/main.js",
"watch-assets": "npm run watch-css & npm run watch-js",
"watch-css": "node-sass --watch ./client/src/scss/ --include-path ./node_modules/node-bourbon/node_modules/bourbon/app/assets/stylesheets --output-style compressed ./client/src/scss/main.scss -o ./client/dist/css",
"watch-js": "watchify -d -t babelify ./client/src/js/**/*.js -o ./client/dist/js/main.js"
},
"author": "Christian Lohr <christian.lohr@gmail.com>",
"repository": "",
"license": "MIT",
"devDependencies": {
"babel": "^5.8.5",
"babel-eslint": "^4.0.0",
"babelify": "^6.1.3",
"blue-tape": "^0.1.10",
"browserify": "^11.0.0",
"faucet": "0.0.1",
"isparta": "^3.0.3",
"istanbul": "^0.3.17",
"node-bourbon": "^4.2.3",
"node-sass": "^3.2.0",
"nodemon": "^1.3.7",
"nsp": "^1.0.3",
"uglify": "^0.1.5",
"watchify": "^3.3.0"
},
"dependencies": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment