-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
141 lines (141 loc) · 5.75 KB
/
package.json
File metadata and controls
141 lines (141 loc) · 5.75 KB
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
{
"name": "foresight",
"version": "2.5.0",
"description": "Foresight is a business website WordPress theme for the Block Editor.",
"homepage": "https://homepage.thingslabo.com/product/wp-theme-foresight/",
"repository": {
"type": "git",
"url": "https://github.com/thingsym/foresight"
},
"bugs": {
"url": "https://github.com/thingsym/foresight"
},
"author": "thingsym",
"license": "GPL-2.0-or-later",
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@wordpress/browserslist-config": "^6.0.0",
"autoprefixer": "^10.4.19",
"babel-eslint": "^10.1.0",
"babel-loader": "^9.1.3",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"cssnano": "^7.0.2",
"eslint": "^9.4.0",
"flexbox-grid-mixins": "^0.3.4",
"npm-check-updates": "^16.14.20",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.38",
"postcss-cli": "^11.0.0",
"rimraf": "^5.0.7",
"rtlcss": "^4.1.1",
"sass": "^1.77.4",
"stylelint": "^16.6.1",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-scss": "^6.3.1",
"stylestats": "^7.0.2",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-stream": "^7.0.0"
},
"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": {
"makepot:wpcli": "wp i18n make-pot ./ ./languages/${npm_package_name}.pot --exclude=dist,bin,node_modules,vendor",
"msgmerge:ja": "msgmerge --update --backup off ./languages/ja.po ./languages/${npm_package_name}.pot",
"makemo:ja": "wp i18n make-mo languages/ja.po languages/",
"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-asset": "sass src/scss/block-asset.scss css/block-asset.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r css/block-asset.css",
"sass:block-asset:minify": "sass src/scss/block-asset.scss css/block-asset.min.css --style expanded --no-source-map && postcss --use autoprefixer --use cssnano --no-map -r css/block-asset.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:production": "cross-env BABEL_ENV=default NODE_ENV=production webpack --config webpack.prod.js",
"webpack:unminified": "cross-env BABEL_ENV=default NODE_ENV=production webpack --config webpack.unminified.js",
"build:css": "run-s 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:js": "eslint js/*.js",
"lint:es": "eslint src/js/*.js src/js/**/*.js",
"lint:es:fix": "eslint src/js/*.js src/js/**/*.js",
"lint": "run-p lint:*",
"test:jest": "jest --config ./tests/jest/jest.config.js",
"test:e2e": "jest --config ./tests/e2e/jest.config.js",
"test": "run-p test:jest",
"stats:css": "stylestats css/style.min.css & stylestats css/style-rtl.css & stylestats css/block-editor-style.css",
"ncu": "ncu",
"archive:package": "mkdir -p ./foresight && cpy '.' '!./.DS_Store' '!./.git' '!./.gitignore' '!./.editorconfig' '!./.markdownlint.json' '!./.github' '!./bin' '!./vendor' '!./composer.json' '!./composer.lock' '!./node_modules' '!./README.md' '!./package.json' '!./package-lock.json' '!./phpcs.ruleset.xml' '!./phpmd.ruleset.xml' '!./phpstan.neon' '!./phpunit.xml' '!./webpack.config.js' '!./playwright.config.ts' '!./jest.config.js' '!./jest-puppeteer.config.js' '!./webpack.prod.js' '!./webpack.unminified.js' '!./src' '!./tests' '!./*.zip' './foresight'",
"archive:zip": "zip -9 -qmr foresight-v$npm_package_version.zip ./foresight",
"archive": "run-s build archive:package archive:zip"
}
}