|
|
|
@ -17,47 +17,28 @@
|
|
|
|
|
"url": "https://opensource.org/licenses/GPL-3.0" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"browserslist": [ |
|
|
|
|
"last 2 versions", |
|
|
|
|
"android 4", |
|
|
|
|
"opera 12" |
|
|
|
|
], |
|
|
|
|
"browserslist": ["last 2 versions", "android 4", "opera 12"], |
|
|
|
|
"eslintConfig": { |
|
|
|
|
"extends": "humanmade", |
|
|
|
|
"globals": { |
|
|
|
|
"jQuery": true, |
|
|
|
|
"wp": true |
|
|
|
|
}, |
|
|
|
|
"rules": { |
|
|
|
|
"jsx-a11y/href-no-hash": 0 |
|
|
|
|
} |
|
|
|
|
"extends": "./node_modules/pressbooks-build-tools/config/eslint.js" |
|
|
|
|
}, |
|
|
|
|
"stylelint": { |
|
|
|
|
"extends": [ |
|
|
|
|
"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" |
|
|
|
|
} |
|
|
|
|
"extends": "./node_modules/pressbooks-build-tools/config/stylelint.js" |
|
|
|
|
}, |
|
|
|
|
"scripts": { |
|
|
|
|
"build": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", |
|
|
|
|
"build:production": "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", |
|
|
|
|
"build": |
|
|
|
|
"cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", |
|
|
|
|
"build:production": |
|
|
|
|
"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", |
|
|
|
|
"lint": "npm run -s lint:scripts && npm run -s lint:styles", |
|
|
|
|
"lint:scripts": "node_modules/eslint/bin/eslint.js \"resources/assets/scripts/*.js\"", |
|
|
|
|
"lint:styles": "node_modules/stylelint/bin/stylelint.js \"resources/assets/styles/**/*.scss\" --syntax scss", |
|
|
|
|
"lint:scripts": |
|
|
|
|
"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" |
|
|
|
|
}, |
|
|
|
|
"engines": { |
|
|
|
|