-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
175 lines (175 loc) · 7.03 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"private": true,
"description": "Material Components React",
"license": "MIT",
"scripts": {
"start": "webpack-dev-server --config test/screenshot/webpack.config.js --content-base test/screenshot",
"stop": "./test/screenshot/stop.sh",
"build": "npm run clean && mkdirp build && node --max_old_space_size=8192 node_modules/.bin/webpack --config packages/webpack.config.js --progress --colors",
"capture": "MDC_COMMIT_HASH=$(git rev-parse --short HEAD) MDC_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) mocha --require ts-node/register --require babel-core/register --ui tdd --timeout 30000 test/screenshot/capture-suite.tsx",
"clean": "rimraf build/** build packages/*/dist/",
"fix": "eslint --fix --ext .jsx,.js,.tsx,.ts packages test",
"lint": "eslint --ext .jsx,.js,.tsx,.ts packages test",
"pretest": "npm stop",
"test": "npm run lint && npm run test:unit && npm run test:screenshots",
"posttest": "npm stop && istanbul report --root coverage text-summary && istanbul check-coverage --lines 95 --statements 95 --branches 95 --functions 95",
"postinstall": "lerna bootstrap && rimraf node_modules/**/.babelrc && rimraf packages/**/node_modules/.babelrc",
"test:watch": "karma start karma.local.js --auto-watch",
"test:unit": "npm run clean && cross-env NODE_ENV=test karma start karma.local.js --single-run",
"test:unit-ci": "karma start karma.ci.js --single-run",
"test:image-diff": "MDC_COMMIT_HASH=$(git rev-parse --short HEAD) MDC_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) mocha --require ts-node/register --require babel-core/register --ui tdd --timeout 60000 test/screenshot/diff-suite.tsx",
"test:screenshots": "docker run -it --rm --cap-add=SYS_ADMIN -e MDC_GCLOUD_SERVICE_ACCOUNT_KEY=\"${MDC_GCLOUD_SERVICE_ACCOUNT_KEY}\" mdcreact/screenshots /bin/sh -c 'git checkout .; git checkout master; git pull; npm i; /home/pptruser/material-components-web-react/test/screenshot/start.sh; sleep 40s; npm run test:image-diff'",
"test:types": "npm run build && node scripts/release/cp-pkgs.js && rm -rf packages/*/node_modules && npm install packages/ripple && ls -d ./packages/*/ | xargs -n1 -I{} npm install {} && node test/types/gen-index.js && cp tsconfig.json test/types/tsconfig.json && tsc --project test/types",
"upload:screenshots": "node ./test/screenshot/upload-screenshots.js"
},
"config": {
"validate-commit-msg": {
"helpMessage": "%s\nNOTE: Please see angular's commit message guidelines (https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits) for information on how to format commit messages.\n\nAs an example, here is a valid commit message: 'docs(slider): Document slider public api'\n\nIf this commit is on a development / WIP branch, you can disable this by running `git commit --no-verify`.",
"scope": {
"allowed": [
"button",
"card",
"checkbox",
"chips",
"dialog",
"drawer",
"fab",
"floating-label",
"icon-button",
"layout-grid",
"line-ripple",
"linear-progress",
"list",
"menu-surface",
"menu",
"notched-outline",
"radio",
"ripple",
"select",
"snackbar",
"top-app-bar",
"switch",
"tab",
"tab-bar",
"tab-scroller",
"infrastructure",
"tab-indicator",
"text-field",
"typography"
],
"validate": true
}
}
},
"husky": {
"hooks": {
"pre-push": "npm run lint",
"commit-msg": "validate-commit-msg"
}
},
"devDependencies": {
"@google-cloud/storage": "^1.6.0",
"@material/base": "^1.0.0",
"@material/button": "^1.1.0",
"@material/card": "^2.1.1",
"@material/checkbox": "^2.1.1",
"@material/chips": "^2.3.0",
"@material/dialog": "^2.2.0",
"@material/drawer": "^2.3.0",
"@material/fab": "^2.1.1",
"@material/floating-label": "^1.1.0",
"@material/icon-button": "^2.1.1",
"@material/line-ripple": "^1.0.0",
"@material/list": "^1.0.0",
"@material/menu-surface": "^1.0.1",
"@material/notched-outline": "^1.1.1",
"@material/radio": "^1.1.0",
"@material/ripple": "^1.0.0",
"@material/select": "^1.1.1",
"@material/snackbar": "^1.0.0",
"@material/tab": "^1.0.0",
"@material/tab-bar": "^1.0.0",
"@material/textfield": "^2.3.1",
"@material/typography": "^1.0.0",
"@types/chai": "^4.1.7",
"@types/classnames": "^2.2.6",
"@types/enzyme": "3.1.15",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/google-cloud__storage": "^1.7.2",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^5.2.7",
"@types/prop-types": "^15.5.6",
"@types/puppeteer": "^1.11.1",
"@types/react": "~16.7.22",
"@types/react-dom": "~16.0.11",
"@types/react-is": "~16.5.0",
"@types/react-router-dom": "^4.3.1",
"@types/uuid": "^3.4.4",
"@types/webpack-env": "^1.13.9",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"autoprefixer": "^8.5.1",
"axios": "^0.19.0",
"babel-core": "^6.26.3",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.4",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-airbnb": "^2.4.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"capture-chrome": "^2.0.0",
"chai": "^4.1.2",
"cp-file": "^6.0.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.1",
"cssnano": "^4.1.10",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"enzyme-adapter-utils": "^1.10.1",
"eslint": "^5.16.0",
"eslint-config-google": "^0.9.1",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-typescript": "^0.14.0",
"focus-trap": "^5.0.0",
"gts": "^0.9.0",
"husky": "^2.3.0",
"istanbul": "^0.4.5",
"istanbul-instrumenter-loader": "^3.0.1",
"karma": "^2.0.4",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.5",
"karma-mocha": "^1.3.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.13",
"lerna": "^2.9.0",
"mini-css-extract-plugin": "^0.7.0",
"mocha": "^6.1.4",
"node-sass": "^4.12.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.17.1",
"puppeteer": "^1.17.0",
"react": "~16.7.0",
"react-dom": "~16.7.0",
"react-router-dom": "^4.3.1",
"remap-istanbul": "^0.12.0",
"resemblejs": "^3.0.1",
"rimraf": "^2.6.3",
"sass-loader": "^7.1.0",
"testdouble": "^3.11.0",
"ts-loader": "^6.0.2",
"ts-node": "^8.2.0",
"typescript": "^3.3.3",
"utility-types": "^2.1.0",
"uuid": "^3.3.2",
"validate-commit-msg": "^2.14.0",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.5.1"
}
}