Skip to content

Instantly share code, notes, and snippets.

@htor

htor/package.json

Last active Jul 16, 2018
Embed
What would you like to do?
portable (verbose) package.json
{
"name": "portable-npm-scripts",
"version": "0.0.2",
"private": true,
"dependencies": { ... },
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"browserify": "^14.5.0",
"cross-env": "^5.2.0",
"csso-cli": "^1.1.0",
"glob-exec": "^0.1.1",
"minicat": "^1.0.0",
"mkdirp": "^0.5.1",
"npm-run-all": "^4.1.3",
"postcss-cli": "^5.0.0",
"postcss-cssnext": "^3.1.0",
"postcss-import": "^11.1.0",
"rimraf": "^2.6.2",
"tinyify": "^2.4.0",
"watchify": "^3.9.0"
},
"scripts": {
"postinstall": "mkdirp database uploads public/styles public/scripts",
"build": "npm-run-all -p build-css build-js",
"build-min": "npm-run-all -p build-css-min build-js-min",
"build-css": "postcss styles -u postcss-import -u postcss-cssnext -d public/styles",
"build-css-min": "cd styles && glob-exec --parallel --foreach \"*.css\" -- \"minicat {{file}} | postcss -u postcss-import -u postcss-cssnext | csso > ../public/styles/{{file}}\"",
"build-js": "glob-exec --parallel --foreach \"scripts/*.js\" -- \"browserify {{file}} -t [ babelify --presets [ env ] ] > public/{{file}}\"",
"build-js-min": "glob-exec --parallel --foreach \"scripts/*.js\" -- \"browserify -p [ tinyify --no-flat ] {{file}} -t [ babelify --presets [ env ] ] > public/{{file}}\"",
"watch-css": "postcss styles -w -u postcss-import -u postcss-cssnext -d public/styles",
"watch-js": "glob-exec --parallel --foreach \"scripts/*.js\" -- \" watchify {{file}} -t [ babelify --presets [ env ] ] -o public/{{file}} -dv\"",
"watch": "npm-run-all -p watch-css watch-js",
"start": "npm-run-all -p watch serve",
"start-prod": "cross-env NODE_ENV=production node keystone",
"start-db": "mongod --storageEngine=mmapv1 --dbpath database",
"serve": "node keystone",
"clean": "rimraf public/scripts/* public/styles/*"
},
"author": "htor",
"license": "MIT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.