-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
92 lines (92 loc) · 3.14 KB
/
package.json
File metadata and controls
92 lines (92 loc) · 3.14 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
{
"name": "subscribe-with-google",
"description": "",
"main": "index.js",
"private": true,
"scripts": {
"build": "npm run remove-dist && npm run build:production && gulp copy-vendor",
"build:production": "webpack -p --mode=production",
"build:dev": "webpack --mode=development --debug --devtool cheap-source-map --output-pathinfo",
"dev": "gulp copy-vendor && npm run build:dev",
"watch": "npm run remove-dist && gulp copy-vendor && webpack --watch --mode=development --debug --devtool cheap-module-eval-source-map --output-pathinfo",
"release-zip": "npm run build && gulp release && gulp copy && gulp pre-zip && gulp zip && rm -rf release",
"release-zip-wp50": "npm run build && gulp release && gulp copy && gulp pre-zip-wp50 && gulp zip-wp50 && rm -rf release",
"release": "rm -rf release && git worktree prune && git worktree add -B stable release origin/main && npm run build && gulp release && gulp copy",
"remove-dist": "rm -rf dist/*",
"test:size": "npm run build:production && bundlesize",
"test:analyze": "webpack -p --mode=production --env.analyze=true --json --progress --profile > /tmp/stats.json && cp ./dist/assets/js/*.js /tmp && webpack-bundle-analyzer /tmp/stats.json",
"test": "jest --config=tests/js/jest.config.js --coverage",
"test:watch": "jest --config=tests/js/jest.config.js --watch",
"lint": "npm run lint:js && npm run lint:php && npm run lint:css",
"lint:js": "eslint .",
"lint:php": "composer lint",
"lint:css": "stylelint ./assets/sass --syntax scss"
},
"browserslist": [
"defaults"
],
"bundlesize": [
{
"path": "./dist/*.js",
"maxSize": "170 kB"
},
{
"path": "./dist/assets/js/*.js",
"maxSize": "170 kB"
}
],
"repository": {
"type": "git",
"url": "git@github.com:google/site-kit-wp.git"
},
"lint-staged": {
"assets/js/**/*.js": "eslint . --fix",
"assets/sass/**/*.scss": "stylelint --syntax scss",
"*.php": "composer lint"
},
"keywords": [
"subscribe",
"with",
"google",
"wordpress"
],
"author": "Google",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@babel/runtime": "^7.10.2",
"babel-jest": "^26.0.1",
"babel-loader": "^8.1.0",
"bundlesize": "^0.18.0",
"codecov": "^3.7.1",
"css-loader": "^3.5.3",
"del": "^5.1.0",
"eslint": "^7.1.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-react": "^7.20.0",
"gulp": "^4.0.2",
"gulp-livereload": "^4.0.2",
"gulp-zip": "^5.0.1",
"jest": "^26.0.1",
"lint-staged": "^10.2.8",
"node-sass": "^4.14.1",
"plugin-error": "^1.0.1",
"react": "^16.13.1",
"react-test-renderer": "^16.13.1",
"require-dir": "^1.2.0",
"sass-loader": "^8.0.2",
"stylelint": "^13.5.0",
"stylelint-scss": "^3.17.2",
"terser-webpack-plugin": "^3.0.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpackbar": "^4.0.0"
},
"dependencies": {
"mini-css-extract-plugin": "^0.9.0"
}
}