Skip to content

Commit 8a6422a

Browse files
[PRMT-152] Migrate from create-react-app to Vite (#632)
1 parent 960711b commit 8a6422a

File tree

130 files changed

+9989
-19226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+9989
-19226
lines changed

.github/workflows/base-cypress-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
with:
5757
name: build
5858
if-no-files-found: error
59-
path: ./app/build
59+
path: ./app/dist
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# .github/workflows/terraform-dev
2-
name: 'Z-BASE Jest Test: Run a jest test job'
2+
name: 'Z-BASE Vitest Test: Run a vitest test job'
33

44
on:
55
workflow_call:
@@ -15,7 +15,7 @@ permissions:
1515
contents: read # This is required for actions/checkout
1616

1717
jobs:
18-
jest_testing_job:
18+
vitest_testing_job:
1919
runs-on: ubuntu-latest
2020

2121
strategy:

.github/workflows/full-deploy-to-pre-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
react_testing_job:
3737
name: Run UI Unit Tests
38-
uses: ./.github/workflows/base-jest-test.yml
38+
uses: ./.github/workflows/base-vitest-test.yml
3939
with:
4040
build_branch: main
4141

.github/workflows/full-deploy-to-sandbox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
react_testing_job:
5252
name: Run UI Unit Tests
53-
uses: ./.github/workflows/base-jest-test.yml
53+
uses: ./.github/workflows/base-vitest-test.yml
5454
with:
5555
build_branch: ${{ inputs.build_branch }}
5656

.github/workflows/ui-deploy-feature-to-sandbox-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
react_testing_job:
5050
name: Run UI Unit Tests
51-
uses: ./.github/workflows/base-jest-test.yml
51+
uses: ./.github/workflows/base-vitest-test.yml
5252
with:
5353
build_branch: ${{ inputs.build_branch }}
5454

.github/workflows/ui-deploy-to-pre-prod-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
react_testing_job:
1919
name: Run UI Unit Tests
20-
uses: ./.github/workflows/base-jest-test.yml
20+
uses: ./.github/workflows/base-vitest-test.yml
2121
with:
2222
build_branch: main
2323

.github/workflows/ui-deploy-to-test-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
react_testing_job:
1919
name: Run UI Unit Tests
20-
uses: ./.github/workflows/base-jest-test.yml
20+
uses: ./.github/workflows/base-vitest-test.yml
2121
with:
2222
build_branch: ${{ inputs.build_branch }}
2323

.github/workflows/ui-dev-to-main-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525
jobs:
2626
react_testing_job:
2727
name: Run UI Unit Tests
28-
uses: ./.github/workflows/base-jest-test.yml
28+
uses: ./.github/workflows/base-vitest-test.yml
2929
with:
3030
build_branch: ${{github.event.pull_request.head.ref}}
3131

app/.env.template

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
GENERATE_SOURCEMAP=false # false
2-
REACT_APP_DOC_STORE_API_ENDPOINT=%DOC_STORE_API_ENDPOINT%
3-
REACT_APP_AWS_REGION=%AWS_REGION%
4-
REACT_APP_OIDC_PROVIDER_ID=%OIDC_PROVIDER_ID%
5-
REACT_APP_RUM_IDENTITY_POOL_ID=%IDENTITY_PROVIDER_POOL_ID%
6-
REACT_APP_MONITOR_ACCOUNT_ID=%MONITOR_ACCOUNT_ID%
7-
REACT_APP_ENVIRONMENT=%BUILD_ENV%
8-
REACT_APP_IMAGE_VERSION="%IMAGE_VERSION%"
2+
VITE_DOC_STORE_API_ENDPOINT=%DOC_STORE_API_ENDPOINT%
3+
VITE_AWS_REGION=%AWS_REGION%
4+
VITE_OIDC_PROVIDER_ID=%OIDC_PROVIDER_ID%
5+
VITE_RUM_IDENTITY_POOL_ID=%IDENTITY_PROVIDER_POOL_ID%
6+
VITE_MONITOR_ACCOUNT_ID=%MONITOR_ACCOUNT_ID%
7+
VITE_ENVIRONMENT=%BUILD_ENV%
8+
VITE_IMAGE_VERSION="%IMAGE_VERSION%"
99
CONTAINER_PORT=xx # Port number within the container. Needed for building the docker image
1010
HOST_PORT=xxxx # Port number that the docker-compose localhost exposes. Only need this if we run docker-compose
1111
PORT=xxxx # Port number of the localhost dev server when we run `make start`

app/.eslintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"plugins": ["unused-imports", "cypress", "import"],
88
"extends": [
99
"react-app",
10-
"react-app/jest",
1110
"plugin:prettier/recommended",
1211
"plugin:cypress/recommended"
1312
],
@@ -26,7 +25,7 @@
2625
}
2726
],
2827
"@typescript-eslint/no-explicit-any": [
29-
"error",
28+
"off",
3029
{
3130
"ignoreRestArgs": true
3231
}

0 commit comments

Comments
 (0)