This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
125 lines (125 loc) · 5.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"//": [
"# Package JSON",
" ",
"Global comment technique by Isaac Schlueter https://stackoverflow.com/a/14221781",
" ",
"## Scripts",
" ",
"build - Create production ready minified versions of all assets.",
"packages-update - Update wp-scripts packages.",
"start - Compile and watch all JS and SCSS files in the plugin.",
"wpcs - Check, and fix phpcs issues. Or you can just use wpcs:check",
" or wpcs:fix.",
" ",
" Note: wpcs is dependent on the correct installation and",
" configuration of phpcs and the WordPress coding standards",
" ",
"## Dev Dependencies",
" ",
"### WP Scripts",
" ",
"The base configuration for Webpack is imported via the dependency:",
"- @wordpress/scripts",
" ",
"### SCSS",
" ",
"SCSS is compiled via the MiniCssExtractPlugin in Webpack using the dependencies:",
"- css-loader",
"- sass-loader",
"- mini-css-extract-plugin",
"- node-sass",
" ",
"### Ignore Files",
" ",
"Files created by Webpack when SCSS files are parsed are prevented from being",
"emitted via IgnoreEmitWebpackPlugin with the following dependency:",
"- ignore-emit-webpack-plugin",
" ",
"### CSS Cross Browser Support and Polyfills",
" ",
"Additional config is fed into MiniCssExtractPlugin in Webpack to auto append",
"cross browser support and polyfills, via the dependencies:",
"- postcss-loader",
"- postcss-preset-env",
" ",
"### Minify CSS",
" ",
"CSS is minimized with the OptimizeCssAssetsWebpackPlugin plugin in Webpack using",
"the dependency:",
"- optimize-css-assets-webpack-plugin",
" ",
"### Minify JS",
" ",
"JS is minimized with the TerserWebPackPlugin plugin in Webpack using the",
"dependency:",
"- terser-webpack-plugin",
" ",
"### Lint and Tidy your SCSS",
" ",
"Format, autofix and tidy up your Sass with StylelintWebpackPlugin in Webpack",
"with the dependencies:",
"- stylelint",
"- stylelint-order",
"- stylelint-webpack-plugin",
" ",
"### Lint and Tidy your JS",
" ",
"Format, autofix and tidy up your JS with `eslint-loader` in Webpack",
"with the dependencies:",
"- eslint",
"- eslint-config-airbnb",
"- eslint-plugin-import",
" ",
"### Friendly Errors from Webpack",
" ",
"Use FriendlyErrorsWebpackPlugin in Webpack to get easy to read errors with the",
"dependency:",
"- friendly-errors-webpack-plugin",
" ",
"## Dependencies",
" ",
"### React PropTypes",
" ",
"Typecheck React components with PropTypes, enforced by ESLint. Uses dependency:",
"- prop-types"
],
"name": "wholesome-boilerplate",
"version": "0.1.0",
"description": "Best-practice WordPress code examples.",
"author": "mattwatsoncodes, wholesomecode",
"license": "GPL-2.0-or-later",
"repository": "https://github.com/wholesomecode/wholesome-boilerplate",
"main": "assets/js/block-editor.js",
"scripts": {
"build": "wp-scripts build",
"packages-update": "wp-scripts packages-update",
"start": "wp-scripts start",
"wpcs": "npm run wpcs:fix; npm run wpcs:check",
"wpcs:check": "phpcs -p -s -n . --standard=WordPress-Extra --extensions=php",
"wpcs:fix": "phpcbf -p -s -n . --standard=WordPress-Extra --extensions=php"
},
"devDependencies": {
"@wordpress/scripts": "^8.0.0",
"css-loader": "^3.4.2",
"eslint": "^7.0.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.20.2",
"friendly-errors-webpack-plugin": "^1.7.0",
"ignore-emit-webpack-plugin": "^2.0.2",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.13.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"sass-loader": "^8.0.2",
"stylelint": "^13.2.0",
"stylelint-order": "^4.0.0",
"stylelint-webpack-plugin": "^1.2.3",
"terser-webpack-plugin": "^2.3.5"
},
"dependencies": {
"prop-types": "^15.7.2"
}
}