Skip to content

Instantly share code, notes, and snippets.

@m-e-h
Last active March 12, 2018 20:15
Show Gist options
  • Select an option

  • Save m-e-h/53724371e5be6d52a8305a797086c82e to your computer and use it in GitHub Desktop.

Select an option

Save m-e-h/53724371e5be6d52a8305a797086c82e to your computer and use it in GitHub Desktop.
starter package.json
{
"name": "abc",
"version": "1.0.0",
"description": "A starter theme for WordPress.",
"main": "index.js",
"scripts": {
"build": "npm-run-all --parallel scss:compile js:build --sequential css:prefix css:minify",
"dev": "npm-run-all --parallel css:watch js:watch",
"scss:compile": "node-sass --output-style expanded resources/styles -o resources/dist/styles",
"css:prefix": "postcss -u autoprefixer -r resources/dist/styles/*",
"css:minify": "postcss resources/dist/styles/screen.css -u cssnano -o resources/dist/styles/screen.min.css --no-map",
"css:watch": "node-sass --output-style expanded resources/styles -o resources/dist/styles --watch",
"js:build": "webpack --module-bind 'js=babel-loader' ./resources/scripts/*.js --output ./resources/dist/scripts/app.js --mode production",
"js:watch": "webpack --module-bind 'js=babel-loader' ./resources/scripts/*.js --output ./resources/dist/scripts/app.js --mode development --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/justintadlock/abc.git"
},
"author": "Justin Tadlock",
"license": "GPL-2.0+",
"bugs": {
"url": "https://github.com/justintadlock/abc/issues"
},
"homepage": "https://github.com/justintadlock/abc#readme",
"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"autoprefixer": "^8.1.0",
"babel-loader": "8.0.0-beta.2",
"browserslist": "^3.1.2",
"cssnano": "^3.10.0",
"make-dir-cli": "^1.0.0",
"node-sass": "^4.7.2",
"npm-run-all": "^4.1.2",
"postcss-cli": "^5.0.0",
"postcss-import": "^11.1.0",
"webpack": "^4.1.1",
"webpack-cli": "^2.0.11"
},
"babel": {
"presets": ["@babel/env"]
},
"browserslist": [
"> 1%",
"ie >= 11",
"last 1 Android versions",
"last 1 ChromeAndroid versions",
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 Edge versions",
"last 2 Opera versions"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment