Skip to content

Instantly share code, notes, and snippets.

@brightredchilli
Created December 14, 2017 19:34
Show Gist options
  • Save brightredchilli/f094bf35c832b88c1f02a7f329da629d to your computer and use it in GitHub Desktop.
Save brightredchilli/f094bf35c832b88c1f02a7f329da629d to your computer and use it in GitHub Desktop.
A sane default for web development
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"autoprefixer": "^7.2.3",
"babel-core": "^6.26.0",
"babelify": "^8.0.0",
"browserify": "^14.5.0",
"node-sass": "^4.7.2",
"npm-run-all": "^4.1.2",
"onchange": "^3.3.0",
"parallelshell": "^3.0.2",
"postcss-cli": "^4.1.1",
"watchify": "^3.9.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"css-build": "node-sass --source-map true --output-style expanded sass/main.scss -- glob -o static/css/",
"css-prefix": "postcss --config build/postcss.config.js --replace \"static/css/*. css\"",
"css-watch": "onchange sass/** -i -- npm run css",
"css": "npm-run-all --sequential css-build css-prefix",
"js-watch": "onchange js/** -i -- npm run js-build",
"js-build": "browserify js/main.js -t babelify --presets env --outfile static/js/ bundle.js",
"run-debug": "export FLASK_APP=app.py;export FLASK_DEBUG=1; flask run",
"watch": "parallelshell 'npm run css-watch' 'npm run js-watch' 'npm run run-debug'"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment