generated from algorandfoundation/algokit-react-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3b48d8
commit ffcc6ea
Showing
47 changed files
with
1,355 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[algokit] | ||
min_version = "v1.3.0b1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: <commit> | ||
_src_path: <src> | ||
algod_port: 4001 | ||
algod_server: http://localhost | ||
algod_token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
cloud_provider: none | ||
indexer_port: 8980 | ||
indexer_server: http://localhost | ||
indexer_token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
preset: default | ||
project_name: test_default_preset | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
tab_width = 2 | ||
max_line_length = 140 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# ====================== | ||
# LocalNet configuration | ||
# uncomment below to use | ||
# ====================== | ||
|
||
VITE_ENVIRONMENT=local | ||
|
||
# Algod | ||
VITE_ALGOD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
VITE_ALGOD_SERVER=http://localhost | ||
VITE_ALGOD_PORT=4001 | ||
VITE_ALGOD_NETWORK="" | ||
|
||
# Indexer | ||
VITE_INDEXER_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
VITE_INDEXER_SERVER=http://localhost | ||
VITE_INDEXER_PORT=8980 | ||
|
||
# KMD | ||
# Please note: | ||
# 1. This is only needed for LocalNet since | ||
# by default KMD provider is ignored on other networks. | ||
# 2. AlgoKit LocalNet starts with a single wallet called 'unencrypted-default-wallet', | ||
# with heaps of tokens available for testing. | ||
VITE_KMD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
VITE_KMD_SERVER=http://localhost | ||
VITE_KMD_PORT=4002 | ||
VITE_KMD_WALLET="unencrypted-default-wallet" | ||
VITE_KMD_PASSWORD="" | ||
|
||
# # ====================== | ||
# # TestNet configuration: | ||
# # uncomment below to use | ||
# # ====================== | ||
|
||
# VITE_ENVIRONMENT=local | ||
|
||
# # Algod | ||
# VITE_ALGOD_TOKEN="" | ||
# VITE_ALGOD_SERVER="https://testnet-api.algonode.cloud" | ||
# VITE_ALGOD_PORT="" | ||
# VITE_ALGOD_NETWORK="testnet" | ||
|
||
# # Indexer | ||
# VITE_INDEXER_TOKEN="" | ||
# VITE_INDEXER_SERVER="https://testnet-idx.algonode.cloud" | ||
# VITE_INDEXER_PORT="" | ||
|
||
|
||
# # ====================== | ||
# # MainNet configuration: | ||
# # uncomment below to use | ||
# # ====================== | ||
|
||
# VITE_ENVIRONMENT=production | ||
|
||
# # Algod | ||
# VITE_ALGOD_TOKEN="" | ||
# VITE_ALGOD_SERVER="https://mainnet-api.algonode.cloud" | ||
# VITE_ALGOD_PORT="" | ||
# VITE_ALGOD_NETWORK="mainnet" | ||
|
||
# # Indexer | ||
# VITE_INDEXER_TOKEN="" | ||
# VITE_INDEXER_SERVER="https://mainnet-idx.algonode.cloud" | ||
# VITE_INDEXER_PORT="" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"prettier/prettier": "warn", | ||
"no-console": "warn", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"ignoreRestSiblings": true, | ||
"argsIgnorePattern": "^_", | ||
"destructuredArrayIgnorePattern": "^_" | ||
} | ||
], | ||
"prefer-template": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
54 changes: 54 additions & 0 deletions
54
tests_generated/test_default_preset/.github/workflows/checks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Check code base | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
run-build: | ||
required: false | ||
type: boolean | ||
default: false | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
checks: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run linters | ||
run: npm run lint | ||
|
||
- name: Run unit tests | ||
run: npm run test | ||
|
||
- name: Create placeholder .env file | ||
if: ${{ inputs.run-build }} | ||
uses: makerxstudio/shared-config/.github/actions/env-to-placeholders@main | ||
with: | ||
env-output-path: './.env' | ||
env-template-path: './.env.template' | ||
env-variable-prefix: VITE_ | ||
|
||
- name: Build | ||
if: ${{ inputs.run-build }} | ||
run: npm run build | ||
|
||
- name: Archive | ||
if: ${{ inputs.run-build }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/ |
8 changes: 8 additions & 0 deletions
8
tests_generated/test_default_preset/.github/workflows/pr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Pull Request validation | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pr-check: | ||
name: Perform Checks | ||
uses: ./.github/workflows/checks.yaml |
61 changes: 61 additions & 0 deletions
61
tests_generated/test_default_preset/.github/workflows/release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
- "**.md" | ||
- ".vscode/**" | ||
- ".idea/**" | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
lint-and-build: | ||
name: CI dApp | ||
uses: ./.github/workflows/checks.yaml | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Netlify | ||
environment: Prod | ||
concurrency: "${{ github.workflow }}-prod" | ||
needs: | ||
- lint-and-build | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
- name: Replace template vars | ||
uses: makerxstudio/shared-config/.github/actions/placeholder-transforms@main | ||
with: | ||
app-artifact-path: './dist' | ||
static-site-transforms: |- | ||
VITE_ALGOD_TOKEN:${{ secrets.VITE_ALGOD_TOKEN }} | ||
VITE_ALGOD_SERVER:${{ vars.VITE_ALGOD_SERVER }} | ||
VITE_ALGOD_PORT:${{ vars.VITE_ALGOD_PORT }} | ||
VITE_ALGOD_NETWORK:${{ vars.VITE_ALGOD_NETWORK }} | ||
VITE_INDEXER_SERVER:${{ vars.VITE_INDEXER_SERVER }} | ||
VITE_INDEXER_PORT:${{ vars.VITE_INDEXER_PORT }} | ||
VITE_INDEXER_TOKEN:${{ secrets.VITE_INDEXER_TOKEN }} | ||
VITE_ENVIRONMENT:${{ vars.VITE_ENVIRONMENT }} | ||
- name: Install netlify cli | ||
run: npm i netlify-cli | ||
|
||
- name: Publish to netlify | ||
run: netlify deploy --prod --dir "dist" | ||
env: | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
|
||
# dotenv environment variable files | ||
.env | ||
env/ | ||
|
||
# misc | ||
/dist | ||
.DS_Store | ||
|
||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
|
||
# PyCharm | ||
.idea | ||
!.idea/ | ||
.idea/* | ||
!.idea/runConfigurations/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# don't ever format node_modules | ||
node_modules | ||
# don't lint format output (make sure it's set to your correct build folder name) | ||
dist | ||
build | ||
# don't format nyc coverage output | ||
coverage | ||
# don't format generated types | ||
**/generated/types.d.ts | ||
**/generated/types.ts | ||
# don't format ide files | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
jsxSingleQuote: false, | ||
semi: false, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
printWidth: 140, | ||
endOfLine: 'lf', | ||
arrowParens: 'always', | ||
} |
14 changes: 14 additions & 0 deletions
14
tests_generated/test_default_preset/.vscode/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"dotenv.dotenv-vscode", | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint", | ||
"krysenlo.vite-plugin-eslint-problemmatcher", | ||
"ms-playwright.playwright", | ||
"Orta.vscode-jest", | ||
"bradlc.vscode-tailwindcss", | ||
"csstools.postcss", | ||
] | ||
} | ||
|
Oops, something went wrong.