Last active
July 16, 2018 09:13
-
-
Save htor/cb9b5b5937f74333e6398b363bf63d87 to your computer and use it in GitHub Desktop.
portable (verbose) package.json
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": "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