Skip to content

Instantly share code, notes, and snippets.

@asuh
Last active December 19, 2019 21:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save asuh/e33a56fb17470eb3680528bd9cb808c0 to your computer and use it in GitHub Desktop.
Save asuh/e33a56fb17470eb3680528bd9cb808c0 to your computer and use it in GitHub Desktop.
NPM only, no Grunt, Gulp, Broccoli or Brunch
{
"name": "_s",
"version": "1.0.1",
"scripts": {
"clean": "rimraf style.css",
"notify": "notify -h",
"serve": "browser-sync start --proxy 'my.asuh' --files '**/*.css, **/*.js, *.php, **/*.json, dist/images/*'",
"imagemin": "imagemin src/images/* -o dist/images",
"icons": "svgo -f src/images/icons -o dist/images/icons && svg-sprite-generate -d dist/images/icons -o dist/images/icons/sprite.svg",
"lint-scss": "stylelint 'sass/**/*.scss' --syntax scss --config node_modules/stylelint-config-wordpress/scss.js",
"scss": "node-sass sass/style.scss style.css --output-style compressed --source-map true",
"autoprefixer": "postcss -u autoprefixer -r style.css",
"css-format": "stylefmt style.css",
"css-fix": "stylelint style.css --fix",
"build:css": "run-s scss autoprefixer",
"build:images": "run-s imagemin icons",
"build": "run-s build:*",
"watch:css": "onchange 'sass' -- run-s build:css",
"watch:images": "onchange 'src/images' -- run-s build:images",
"watch": "run-p serve watch:*",
"dev": "run-p watch:*"
},
"devDependencies": {
"autoprefixer": "^7.1.4",
"browser-sync": "^2.18.13",
"browserslist": "^2.4.0",
"imagemin-cli": "^3.0.0",
"node-sass": "^4.5.3",
"node-notifier-cli": "^1.0.1",
"npm-run-all": "^4.1.1",
"postcss-cli": "^4.1.1",
"onchange": "^3.2.1",
"rimraf": "^2.6.2",
"stylefmt": "^6.0.0",
"stylelint": "^8.1.1",
"stylelint-config-wordpress": "^12.0.0",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.7.2"
},
"stylelint": {
"defaultSeverity": "warning",
"extends": "stylelint-config-wordpress"
},
"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