Skip to content

Commit d036e9a

Browse files
authored
refactor: updating to vite v5, algokit-utils v5 and others (#23)
* refactor: updating to vite v5, algokit-utils v5 and others * docs: extra minor details in ci cd section in readme docs * chore: regen artifacts * chore: updating daisyui to latest
1 parent f877f05 commit d036e9a

File tree

19 files changed

+113
-108
lines changed

19 files changed

+113
-108
lines changed

template_content/README.md.jinja

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ The project template provides base Github Actions workflows for continuous deplo
5454

5555
1. [Create a new environment variable on your repository](https://docs.github.com/en/actions/learn-github-actions/variables#creating-configuration-variables-for-a-repository) called `NETLIFY_AUTH_TOKEN` and `NETLIFY_SITE_ID` if you are using Netlify as your cloud provider. Set it to the value of your Netlify auth token respectively. You can find your Netlify auth token by going to [app.netlify.com](https://app.netlify.com/).
5656
2. If you are using Vercel as your cloud provider, create a new environment variable on your repository called `VERCEL_TOKEN`. Set it to the value of your Vercel auth token. You can find your Vercel auth token by going to [vercel.com/account/tokens](https://vercel.com/account/tokens).
57-
3. Set environment variables similarly to step one for the following variables (see .env.template for default values):
58-
- VITE_ALGOD_SERVER
59-
- VITE_ALGOD_PORT
60-
- VITE_ALGOD_NETWORK
61-
- VITE_INDEXER_SERVER
62-
- VITE_INDEXER_PORT
63-
- VITE_ENVIRONMENT
64-
4. (Optional) [Set environment secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) for the following variables (see .env.template for default values):
65-
- VITE_ALGOD_TOKEN
66-
- VITE_INDEXER_TOKEN
57+
3. Set up the environment variables. You can refer to the `.env.template` for default values. The variables to be set are:
58+
- `VITE_ALGOD_SERVER`
59+
- `VITE_ALGOD_NETWORK`
60+
- `VITE_INDEXER_SERVER`
61+
- `VITE_ENVIRONMENT` - (Set to either `production` or `development`)
62+
- `VITE_ALGOD_PORT` - (This is optional if you are using a public gateway like AlgoNode)
63+
- `VITE_INDEXER_PORT` - (This is optional if you are using a public gateway like AlgoNode)
64+
4. (Optional) If you need to set up environment secrets, you can do so by following the guide [here](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository). The variables for which you can set secrets are (refer to `.env.template` for default values):
65+
- `VITE_ALGOD_TOKEN` - (This is optional if you are using a public gateway like AlgoNode)
66+
- `VITE_INDEXER_TOKEN` - (This is optional if you are using a public gateway like AlgoNode)
6767

6868
> If you prefer alternative deployment methods, you can remove the relevant workflow files from the [`.github/workflows`](./.github/workflows) folder and configure your own.
6969
{% endif %}

template_content/package.json.jinja

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
"email": "{{ author_email }}"
77
},
88
"private": true,
9+
"type": "module",
910
"engines": {
1011
"node": ">=18.0"
1112
},
1213
"devDependencies": {
13-
"@types/node": "18.17.14",
14-
"@types/react": "18.2.11",
15-
"@types/react-dom": "18.2.4",
16-
"@vitejs/plugin-react-swc": "3.3.2",
17-
"autoprefixer": "10.4.14",
14+
"@types/node": "^18.17.14",
15+
"@types/react": "^18.2.11",
16+
"@types/react-dom": "^18.2.4",
17+
"@vitejs/plugin-react": "^4.2.1",
18+
"autoprefixer": "^10.4.14",
1819
{% if use_eslint_prettier -%}
19-
"eslint": "8.42.0",
20-
"eslint-config-prettier": "8.8.0",
21-
"eslint-plugin-prettier": "5.0.0",
22-
"@typescript-eslint/eslint-plugin": "6.5.0",
23-
"@typescript-eslint/parser": "6.5.0",
20+
"eslint": "^8.42.0",
21+
"eslint-config-prettier": "^8.8.0",
22+
"eslint-plugin-prettier": "^5.0.0",
23+
"@typescript-eslint/eslint-plugin": "^6.5.0",
24+
"@typescript-eslint/parser": "^6.5.0",
2425
{% endif -%}
2526
{% if use_tailwind -%}
2627
"postcss": "^8.4.24",
@@ -30,28 +31,28 @@
3031
"ts-jest": "^29.1.1",
3132
"@types/jest": "29.5.2",
3233
{% endif -%}
33-
"ts-node": "10.9.1",
34-
"typescript": "5.1.6",
34+
"ts-node": "^10.9.1",
35+
"typescript": "^5.1.6",
3536
{% if use_playwright -%}
3637
"@playwright/test": "^1.35.0",
3738
"playwright": "^1.35.0",
3839
{% endif -%}
39-
"vite": "^4.4.9"
40+
"vite": "^5.0.0"
4041
},
4142
"dependencies": {
4243
"@walletconnect/modal-sign-html": "^2.6.1",
43-
"@algorandfoundation/algokit-utils": "^4.1.0",
44+
"@algorandfoundation/algokit-utils": "^5.0.0",
4445
"@blockshake/defly-connect": "^1.1.6",
4546
"@daffiwallet/connect": "^1.0.3",
4647
"@perawallet/connect": "^1.3.1",
4748
"@txnlab/use-wallet": "^2.4.0",
48-
"algosdk": "^2.5.0",
49+
"algosdk": "^2.7.0",
4950
{% if use_daisy_ui -%}
50-
"daisyui": "^3.1.0",
51+
"daisyui": "^4.0.0",
5152
{% endif -%}
5253
"notistack": "^3.0.1",
5354
"react": "^18.2.0",
54-
"react-dom": "18.2.0",
55+
"react-dom": "^18.2.0",
5556
"tslib": "^2.6.2"
5657
},
5758
"scripts": {

template_content/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import react from '@vitejs/plugin-react-swc'
1+
import react from '@vitejs/plugin-react'
22
import { defineConfig } from 'vite'
33

44
// https://vitejs.dev/config/

template_content/{% if use_eslint_prettier %}.prettierrc.js{% endif %}.jinja renamed to template_content/{% if use_eslint_prettier %}.prettierrc.cjs{% endif %}.jinja

File renamed without changes.

template_content/{% if use_tailwind %}postcss.config.js{% endif %}.jinja renamed to template_content/{% if use_tailwind %}postcss.config.cjs{% endif %}.jinja

File renamed without changes.

tests_generated/test_all_default_parameters_jetbrains/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@
66
"email": "None"
77
},
88
"private": true,
9+
"type": "module",
910
"engines": {
1011
"node": ">=18.0"
1112
},
1213
"devDependencies": {
13-
"@types/node": "18.17.14",
14-
"@types/react": "18.2.11",
15-
"@types/react-dom": "18.2.4",
16-
"@vitejs/plugin-react-swc": "3.3.2",
17-
"autoprefixer": "10.4.14",
18-
"ts-node": "10.9.1",
19-
"typescript": "5.1.6",
20-
"vite": "^4.4.9"
14+
"@types/node": "^18.17.14",
15+
"@types/react": "^18.2.11",
16+
"@types/react-dom": "^18.2.4",
17+
"@vitejs/plugin-react": "^4.2.1",
18+
"autoprefixer": "^10.4.14",
19+
"ts-node": "^10.9.1",
20+
"typescript": "^5.1.6",
21+
"vite": "^5.0.0"
2122
},
2223
"dependencies": {
2324
"@walletconnect/modal-sign-html": "^2.6.1",
24-
"@algorandfoundation/algokit-utils": "^4.1.0",
25+
"@algorandfoundation/algokit-utils": "^5.0.0",
2526
"@blockshake/defly-connect": "^1.1.6",
2627
"@daffiwallet/connect": "^1.0.3",
2728
"@perawallet/connect": "^1.3.1",
2829
"@txnlab/use-wallet": "^2.4.0",
29-
"algosdk": "^2.5.0",
30+
"algosdk": "^2.7.0",
3031
"notistack": "^3.0.1",
3132
"react": "^18.2.0",
32-
"react-dom": "18.2.0",
33+
"react-dom": "^18.2.0",
3334
"tslib": "^2.6.2"
3435
},
3536
"scripts": {

tests_generated/test_all_default_parameters_jetbrains/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import react from '@vitejs/plugin-react-swc'
1+
import react from '@vitejs/plugin-react'
22
import { defineConfig } from 'vite'
33

44
// https://vitejs.dev/config/

tests_generated/test_all_default_parameters_off/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@
66
"email": "None"
77
},
88
"private": true,
9+
"type": "module",
910
"engines": {
1011
"node": ">=18.0"
1112
},
1213
"devDependencies": {
13-
"@types/node": "18.17.14",
14-
"@types/react": "18.2.11",
15-
"@types/react-dom": "18.2.4",
16-
"@vitejs/plugin-react-swc": "3.3.2",
17-
"autoprefixer": "10.4.14",
18-
"ts-node": "10.9.1",
19-
"typescript": "5.1.6",
20-
"vite": "^4.4.9"
14+
"@types/node": "^18.17.14",
15+
"@types/react": "^18.2.11",
16+
"@types/react-dom": "^18.2.4",
17+
"@vitejs/plugin-react": "^4.2.1",
18+
"autoprefixer": "^10.4.14",
19+
"ts-node": "^10.9.1",
20+
"typescript": "^5.1.6",
21+
"vite": "^5.0.0"
2122
},
2223
"dependencies": {
2324
"@walletconnect/modal-sign-html": "^2.6.1",
24-
"@algorandfoundation/algokit-utils": "^4.1.0",
25+
"@algorandfoundation/algokit-utils": "^5.0.0",
2526
"@blockshake/defly-connect": "^1.1.6",
2627
"@daffiwallet/connect": "^1.0.3",
2728
"@perawallet/connect": "^1.3.1",
2829
"@txnlab/use-wallet": "^2.4.0",
29-
"algosdk": "^2.5.0",
30+
"algosdk": "^2.7.0",
3031
"notistack": "^3.0.1",
3132
"react": "^18.2.0",
32-
"react-dom": "18.2.0",
33+
"react-dom": "^18.2.0",
3334
"tslib": "^2.6.2"
3435
},
3536
"scripts": {

tests_generated/test_all_default_parameters_off/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import react from '@vitejs/plugin-react-swc'
1+
import react from '@vitejs/plugin-react'
22
import { defineConfig } from 'vite'
33

44
// https://vitejs.dev/config/

tests_generated/test_all_default_parameters_on_netlify/.prettierrc.js renamed to tests_generated/test_all_default_parameters_on_netlify/.prettierrc.cjs

File renamed without changes.

0 commit comments

Comments
 (0)