-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathpackage.json
264 lines (264 loc) · 15.2 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
"name": "next-right-now",
"private": true,
"scripts": {
"start": ". ./scripts/populate-git-env.sh && next dev --port 8888",
"start:windows": "next dev --port 8888",
"start:tunnel": "ngrok http 8888",
"build": "yarn test:once:group:no-integration && next build",
"build:fast": "next build",
"build:local": ". ./scripts/populate-git-env.sh && next build",
"build:profiler": ". ./scripts/populate-git-env.sh && next build --profile --debug",
"analyse:bundle": "yarn analyse:bundle:production",
"analyse:bundle:development": "ANALYZE_BUNDLE=true yarn start",
"analyse:bundle:production": ". ./scripts/populate-git-env.sh && ANALYZE_BUNDLE=true next build",
"analyse:unused": "next-unused",
"svg": "npx svgr -d svg-to-react svg-to-react --ext tsx --template svg-to-react/svgTemplate.ts",
"deploy": "yarn deploy:customer1",
"deploy:all": "yarn deploy:customer1 && yarn deploy:customer2",
"deploy:all:production": "yarn deploy:customer1:production && yarn deploy:customer2:production",
"deploy:all:production:simple": "yarn deploy:customer1:production:simple && yarn deploy:customer2:production:simple",
"deploy:all:all": "yarn deploy:all && yarn deploy:all:production",
"deploy:ci:gha": "yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.staging.json",
"deploy:ci:gha:production": "yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.production.json --prod",
"deploy:sb:gha": "yarn vercel:cleanup && yarn storybook:export && vercel storybook-static --local-config=vercel.storybook.json --confirm --debug",
"deploy:sb:gha:fast": "yarn vercel:cleanup && vercel storybook-static --local-config=vercel.storybook.json --confirm --debug",
"deploy:customer1:all": "yarn deploy:customer1 && yarn deploy:customer1:production",
"deploy:customer1": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.customer1.staging.json",
"deploy:customer1:production": "yarn deploy:customer1:production:simple && yarn e2e:customer1:production",
"deploy:customer1:production:simple": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.customer1.production.json --prod",
"deploy:customer2:all": "yarn deploy:customer2 && yarn deploy:customer2:production",
"deploy:customer2": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.customer2.staging.json",
"deploy:customer2:production": "yarn deploy:customer2:production:simple && yarn e2e:customer2:production",
"deploy:customer2:production:simple": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.customer2.production.json --prod",
"deploy:fake": "git commit --allow-empty -m \"Fake empty commit (force CI trigger)\"",
"vercel:cleanup": "npx del-cli .vercel/",
"vercel:deploy": ". ./scripts/populate-git-env.sh && vercel --build-env GIT_COMMIT_TAGS=$GIT_COMMIT_TAGS --build-env GIT_COMMIT_REF=$GIT_COMMIT_REF --build-env GIT_COMMIT_SHA=$GIT_COMMIT_SHA --confirm --debug --force",
"script:populate-git-env:print": ". ./scripts/populate-git-env.sh && echo 'SHA: '${GIT_COMMIT_SHA} && echo 'REF (current branch/tag): '${GIT_COMMIT_REF} && echo 'TAGS: '${GIT_COMMIT_TAGS}",
"git:getReleasesAndTags": "git tag --points-at HEAD | tr '\\r\\n' ' '",
"git:getCommitSHA": "git rev-parse HEAD",
"git:getCommitSHA:short": "git rev-parse --short HEAD",
"git:getCommitRef": "git symbolic-ref HEAD",
"e2e": "yarn e2e:run",
"e2e:all:production": "yarn e2e:customer1:production && yarn e2e:customer2:production",
"e2e:customer1:production": "CYPRESS_STAGE=customer1 yarn e2e:run",
"e2e:customer1:production:open": "CYPRESS_STAGE=customer1 yarn e2e:open",
"e2e:customer2:production": "CYPRESS_STAGE=customer2 yarn e2e:run",
"e2e:customer2:production:open": "CYPRESS_STAGE=customer2 yarn e2e:open",
"e2e:install": "cypress install",
"e2e:open": "CYPRESS_STAGE=${CYPRESS_STAGE:-development}; cypress open --config-file cypress/config-$CYPRESS_STAGE.json",
"e2e:run": "CYPRESS_STAGE=${CYPRESS_STAGE:-development}; cypress run --config-file cypress/config-$CYPRESS_STAGE.json",
"e2e:run:spec:common": "CYPRESS_STAGE=${CYPRESS_STAGE:-development}; cypress run --config-file cypress/config-$CYPRESS_STAGE.json --spec 'cypress/integration/app/common/*.js'",
"e2e:ci": "yarn e2e:install && cypress run --record",
"e2e:sb": "yarn e2e:sb:run",
"e2e:sb:run": "cypress run --config-file cypress/config-storybook.json",
"e2e:sb:open": "cypress open --config-file cypress/config-storybook.json",
"doc:start": "cd docs/ && bundle exec jekyll serve --config _config-development.yml",
"doc:start:fast": "cd docs/ && bundle exec jekyll serve --config _config-development.yml --incremental",
"doc:gem:install": "cd docs/ && bundle install",
"doc": "yarn doc:online",
"doc:online": "open-cli https://unlyed.github.io/next-right-now/",
"doc:online:scripts": "open-cli https://unlyed.github.io/next-right-now/guides/scripts-and-utilities",
"bump:major": "git commit --allow-empty -m \"(MAJOR) Empty commit, bumps MAJOR version\"",
"bump:minor": "git commit --allow-empty -m \"(MINOR) Empty commit, bumps MINOR version\"",
"lint": "esw src/ -w --ext .ts --ext .tsx",
"lint:once": "eslint src/ --ext .ts --ext .tsx",
"lint:fix": "eslint src/ --ext .ts --ext .tsx --fix",
"lint:fix:preview": "eslint src/ --ext .ts --ext .tsx --fix-dry-run",
"test": "NODE_ENV=test jest --watch",
"test:generate-output": "jest --json --outputFile=.jest-test-results.json || true",
"test:group:api": "NODE_ENV=test jest --group=api --watchAll",
"test:group:components": "NODE_ENV=test jest --group=components --watchAll",
"test:group:integration": "NODE_ENV=test jest --group=integration --watchAll",
"test:group:unit": "NODE_ENV=test jest --group=unit --watchAll",
"test:group:utils": "NODE_ENV=test jest --group=utils --watchAll",
"test:once": "NODE_ENV=test jest --runInBand --detectOpenHandles",
"test:once:group:no-integration": "NODE_ENV=test jest --group=-integration",
"test:coverage": "NODE_ENV=test jest --coverage",
"test:coverage:group:no-integration": "NODE_ENV=test jest --group=-integration --coverage",
"test:config": "NODE_ENV=test jest --showConfig",
"sb": "yarn storybook",
"storybook": "STORYBOOK=true start-storybook -h localhost -p 6006 --no-manager-cache",
"storybook:export": "STORYBOOK=true yarn test:generate-output && build-storybook",
"sb:upgrade": "sb upgrade",
"codemod:update-react-imports": "npx react-codemod update-react-imports src/",
"codemod:name-default-component": "npx @next/codemod name-default-component src/",
"codemod:withamp-to-config": "npx @next/codemod withamp-to-config src/",
"codemod:module-path-aliases": "yarn codemod:module-path-aliases:src && yarn codemod:module-path-aliases:cypress && yarn codemod:module-path-aliases:sb",
"codemod:module-path-aliases:src": "npx relative-to-alias --src 'src' --alias '@/app' --alias-path './src/app' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/common' --alias-path './src/common' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/components' --alias-path './src/common/components' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/utils' --alias-path './src/common/utils' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/layouts' --alias-path './src/layouts' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/modules' --alias-path './src/modules' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'src' --alias '@/pages' --alias-path './src/pages' --extensions 'js,ts,tsx' --language 'typescript'",
"codemod:module-path-aliases:cypress": "npx relative-to-alias --src 'cypress' --alias '@/app' --alias-path './src/app' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/common' --alias-path './src/common' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/components' --alias-path './src/common/components' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/utils' --alias-path './src/common/utils' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/layouts' --alias-path './src/layouts' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/modules' --alias-path './src/modules' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src 'cypress' --alias '@/pages' --alias-path './src/pages' --extensions 'js,ts,tsx' --language 'typescript'",
"codemod:module-path-aliases:sb": "npx relative-to-alias --src '.storybook' --alias '@/app' --alias-path './src/app' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/common' --alias-path './src/common' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/components' --alias-path './src/common/components' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/utils' --alias-path './src/common/utils' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/layouts' --alias-path './src/layouts' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/modules' --alias-path './src/modules' --extensions 'js,ts,tsx' --language 'typescript' && npx relative-to-alias --src '.storybook' --alias '@/pages' --alias-path './src/pages' --extensions 'js,ts,tsx' --language 'typescript'",
"security:audit": "yarn audit",
"packages:upgrade": "yarn upgrade-interactive --latest"
},
"next-unused": {
"alias": {},
"debug": true,
"include": [
"src"
],
"exclude": [
".test.",
"src/utils/extend-jest/*",
"src/utils/svg/svgTemplate.ts"
],
"entrypoints": [
"src/pages"
]
},
"dependencies": {
"@amplitude/node": "1.6.1",
"@amplitude/react-amplitude": "1.0.0",
"@emotion/react": "11.4.0",
"@emotion/styled": "11.3.0",
"@fortawesome/fontawesome-svg-core": "1.2.35",
"@fortawesome/free-brands-svg-icons": "5.15.3",
"@fortawesome/free-regular-svg-icons": "5.15.3",
"@fortawesome/free-solid-svg-icons": "5.15.3",
"@fortawesome/react-fontawesome": "0.1.14",
"@sentry/browser": "6.7.2",
"@sentry/node": "6.7.2",
"@types/lodash.isequal": "4.5.5",
"@unly/simple-logger": "1.0.0",
"@unly/universal-language-detector": "2.0.3",
"@unly/utils": "1.0.3",
"amplitude-js": "8.2.1",
"animate.css": "4.1.1",
"append-query": "2.1.0",
"bootstrap": "4.6.0",
"chalk": "4.1.1",
"classnames": "2.3.1",
"cookieconsent": "3.1.1",
"cookies": "0.8.0",
"css-to-react-native": "3.0.0",
"deepmerge": "4.2.2",
"flatted": "3.1.1",
"i18next": "20.2.2",
"i18next-locize-backend": "4.2.0",
"is-circular": "1.0.2",
"js-cookie": "2.2.1",
"json-stringify-safe": "5.0.1",
"locize-editor": "3.1.1",
"locize-lastused": "3.0.11",
"lodash.clonedeep": "4.5.0",
"lodash.endswith": "4.2.1",
"lodash.filter": "4.6.0",
"lodash.find": "4.6.0",
"lodash.findindex": "4.6.0",
"lodash.get": "4.4.2",
"lodash.groupby": "4.6.0",
"lodash.includes": "4.3.0",
"lodash.isarray": "4.0.0",
"lodash.isempty": "4.4.0",
"lodash.isplainobject": "4.0.6",
"lodash.kebabcase": "4.1.1",
"lodash.map": "4.6.0",
"lodash.reduce": "4.6.0",
"lodash.remove": "4.7.0",
"lodash.size": "4.2.0",
"lodash.some": "4.6.0",
"lodash.startswith": "4.2.1",
"lodash.uniq": "4.5.0",
"lodash.xorby": "4.7.0",
"markdown-to-jsx": "7.1.2",
"next": "11.0.0",
"next-cookies": "2.0.3",
"next-plugin-preval": "1.2.0",
"prop-types": "15.7.2",
"rc-tooltip": "5.1.1",
"react": "17.0.2",
"react-code-blocks": "0.0.8",
"react-dom": "17.0.2",
"react-i18next": "11.8.15",
"reactstrap": "8.9.0",
"recompose": "0.30.0",
"tinycolor2": "1.4.2",
"uuid": "8.3.2"
},
"devDependencies": {
"@cypress/react": "5.8.1",
"@emotion/babel-preset-css-prop": "11.2.0",
"@emotion/eslint-plugin": "11.2.0",
"@next/bundle-analyzer": "10.2.0",
"@storybook/addon-a11y": "6.2.9",
"@storybook/addon-actions": "6.2.9",
"@storybook/addon-console": "1.2.3",
"@storybook/addon-essentials": "6.2.9",
"@storybook/addon-google-analytics": "6.2.9",
"@storybook/addon-jest": "6.2.9",
"@storybook/addon-links": "6.2.9",
"@storybook/addon-storysource": "6.2.9",
"@storybook/addons": "6.2.9",
"@storybook/react": "6.2.9",
"@storybook/theming": "6.2.9",
"@svgr/cli": "5.5.0",
"@types/amplitude-js": "8.0.0",
"@types/cookies": "0.7.6",
"@types/jest": "26.0.23",
"@types/jest-expect-message": "1.0.3",
"@types/js-cookie": "2.2.6",
"@types/lodash.clonedeep": "4.5.6",
"@types/lodash.endswith": "4.2.6",
"@types/lodash.find": "4.6.6",
"@types/lodash.findindex": "4.6.6",
"@types/lodash.get": "4.4.6",
"@types/lodash.groupby": "4.6.6",
"@types/lodash.includes": "4.3.6",
"@types/lodash.isarray": "4.0.6",
"@types/lodash.isempty": "4.4.6",
"@types/lodash.isplainobject": "4.0.6",
"@types/lodash.kebabcase": "4.1.6",
"@types/lodash.map": "4.6.13",
"@types/lodash.reduce": "4.6.6",
"@types/lodash.remove": "4.7.6",
"@types/lodash.size": "4.2.6",
"@types/lodash.some": "4.6.6",
"@types/lodash.startswith": "4.2.6",
"@types/lodash.uniq": "4.5.6",
"@types/lodash.xorby": "4.7.6",
"@types/popper.js": "1.11.0",
"@types/react": "17.0.11",
"@types/react-dom": "17.0.7",
"@types/react-test-renderer": "17.0.1",
"@types/reactstrap": "8.7.2",
"@types/uuid": "8.3.0",
"@types/webpack-env": "1.16.0",
"@typescript-eslint/eslint-plugin": "4.23.0",
"@typescript-eslint/parser": "4.23.0",
"@zeit/next-source-maps": "0.0.4-canary.1",
"concurrently": "6.1.0",
"cross-env": "7.0.3",
"current-git-branch": "1.1.0",
"cypress": "7.4.0",
"del-cli": "3.0.1",
"dotenv": "9.0.2",
"eslint": "7.26.0",
"eslint-config-next": "11.0.0",
"eslint-plugin-jest": "24.3.6",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-watch": "7.0.0",
"jest": "26.6.3",
"jest-expect-message": "1.0.2",
"jest-extended": "0.11.5",
"jest-runner-groups": "2.0.1",
"jest-to-match-shape-of": "1.3.1",
"next-unused": "0.0.6",
"ngrok": "4.0.1",
"node-fetch": "2.6.1",
"node-mocks-http": "1.10.1",
"open-cli": "6.0.1",
"react-test-renderer": "17.0.2",
"relative-to-alias": "2.0.1",
"storybook-addon-designs": "5.4.5",
"storybook-addon-next-router": "2.0.4",
"storybook-addon-performance": "0.15.2",
"storybook-css-modules-preset": "1.1.1",
"storybook-mobile": "0.1.31",
"ts-jest": "26.5.6",
"type-fest": "1.1.1",
"typescript": "4.2.4",
"vercel": "22.0.1"
}
}