|
1 | 1 | { |
2 | 2 | "name": "www", |
3 | | - "version": "0.1.0", |
4 | 3 | "private": true, |
| 4 | + "version": "0.1.0", |
| 5 | + "type": "module", |
5 | 6 | "scripts": { |
| 7 | + "build": "tsc && vite build", |
| 8 | + "preview": "vite preview", |
6 | 9 | "analyze": "source-map-explorer 'build/static/js/*.js'", |
7 | | - "start": "PORT=3001 HTTPS=true react-scripts start", |
| 10 | + "start": "vite", |
8 | 11 | "start:prod": "yarn build && serve -s -p 3001 build", |
9 | | - "build": "react-scripts build", |
10 | | - "test": "react-scripts test --watchAll=false", |
| 12 | + "test": "vitest --run", |
| 13 | + "test:watch": "vitest", |
| 14 | + "test:coverage": "vitest run --coverage", |
| 15 | + "test:ui": "vitest --ui", |
11 | 16 | "lint": "yarn lint:js && yarn lint:css", |
12 | 17 | "lint:js": "eslint ./src", |
13 | 18 | "lint:css": "stylelint src/**/*.css", |
14 | 19 | "fix": "yarn fix:js && yarn fix:css", |
15 | 20 | "fix:js": "eslint ./src --fix", |
16 | 21 | "fix:css": "stylelint src/**/*.css --fix", |
17 | | - "e2e": "concurrently -kill-others --success first \"yarn start\" \"wait-on https://localhost:3001 && cd e2e && yarn e2e:start\"", |
| 22 | + "e2e": "concurrently -kill-others --success first \"yarn start\" \"wait-on -c waitOnConfig.json -v https-get://localhost:3001 && cd e2e && yarn e2e:start\"", |
18 | 23 | "unimported": "npx unimported", |
19 | 24 | "graphql:codegen": "graphql-codegen --config codegen.yml" |
20 | 25 | }, |
|
30 | 35 | "@gitbeaker/browser": "35.7.0", |
31 | 36 | "@growthbook/growthbook": "0.20.0", |
32 | 37 | "@growthbook/growthbook-react": "0.10.1", |
33 | | - "@jest/types": "29.3.1", |
34 | 38 | "@nivo/core": "0.80.0", |
35 | 39 | "@nivo/geo": "0.80.0", |
36 | 40 | "@nivo/line": "0.80.0", |
37 | 41 | "@octokit/core": "3.6.0", |
38 | 42 | "@pluralsh/design-system": "1.290.2", |
39 | | - "@testing-library/jest-dom": "5.16.5", |
40 | | - "@testing-library/react": "13.4.0", |
| 43 | + "@testing-library/react": "^13.4.0", |
41 | 44 | "@types/styled-components": "5.1.26", |
42 | 45 | "apollo-absinthe-upload-link": "1.7.0", |
| 46 | + "browserify-zlib": "0.2.0", |
43 | 47 | "buffer": "6.0.3", |
44 | 48 | "country-code-lookup": "0.0.20", |
45 | | - "cra-template": "1.2.0", |
46 | 49 | "d3-hierarchy": "3.1.2", |
47 | 50 | "d3-selection": "3.0.0", |
48 | 51 | "emoji-mart": "3.0.1", |
| 52 | + "events": "3.3.0", |
49 | 53 | "filesize": "8.0.7", |
50 | 54 | "fireworks-js": "1.4.1", |
51 | 55 | "forge-core": "1.4.6", |
|
61 | 65 | "moment": "2.29.4", |
62 | 66 | "phoenix": "1.6.15", |
63 | 67 | "pluralsh-absinthe-socket-apollo-link": "0.2.0", |
| 68 | + "process": "0.11.10", |
64 | 69 | "prop-types": "15.8.1", |
65 | 70 | "query-string": "7.1.1", |
66 | 71 | "randomcolor": "0.6.2", |
|
84 | 89 | "react-router-dom": "6.4.3", |
85 | 90 | "react-sage": "0.3.16", |
86 | 91 | "react-script-hook": "1.7.2", |
87 | | - "react-scripts": "5.0.1", |
88 | 92 | "react-spinners": "0.13.6", |
89 | 93 | "react-stripe-elements": "6.1.2", |
90 | 94 | "react-sweet-progress": "1.1.2", |
|
98 | 102 | "slate": "0.85.0", |
99 | 103 | "slate-history": "0.85.0", |
100 | 104 | "slate-react": "0.83.2", |
| 105 | + "stream-browserify": "3.0.0", |
101 | 106 | "styled-components": "5.3.6", |
| 107 | + "util": "0.12.5", |
102 | 108 | "uuid": "9.0.0", |
103 | 109 | "workbox-core": "6.5.4", |
104 | 110 | "workbox-expiration": "6.5.4", |
|
110 | 116 | "xterm-theme": "1.1.0" |
111 | 117 | }, |
112 | 118 | "devDependencies": { |
113 | | - "@babel/core": "7.20.2", |
114 | | - "@babel/eslint-parser": "7.19.1", |
115 | | - "@babel/preset-env": "7.20.2", |
116 | | - "@babel/preset-react": "7.18.6", |
| 119 | + "@esbuild-plugins/node-globals-polyfill": "0.1.1", |
| 120 | + "@esbuild-plugins/node-modules-polyfill": "0.1.4", |
117 | 121 | "@graphql-codegen/add": "3.2.1", |
118 | 122 | "@graphql-codegen/cli": "2.13.12", |
119 | 123 | "@graphql-codegen/introspection": "2.2.1", |
|
122 | 126 | "@graphql-codegen/typescript-react-apollo": "3.3.6", |
123 | 127 | "@pluralsh/eslint-config-typescript": "2.4.2", |
124 | 128 | "@pluralsh/stylelint-config": "1.0.1", |
| 129 | + "@types/events": "3.0.0", |
| 130 | + "@types/jsdom": "^20", |
125 | 131 | "@types/randomcolor": "0.5.6", |
| 132 | + "@types/react": "18.0.25", |
| 133 | + "@types/react-dom": "18.0.9", |
126 | 134 | "@typescript-eslint/eslint-plugin": "5.43.0", |
127 | 135 | "@typescript-eslint/parser": "5.43.0", |
| 136 | + "@vitejs/plugin-basic-ssl": "0.1.2", |
| 137 | + "@vitejs/plugin-react": "2.2.0", |
| 138 | + "@vitest/ui": "0.25.2", |
128 | 139 | "concurrently": "7.5.0", |
129 | 140 | "eslint": "8.27.0", |
130 | 141 | "eslint-config-pluralsh": "3.1.0", |
131 | 142 | "eslint-plugin-import": "2.26.0", |
132 | | - "eslint-plugin-import-newlines": "^1.2.3", |
| 143 | + "eslint-plugin-import-newlines": "1.2.3", |
| 144 | + "jsdom": "^20.0.2", |
133 | 145 | "postcss-import": "8.2.0", |
134 | 146 | "serve": "14.1.1", |
135 | 147 | "source-map-explorer": "2.5.3", |
136 | 148 | "stylelint": "14.15.0", |
137 | 149 | "typescript": "4.8.4", |
| 150 | + "vite": "3.2.3", |
| 151 | + "vitest": "0.25.2", |
138 | 152 | "wait-on": "6.0.1" |
139 | | - }, |
140 | | - "jest": { |
141 | | - "moduleNameMapper": { |
142 | | - "\\.(css)$": "identity-obj-proxy" |
143 | | - }, |
144 | | - "transformIgnorePatterns": [ |
145 | | - "/node_modules/(?!(.*))" |
146 | | - ] |
147 | 153 | } |
148 | 154 | } |
0 commit comments