2020-06-20 18:16:50 +00:00
|
|
|
{
|
|
|
|
|
"name": "my-blog",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"description": "My blog",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build-dev:webpack": "webpack",
|
|
|
|
|
"watch:webpack": "webpack --watch",
|
2020-08-26 11:12:47 +00:00
|
|
|
"watch:eleventy": "cross-env ELEVENTY_ENV=development eleventy --serve",
|
2020-06-20 18:16:50 +00:00
|
|
|
"dev": "npm-run-all clean build-dev:webpack --parallel watch:*",
|
2020-08-26 11:12:47 +00:00
|
|
|
"build:webpack": "cross-env NODE_ENV=production webpack --mode production",
|
|
|
|
|
"build:eleventy": "cross-env ELEVENTY_ENV=production eleventy",
|
2020-06-20 18:16:50 +00:00
|
|
|
"build": "run-s clean build:*",
|
|
|
|
|
"serve:local": "serve _site",
|
|
|
|
|
"serve": "run-s build serve:local",
|
|
|
|
|
"clean": "rimraf _site",
|
|
|
|
|
"format:js": "prettier '**/*.js' --write && eslint '**/*.js' --fix",
|
|
|
|
|
"format:json": "prettier '**/*.json' --write",
|
|
|
|
|
"format": "run-s format:*",
|
|
|
|
|
"lint": "eslint --ext .js ."
|
|
|
|
|
},
|
|
|
|
|
"license": "ISC",
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@11ty/eleventy": "^0.11.0",
|
|
|
|
|
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
|
2020-08-10 13:15:54 +00:00
|
|
|
"autoprefixer": "^9.8.6",
|
|
|
|
|
"copy-webpack-plugin": "^6.0.3",
|
2020-08-26 11:12:47 +00:00
|
|
|
"cross-env": "^7.0.2",
|
2020-08-10 13:15:54 +00:00
|
|
|
"css-loader": "^4.2.1",
|
2020-06-20 18:16:50 +00:00
|
|
|
"cssnano": "^4.1.10",
|
2020-08-10 13:15:54 +00:00
|
|
|
"date-fns": "^2.15.0",
|
|
|
|
|
"eleventy-plugin-lazyimages": "^2.0.1",
|
2020-10-04 14:18:27 +00:00
|
|
|
"eslint": "^7.10.0",
|
2020-06-20 18:16:50 +00:00
|
|
|
"eslint-config-airbnb-base": "^14.2.0",
|
2020-10-04 14:18:27 +00:00
|
|
|
"eslint-plugin-import": "^2.22.1",
|
2020-06-20 18:16:50 +00:00
|
|
|
"file-loader": "^6.0.0",
|
|
|
|
|
"glob": "^7.1.6",
|
|
|
|
|
"html-minifier": "^4.0.0",
|
|
|
|
|
"html-webpack-plugin": "^4.3.0",
|
|
|
|
|
"husky": "^4.2.5",
|
|
|
|
|
"image-webpack-loader": "^6.0.0",
|
2020-08-10 13:15:54 +00:00
|
|
|
"lint-staged": "^10.2.11",
|
2020-06-20 18:16:50 +00:00
|
|
|
"mini-css-extract-plugin": "^0.9.0",
|
|
|
|
|
"npm-run-all": "^4.1.5",
|
|
|
|
|
"postcss-loader": "^3.0.0",
|
2020-10-04 14:18:27 +00:00
|
|
|
"prettier": "^2.1.2",
|
2020-06-20 18:16:50 +00:00
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
|
"serve": "^11.3.2",
|
2020-08-10 13:15:54 +00:00
|
|
|
"tailwindcss": "^1.6.2",
|
|
|
|
|
"webpack": "^4.44.1",
|
|
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
|
|
"webpack-fix-style-only-entries": "^0.5.1"
|
2020-06-20 18:16:50 +00:00
|
|
|
},
|
|
|
|
|
"husky": {
|
|
|
|
|
"hooks": {
|
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"lint-staged": {
|
|
|
|
|
"*.js": [
|
|
|
|
|
"prettier --write",
|
|
|
|
|
"eslint --fix",
|
|
|
|
|
"eslint"
|
|
|
|
|
],
|
|
|
|
|
"*.json": [
|
|
|
|
|
"prettier --write"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|