...
|
...
|
@@ -15,10 +15,20 @@ |
|
|
"build:dll": "webpack --config ./public/build/webpack.dll.indexcss.config.js",
|
|
|
"build": "webpack --config ./public/build/webpack.dll.indexcss.config.js && webpack --config ./public/build/webpack.prod.config.js",
|
|
|
"debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js",
|
|
|
"lint-js": "lint-js",
|
|
|
"lint-css": "lint-css",
|
|
|
"lint-all": "lint-all",
|
|
|
"precommit": "lint-commit"
|
|
|
"lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.{scss,css,vue}",
|
|
|
"lint-js": "eslint --ext .js,.vue --cache --format table .",
|
|
|
"lint-all": "echo \"JS: \";npm run -s lint-js;echo \"CSS: \";npm run -s lint-css",
|
|
|
"precommit": "lint-staged"
|
|
|
},
|
|
|
"lint-staged": {
|
|
|
"*.{js,vue}": [
|
|
|
"npm run lint-js -- --fix",
|
|
|
"git add"
|
|
|
],
|
|
|
"*.{scss,css,vue}": [
|
|
|
"npm run lint-css -- --fix",
|
|
|
"git add"
|
|
|
]
|
|
|
},
|
|
|
"config": {
|
|
|
"lintJs": [
|
...
|
...
|
@@ -98,6 +108,7 @@ |
|
|
"husky": "^0.14.3",
|
|
|
"intersection-observer": "^0.5.0",
|
|
|
"jquery-lazyload": "^1.9.7",
|
|
|
"lint-staged": "^7.0.4",
|
|
|
"lozad": "^1.0.9",
|
|
|
"nodemon": "^1.14.10",
|
|
|
"postcss": "^6.0.16",
|
...
|
...
|
@@ -140,7 +151,6 @@ |
|
|
"yoho-jquery": "^2.2.4",
|
|
|
"yoho-jquery-lazyload": "^1.9.12",
|
|
|
"yoho-jquery-qrcode": "^0.14.0",
|
|
|
"yoho-lint": "^1.0.2",
|
|
|
"yoho-qs": "^1.0.1",
|
|
|
"yoho-swiper": "^3.3.2",
|
|
|
"yoho-swiper2": "0.0.5"
|
...
|
...
|
|