This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
161 lines (161 loc) · 5.48 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"private": true,
"version": "5.2.2",
"scripts": {
"build": "npm run webpack -- --mode production",
"build:dev": "npm run webpack -- --mode development",
"deploy": "npm run zip && ./scripts/deploy.sh",
"down": "docker-compose down -v",
"import-posts": "npm run wp -- plugin install --activate wordpress-importer && npm run wp -- import /docker-entrypoint-initwp.d/test-posts.xml --authors=skip && npm run wp -- plugin uninstall --deactivate wordpress-importer",
"lint": "npm run lint:scss && npm run lint:ts",
"lint:scss": "stylelint **/*.scss",
"lint:ts": "eslint --ext .ts,.tsx src",
"start": "npm run build:dev -- --watch",
"test": "jest --coverage && npm run lint",
"test-ci": "jest --coverage --runInBand && npm run build",
"up": "docker-compose up -d && docker-compose logs -f wordpress",
"update-styles": "ts-node --project ./scripts/tsconfig.json ./scripts/update-styles.ts",
"webpack": "TS_NODE_PROJECT=./tsconfig.node.json TS_NODE_FILES=true webpack",
"wp": "docker-compose exec wordpress wp",
"zip": "npm run build && ./scripts/zip.sh",
"zip:dev": "npm run build:dev && ./scripts/zip.sh"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run lint"
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!**/{__mocks__,__tests__}/**"
],
"coverageDirectory": "node_modules/.cache/coverage",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.node.json"
}
},
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy",
"^(utils|components)/(.*)$": "<rootDir>/src/js/$1/$2"
},
"preset": "ts-jest",
"testURL": "http://localhost"
},
"lint-staged": {
"*.{ts,tsx,js,jsx,scss,json,css}": [
"prettier --write",
"git add"
]
},
"prettier": "@dsifford/prettier-config",
"dependencies": {
"@wordpress/block-editor": "^3.2.3",
"@wordpress/blocks": "^6.7.2",
"@wordpress/components": "^8.3.2",
"@wordpress/compose": "^3.7.2",
"@wordpress/data": "^4.9.2",
"@wordpress/dom-ready": "^2.5.1",
"@wordpress/edit-post": "^3.8.3",
"@wordpress/editor": "^9.7.3",
"@wordpress/element": "^2.8.2",
"@wordpress/i18n": "^3.6.1",
"@wordpress/keycodes": "^2.6.2",
"@wordpress/plugins": "^2.7.2",
"@wordpress/rich-text": "^3.7.2",
"@wordpress/url": "^2.8.2",
"astrocite": "^0.16.0",
"citeproc": "^2.2.27",
"classnames": "^2.2.6",
"dompurify": "^2.0.7",
"fuse.js": "^3.4.5",
"lodash": "^4.17.15",
"react": "^16.11.0",
"react-autosuggest": "^9.4.3",
"react-dom": "^16.11.0",
"string-hash": "^1.1.3",
"tooltip.js": "^1.3.3",
"typescript": "^3.6.4",
"uuid": "^3.3.3"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@dsifford/eslint-config": "^0.7.1",
"@dsifford/prettier-config": "^0.4.14",
"@dsifford/stylelint-config": "^0.4.15",
"@types/browser-sync-webpack-plugin": "^2.2.0",
"@types/classnames": "^2.2.9",
"@types/copy-webpack-plugin": "^5.0.0",
"@types/dompurify": "0.0.33",
"@types/jest": "^24.0.20",
"@types/lodash": "^4.14.144",
"@types/mini-css-extract-plugin": "^0.8.0",
"@types/node": "^12.11.7",
"@types/react": "^16.9.11",
"@types/react-autosuggest": "^9.3.13",
"@types/react-dom": "^16.9.3",
"@types/react-test-renderer": "^16.9.1",
"@types/rimraf": "^2.0.3",
"@types/string-hash": "^1.1.1",
"@types/uuid": "^3.4.5",
"@types/webpack": "^4.39.5",
"@types/wordpress__block-editor": "^2.2.3",
"@types/wordpress__blocks": "^6.4.4",
"@types/wordpress__components": "^7.4.5",
"@types/wordpress__compose": "^3.4.0",
"@types/wordpress__data": "^4.6.4",
"@types/wordpress__dependency-extraction-webpack-plugin": "^1.0.0",
"@types/wordpress__dom-ready": "^2.3.0",
"@types/wordpress__edit-post": "^3.5.1",
"@types/wordpress__editor": "^9.4.1",
"@types/wordpress__element": "^2.4.0",
"@types/wordpress__i18n": "^3.4.0",
"@types/wordpress__keycodes": "^2.3.0",
"@types/wordpress__plugins": "^2.3.4",
"@types/wordpress__rich-text": "^3.4.3",
"@types/wordpress__url": "^2.3.0",
"@wordpress/babel-plugin-makepot": "^3.2.1",
"@wordpress/babel-preset-default": "^4.6.2",
"@wordpress/browserslist-config": "^2.6.0",
"@wordpress/dependency-extraction-webpack-plugin": "^2.0.0",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.0.6",
"browser-sync": "^2.26.7",
"browser-sync-webpack-plugin": "^2.2.2",
"camaro": "^4.1.2",
"copy-webpack-plugin": "^5.0.4",
"csl-json": "^0.1.0",
"css-loader": "^3.2.0",
"cssnano": "^4.1.10",
"eslint": "^6.6.0",
"husky": "^3.0.9",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.9.0",
"lint-staged": "^9.4.2",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.13.0",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^1.18.2",
"react-test-renderer": "^16.11.0",
"rimraf": "^3.0.0",
"rollup": "^1.25.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.2",
"sass-loader": "^8.0.0",
"style-loader": "^1.0.0",
"stylelint": "^11.1.1",
"stylelint-scss": "^3.12.0",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9"
}
}