This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
forked from WestpacGEL/GEL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
161 lines (161 loc) · 7.13 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
{
"name": "gel",
"version": "0.0.0",
"description": "The Westpac GEL Design System components, brand tokens and website monorepo",
"repository": "https://github.com/WestpacGEL/GEL",
"author": "Westpac GEL Team <[email protected]>",
"contributors": [
{
"name": "Dominik Wilkowski",
"email": "[email protected]",
"url": "https://dominik-wilkowski.com"
},
{
"name": "Joss Mackison",
"email": "[email protected]",
"url": "http://jossmackison.me"
}
],
"license": "GPL-3.0+",
"private": true,
"scripts": {
"dev": "/bin/sh -c 'cd components/${1:-$0} && yarn start'",
"dev:frontend": "yarn build && yarn --cwd website dev",
"dev:backend": "yarn build && yarn --cwd website-backend dev",
"docs": "NODE_ENV=development webpack server --progress --config ./helpers/example/docs.webpack.config.js",
"docs:build": "NODE_ENV=development webpack --progress --config ./helpers/example/docs.webpack.config.js && yarn docs:redirects",
"docs:redirects": "cp helpers/public/* docs/",
"start": "yarn build:dynamicblocks && (trap 'kill 0' SIGINT; yarn --cwd website dev & yarn --cwd website-backend dev ; wait)",
"nuke": "yarn nuke:lock && yarn nuke:node_modules",
"nuke:node_modules": "find ./components -type d -name 'node_modules' -exec rm -rf {} + && find ./brands -type d -name 'node_modules' -exec rm -rf {} + && rm -rf node_modules",
"nuke:lock": "rm yarn.lock && rm yarn-error.log ; true",
"build": "yarn build:dynamicblocks && preconstruct build",
"build:dev": "preconstruct dev",
"build:dynamicblocks": "node helpers/dynamic-blocks.js",
"fresh": "yarn nuke && yarn",
"new": "node ./helpers/cli.js",
"format": "prettier --list-different \"**/*.{js,md,mdx,json,ts,tsx}\"",
"format:fix": "prettier --write \"**/*.{js,md,mdx,json,ts,tsx}\"",
"lint": "eslint **/*.{js,ts,tsx}",
"lint:fix": "eslint **/*.{js,ts,tsx} --fix",
"test:format": "yarn format && yarn lint",
"lint:format:fix": "yarn lint:fix && yarn format:fix",
"test:unit": "jest",
"test:unit:ci": "jest --runInBand --ci",
"test:unit-watch": "jest --watchAll --coverage",
"test:integration": "node helpers/tester.js",
"test": "yarn test:format && yarn test:unit && yarn test:integration",
"test:ci": "yarn test:format && yarn test:unit:ci && yarn test:integration",
"dep:test": "manypkg check && preconstruct build || preconstruct dev",
"dep:fix": "manypkg fix && preconstruct fix",
"GELjson": "node helpers/ds-info.js",
"postinstall": "yarn dep:test && preconstruct build && yarn GELjson && yarn build:dynamicblocks",
"publish-packages": "yarn build && yarn GELjson && yarn changeset publish",
"version-packages": "yarn changeset version",
"deploy:staging:sync": "pm2 deploy pm2-ecosystem.json staging",
"deploy:staging:restart": "ssh [email protected] forever restart /srv/blender/server/server.js",
"deploy:staging:msg": "echo \"If you made changes to the nginx config follow below steps:\n\n1. Log into the server: \\x1b[33mssh [email protected]\\x1b[0m\n2. Copy the file: \\x1b[33msudo cp /srv/pm2-apps/gel3-website/source/nginx/gel3-keystone-routes.conf /etc/nginx/snippets/gel3-keystone-routes.conf\\x1b[0m\n3. Test the new config: \\x1b[33msudo nginx -t\\x1b[0m\n4. If there are errors correct them in this repo and start again from scratch by running \\x1b[33myarn deploy:staging\\x1b[0m\n5. If all is well run \\x1b[33msudo nginx -s reload\\x1b[0m\n6. ✨ Done\n\"",
"deploy:staging": "yarn deploy:staging:sync && yarn deploy:staging:restart && yarn deploy:staging:msg",
"deploy:live:sync": "pm2 deploy pm2-ecosystem.json live",
"deploy:live:restart": "ssh [email protected] forever restart /srv/blender/server/server.js",
"deploy:live:msg": "echo \"If you made changes to the nginx config follow below steps:\n\n1. Log into the server: \\x1b[33mssh [email protected]\\x1b[0m\n2. Copy the file: \\x1b[33msudo cp /srv/pm2-apps/gel3-website/source/nginx/gel3-keystone-routes.conf /etc/nginx/snippets/gel3-keystone-routes.conf\\x1b[0m\n3. Test the new config: \\x1b[33msudo nginx -t\\x1b[0m\n4. If there are errors correct them in this repo and start again from scratch by running \\x1b[33myarn deploy:live\\x1b[0m\n5. If all is well run \\x1b[33msudo nginx -s reload\\x1b[0m\n6. ✨ Done\n\"",
"deploy:live": "yarn deploy:live:sync && yarn deploy:live:restart && yarn deploy:live:msg"
},
"workspaces": [
"brands/*",
"components/*",
"website",
"website/field-content",
"website-backend"
],
"preconstruct": {
"packages": [
"components/*",
"brands/*"
]
},
"jest": {
"displayName": "GEL3",
"testRegex": "\\.spec.[jt]sx?$",
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"components/*/src/**/*.{js,jsx,ts,tsx}"
],
"setupFilesAfterEnv": [
"./helpers/tests/jest-extended.js"
],
"transformIgnorePatterns": [
"/node_modules/(?!@westpac/*).+\\.{js,jsx,ts,tsx}$"
]
},
"dependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.14.8",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.14.8",
"@changesets/cli": "^2.16.0",
"@emotion/react": "^11.4.0",
"@emotion/weak-memoize": "^0.2.5",
"@manypkg/cli": "^0.18.0",
"@preconstruct/cli": "^2.2.2",
"@react-spring/web": "^9.2.4",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/prop-types": "^15.7.5",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.2",
"babel-loader-exclude-node-modules-except": "^1.2.1",
"babel-plugin-codegen": "^4.1.4",
"cfonts": "^2.9.3",
"chalk": "^4.1.1",
"color": "^4.0.0",
"common-tags": "^1.8.0",
"copy-webpack-plugin": "^9.0.1",
"core-js": "^3.15.2",
"cypress": "^8.0.0",
"eslint": "^8.28.0",
"eslint-config-next": "^13.0.5",
"facepaint": "^1.2.1",
"get-workspaces": "^1.0.3",
"html-webpack-plugin": "^5.3.2",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"lodash.clonedeep": "^4.5.0",
"lodash.merge": "^4.6.2",
"mini-svg-data-uri": "^1.3.3",
"parse-prop-types": "^0.3.0",
"pm2": "^4.5.6",
"prettier": "^2.3.2",
"prop-types": "^15.7.2",
"raf": "^3.4.1",
"react": "^18.2.0",
"react-app-polyfill": "^2.0.0",
"react-docgen": "^5.4.0",
"react-dom": "^18.2.0",
"react-router-dom": "^5.2.0",
"regenerator-runtime": "^0.13.7",
"resize-observer-polyfill": "^1.5.1",
"shortid": "^2.2.16",
"start-server-and-test": "^1.12.6",
"tmp": "^0.2.1",
"webpack": "^5.45.1",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.0.0"
},
"resolutions": {
"ansi-styles": "^3.2.0",
"**/graphql": "15.8.0",
"**/react": "^18.2.0",
"**/react-dom": "^18.2.0",
"**/prisma": "3.7.0",
"**/@apollo/client": "3.4.17",
"**/@prisma/client": "3.7.0",
"**/@types/react": "18.0.21",
"**/@types/react-transition-group": "4.4.5"
}
}