Skip to content

Instantly share code, notes, and snippets.

@asuh
Last active December 19, 2019 21:11
Show Gist options
  • Select an option

  • Save asuh/e33a56fb17470eb3680528bd9cb808c0 to your computer and use it in GitHub Desktop.

Select an option

Save asuh/e33a56fb17470eb3680528bd9cb808c0 to your computer and use it in GitHub Desktop.

Revisions

  1. asuh revised this gist Sep 30, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@
    "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:*"
    "watch": "run-p serve watch:*",
    "dev": "run-p watch:*"
    },
    "devDependencies": {
  2. asuh revised this gist Sep 30, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    {
    "name": "_s",
    "version": "1.0.0",
    "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 expanded --indent-type tab --indent-width 1 --source-map true",
    "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",
    @@ -18,6 +18,7 @@
    "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",
    @@ -51,6 +52,5 @@
    "last 2 iOS versions",
    "last 2 Edge versions",
    "last 2 Opera versions"
    ],
    "dependencies": {}
    ]
    }
  3. asuh created this gist Sep 23, 2017.
    56 changes: 56 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    {
    "name": "_s",
    "version": "1.0.0",
    "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 expanded --indent-type tab --indent-width 1 --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:*"
    },
    "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"
    ],
    "dependencies": {}
    }