Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperweb-io/create-cosmos-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: hyperweb-io/create-cosmos-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: downgrade-yarn
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
Loading
Showing 3,899 changed files with 1,351,855 additions and 168,651 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
70 changes: 0 additions & 70 deletions .eslintrc.js

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/run-tests-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Build Next.js examples

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
fail-fast: true
matrix:
example:
[
asset-list,
authz,
vote-proposal,
ibc-transfer,
swap-tokens,
provide-liquidity,
nft,
connect-chain,
connect-multi-chain,
]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set template_path Environment Variable
run: |
example_value="${{ matrix.example }}"
if [[ "$example_value" == "connect-chain" ]] || [[ "$example_value" == "connect-multi-chain" ]]; then
echo "template_path=templates" >> $GITHUB_ENV
echo "ci_template_path=dest" >> $GITHUB_ENV
else
echo "template_path=examples" >> $GITHUB_ENV
echo "ci_template_path=dest" >> $GITHUB_ENV
fi
- name: Log
run: |
echo "Using template_path: $template_path"
echo "Using ci_template_path: $ci_template_path"
- name: Clone example
run: |
echo "Cloning example: ./$template_path/${{ matrix.example }}/" into "${{ github.workspace }}/$ci_template_path/${{ matrix.example }}"
mkdir -p ${{ github.workspace }}/$ci_template_path/${{ matrix.example }}
cp -r ./$template_path/${{ matrix.example }}/ ${{ github.workspace }}/$ci_template_path/
cd ${{ github.workspace }}/$ci_template_path/${{ matrix.example }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache NextJS
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Build example project
run: |
echo "Building example: ${{ matrix.example }} in directory ${{ github.workspace }}/$ci_template_path/${{ matrix.example }}"
cd ${{ github.workspace }}/$ci_template_path/${{ matrix.example }}
ls -la
yarn install
yarn build
82 changes: 82 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Run Tests Prod

on:
push:
branches:
- main
workflow_dispatch:

jobs:
run-tests:
runs-on: ubuntu-latest

steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: |
echo "YARN_ENABLE_IMMUTABLE_INSTALLS=false" >> $GITHUB_ENV
npm install -g create-cosmos-app
- name: asset-list
run: |
cca --example asset-list --name asset-list
cd asset-list
yarn build
- name: vote-proposal
run: |
cca --example vote-proposal --name vote-proposal
cd vote-proposal
yarn build
- name: ibc-transfer
run: |
cca --example ibc-transfer --name ibc-transfer
cd ibc-transfer
yarn build
- name: swap-tokens
run: |
cca --example swap-tokens --name swap-tokens
cd swap-tokens
yarn build
- name: provide-liquidity
run: |
cca --example provide-liquidity --name provide-liquidity
cd provide-liquidity
yarn build
- name: nft
run: |
cca --example nft --name nft
cd nft
yarn build
- name: authz
run: |
cca --example authz --name authz
cd authz
yarn build
- name: connect-chain
run: |
cca --template connect-chain --name connect-chain
cd connect-chain
yarn build
- name: connect-multi-chain
run: |
cca --template connect-multi-chain --name connect-multi-chain
cd connect-multi-chain
yarn build
- name: website
run: |
cca --boilerplate website --name website
cd website
yarn build
29 changes: 0 additions & 29 deletions .github/workflows/run-tests.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.yarn
.yarn/*
.DS_Store
.eslintcache
*.log
2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .prettierrc or .prettierrc.yaml
singleQuote: true
34 changes: 16 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"editor.formatOnSave": true,
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact"
],
"files.exclude": {
".yarn/*": true
},
}
"editor.formatOnSave": true,
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "javascriptreact"],
"files.exclude": {
".yarn/*": true
},
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading