-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 2.01 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
{
"name": "greenerwp-wordpress-plugin",
"config": {
"parcel_build_command": "build"
},
"scripts": {
"postinstall": "npm run build",
"build": "npm run build:js && npm run build:css",
"build:zip": "cd build && zip -r greenerwp.zip greenerwp",
"build:dist": "shx test -d build && shx rm -r build; shx mkdir -p build/greenerwp; shx cp -R dist languages *.php readme.txt src views build/greenerwp",
"build:js-admin": "cross-var parcel $npm_package_config_parcel_build_command --public-url . -d dist/js/ui/admin/ -o page.js js/ui/admin/page.js",
"watch:js-admin": "npm run build:js-admin --greenerwp-wordpress-plugin:parcel_build_command=watch",
"build:js-frontend": "cross-var parcel $npm_package_config_parcel_build_command --public-url . -d dist/js/ -o frontend.js js/frontend/index.js",
"watch:js-frontend": "npm run build:js-frontend --greenerwp-wordpress-plugin:parcel_build_command=watch",
"build:js": "npm run build:js-admin && npm run build:js-frontend",
"build:css-admin": "cross-var parcel $npm_package_config_parcel_build_command --public-url . -d dist/css/ -o admin.css scss/admin.scss",
"build:css-frontend": "cross-var parcel $npm_package_config_parcel_build_command --public-url . -d dist/css/ -o frontend.css scss/frontend.scss",
"build:css": "npm run build:css-admin && npm run build:css-frontend",
"watch:css-admin": "npm run build:css-admin --greenerwp-wordpress-plugin:parcel_build_command=watch",
"watch:css-frontend": "npm run build:css-frontend --greenerwp-wordpress-plugin:parcel_build_command=watch",
"test": "jest"
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"babel-core": "^7.0.0-bridge.0",
"cross-var": "^1.1.0",
"jest": "^26.4.2",
"parcel": "^1.12.4",
"sass": "^1.26.10",
"shx": "^0.3.3"
},
"dependencies": {
"parcel-bundler": "^1.12.4",
"parcel-plugin-externals": "^0.3.0",
"react": "^16.12.0",
"react-table": "^7.0.0-rc.15"
},
"externals": {
"react": "React"
}
}