-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
85 lines (85 loc) · 3.68 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
{
"name": "@raise/web",
"private": true,
"scripts": {
"postinstall": "shx cp -n src/env/local.template.ts src/env/local.ts && shx cp -n src/env/local.ts src/env/env.ts",
"start": "npm run start:local",
"start:local": "shx cp src/env/local.ts src/env/env.ts && gatsby develop --port 8000",
"test": "shx cp src/env/local.ts src/env/env.ts && TZ=utc jest",
"test:watch": "shx cp src/env/local.ts src/env/env.ts && TZ=utc jest --watch",
"lint": "eslint 'src' 'serverless.ts'",
"lint:fix": "npm run lint -- --fix",
"build": "npm run build:local",
"build:local": "shx cp src/env/local.ts src/env/env.ts && npm run build:common",
"build:dev": "shx cp src/env/dev.ts src/env/env.ts && npm run build:common",
"build:prod": "shx cp src/env/prod.ts src/env/env.ts && npm run build:common",
"build:common": "shx mkdir -p dist && npm run build:common:raise && npm run build:common:mwa",
"build:common:raise": "npm run type-check && PREFIX_PATHS=true gatsby build && shx rm -rf dist/raise && mv public dist/raise",
"build:common:mwa": "shx rm -rf ../web-mwa && shx mkdir ../web-mwa && shx cp -r * ../web-mwa && cd ../web-mwa && shx sed -i \"s/@raise\\/web/@raise\\/web-mwa/g\" package.json && mv src/pages src/pages-all && mv src/pages-all/cambridge src/pages && shx rm -rf src/pages-all && shx sed -i \"s/from '..\\//from '/g\" src/pages/* && shx sed -i \"s/CUSTOM_RAISE_DOMAIN/CUSTOM_MWA_DOMAIN/g\" gatsby-config.ts && shx sed -i \"s/CLOUDFLARE_WEB_ANALYTICS_TOKEN_RAISE/CLOUDFLARE_WEB_ANALYTICS_TOKEN_MWA/g\" gatsby-config.ts && npm run type-check && PREFIX_PATHS=true gatsby build && cd ../web && shx rm -rf dist/mwa && mv ../web-mwa/public dist/mwa && shx rm -rf ../web-mwa",
"type-check": "tsc",
"deploy:dev": "npm run build:dev && serverless deploy --verbose",
"deploy:prod": "npm run build:prod && serverless deploy --verbose"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@gatsbyjs/reach-router": "^2.0.1",
"@heroicons/react": "^1.0.4",
"@raise/eslint-config": "*",
"@raise/server": "*",
"@raise/shared": "*",
"@reach/accordion": "^0.18.0",
"@reach/dialog": "^0.18.0",
"@reach/disclosure": "^0.18.0",
"@reach/listbox": "^0.18.0",
"@serverless/typescript": "^3.27.0",
"@stripe/react-stripe-js": "^1.7.0",
"@stripe/stripe-js": "^1.22.0",
"@testing-library/react": "^14.0.0",
"@types/aos": "^3.0.4",
"@types/canvas-confetti": "^1.4.2",
"@types/gatsbyjs__reach-router": "^1.3.0",
"@types/jest": "^29.4.0",
"@types/jsonexport": "^3.0.2",
"@types/node": "^16.18.3",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react-helmet": "^6.1.5",
"@types/react-timeago": "^4.1.3",
"aos": "^2.3.4",
"autoprefixer": "^10.3.4",
"axios": "^1.7.7",
"axios-cache-interceptor": "^1.3.2",
"canvas-confetti": "^1.4.0",
"classnames": "^2.3.1",
"eslint": "^8.44.0",
"gatsby": "^5.7.0",
"gatsby-plugin-canonical-urls": "^5.7.0",
"gatsby-plugin-postcss": "^6.7.0",
"gatsby-plugin-react-helmet": "^6.7.0",
"gatsby-plugin-typescript": "^5.7.0",
"haversine-distance": "^1.2.1",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.3.1",
"jsonexport": "^3.2.0",
"oidc-client": "^1.11.5",
"postcss": "^8.4.31",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.43.2",
"react-timeago": "^7.1.0",
"serverless": "^3.37.0",
"serverless-s3-sync": "^3.2.0",
"shx": "^0.3.4",
"tailwindcss": "^3.0.7",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom"
}
}