-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
142 lines (142 loc) · 5.51 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "wp-theme-boilerplate",
"version": "2.1.0-based",
"description": "Next Generation WordPress Theme Starter Kit",
"homepage": "https://github.com/thingsym/wp-theme-boilerplate",
"repository": {
"type": "git",
"url": "https://github.com/thingsym/wp-theme-boilerplate"
},
"bugs": {
"url": "https://github.com/thingsym/wp-theme-boilerplate/issues"
},
"author": "thingsym",
"license": "GPL-2.0-or-later",
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@fortawesome/fontawesome-free": "^5.15.1",
"@wordpress/browserslist-config": "^2.7.0",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"browser-sync": "^2.26.13",
"chokidar-cli": "^2.1.0",
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"cssnano": "^4.1.10",
"eslint": "^7.17.0",
"flexbox-grid-mixins": "^0.2.2",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.2",
"rimraf": "^3.0.2",
"rtlcss": "^2.6.2",
"sass": "^1.29.0",
"stylelint": "^13.8.0",
"stylelint-config-recommended": "^3.0.0",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-scss": "^3.18.0",
"stylestats": "^7.0.2",
"uglifyjs-webpack-plugin": "^2.2.0",
"unminified-webpack-plugin": "^2.0.0",
"webpack-cli": "^3.3.12",
"webpack-stream": "^5.2.1"
},
"rtlcssConfig": {
"options": {
"autoRename": false,
"autoRenameStrict": false,
"blacklist": {},
"clean": true,
"greedy": false,
"processUrls": false,
"stringMap": []
},
"plugins": [],
"map": false
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"postcss": {
"map": true,
"plugins": {
"postcss-import": {},
"autoprefixer": {
"browsers": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 Opera versions",
"last 2 iOS versions",
"last 1 Android version",
"last 1 ChromeAndroid version",
"ie 11",
"> 1%"
]
}
}
},
"stylelint": {
"extends": [
"stylelint-config-recommended",
"stylelint-scss",
"stylelint-config-recommended-scss"
]
},
"eslintConfig": {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"jQuery": true,
"$": false,
"wp": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {}
},
"scripts": {
"setup": "bash bin/setup.sh",
"makepot": "php /usr/local/share/wp-i18n/makepot.php wp-theme ../wp-theme-boilerplate ../wp-theme-boilerplate/languages/wp-theme-boilerplate.pot",
"msgfmt:ja": "msgfmt languages/ja.po -o languages/ja.mo",
"msgfmt": "run-p msgfmt:*",
"sass:style": "sass src/scss/style.scss css/style.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r css/style.css",
"sass:style:minify": "sass src/scss/style.scss css/style.min.css --style expanded --no-source-map && postcss --use autoprefixer --use cssnano --no-map -r css/style.min.css",
"sass:block-editor": "sass src/scss/block-editor-style.scss css/block-editor-style.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r css/block-editor-style.css",
"sass:editor-style": "sass src/scss/editor-style.scss css/editor-style.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r css/editor-style.css",
"rtlcss:rtl": "rtlcss css/style.css css/style-rtl.css",
"webpack": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"build:css": "run-p sass:** && run-p rtlcss:rtl",
"build:js": "run-p webpack",
"build:i18n": "run-p msgfmt:*",
"build": "run-p build:*",
"lint:css": "stylelint css/*.css css/**/*.css",
"lint:scss": "stylelint src/scss/*.scss src/scss/**/*.scss",
"lint:es": "eslint js/*.js",
"lint:es:fix": "eslint js/*.js --fix",
"lint": "run-p lint:*",
"stats:css": "stylestats css/style.min.css & stylestats css/style-rtl.css & stylestats css/block-editor-style.css",
"bs:server": "browser-sync start --server",
"bs:server:watch": "browser-sync start --server --files \"css/*.min.css\" \"js/*.min.js\"",
"bs:proxy:": "browser-sync start --proxy \"wp-theme-boilerplate.local\" --https",
"bs:proxy:watch": "browser-sync start --proxy \"wp-theme-boilerplate.local\" --https --files \"css/*.min.css\" \"js/*.min.js\"",
"watch:css": "chokidar \"src/scss/*.scss\" \"src/scss/**/*.scss\" -c \"npm run build:css\" --initial --polling",
"watch:js": "chokidar \"src/js/*.js\" \"src/js/**/*.js\" -c \"npm run build:js\" --initial --polling",
"watch": "run-p watch:*",
"server": "run-p watch bs:proxy:watch",
"archive:package": "mkdir -p ./wp-theme-boilerplate && cpy '**/*' '!./README.md' '!./.DS_Store' '!./bin' '!./vendor' '!./composer.json' '!./composer.lock' '!./node_modules' '!./package.json' '!./package-lock.json' '!./phpcs.ruleset.xml' '!./phpmd.ruleset.xml' '!./phpstan.neon' '!./phpunit.xml' '!./webpack.config.js' '!./src' '!./tests' '!./wp-theme-boilerplate.zip' './wp-theme-boilerplate' --parents",
"archive:zip": "zip -9 -qmr wp-theme-boilerplate-v$npm_package_version.zip ./wp-theme-boilerplate",
"archive": "run-s build archive:package archive:zip"
}
}