Browse Source

Add default config.

pull/39/head
Ned Zimmerman 7 years ago
parent
commit
4bfeb220d3
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 49
      package.json

49
package.json

@ -17,47 +17,28 @@
"url": "https://opensource.org/licenses/GPL-3.0" "url": "https://opensource.org/licenses/GPL-3.0"
} }
], ],
"browserslist": [ "browserslist": ["last 2 versions", "android 4", "opera 12"],
"last 2 versions",
"android 4",
"opera 12"
],
"eslintConfig": { "eslintConfig": {
"extends": "humanmade", "extends": "./node_modules/pressbooks-build-tools/config/eslint.js"
"globals": {
"jQuery": true,
"wp": true
},
"rules": {
"jsx-a11y/href-no-hash": 0
}
}, },
"stylelint": { "stylelint": {
"extends": [ "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js"
"stylelint-config-recommended-scss",
"./node_modules/prettier-stylelint/config.js"
],
"rules": {
"media-feature-name-no-unknown": [
true,
{
"ignoreMediaFeatureNames": [
"min--moz-device-pixel-ratio"
]
}
],
"media-query-list-comma-space-after": "always-single-line"
}
}, },
"scripts": { "scripts": {
"build": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "build":
"build:production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build:profile": "cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js", "build:production":
"start": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build:profile":
"cross-env NODE_ENV=production webpack --progress --profile --json --config=node_modules/laravel-mix/setup/webpack.config.js",
"start":
"cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"rmdist": "rimraf dist", "rmdist": "rimraf dist",
"lint": "npm run -s lint:scripts && npm run -s lint:styles", "lint": "npm run -s lint:scripts && npm run -s lint:styles",
"lint:scripts": "node_modules/eslint/bin/eslint.js \"resources/assets/scripts/*.js\"", "lint:scripts":
"lint:styles": "node_modules/stylelint/bin/stylelint.js \"resources/assets/styles/**/*.scss\" --syntax scss", "node_modules/eslint/bin/eslint.js \"resources/assets/scripts/*.js\"",
"lint:styles":
"node_modules/stylelint/bin/stylelint.js \"resources/assets/styles/**/*.scss\" --syntax scss",
"test": "npm run -s lint" "test": "npm run -s lint"
}, },
"engines": { "engines": {

Loading…
Cancel
Save