Skip to content

Commit

Permalink
feat: add Bitcoin/UTXO support (#297)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Richards <DNR500@users.noreply.github.com>
  • Loading branch information
chybisov and DNR500 authored Oct 18, 2024
1 parent 234844f commit f83341f
Show file tree
Hide file tree
Showing 787 changed files with 37,063 additions and 181,551 deletions.
4 changes: 1 addition & 3 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"extends": [
"@commitlint/config-conventional"
]
"extends": ["@commitlint/config-conventional"]
}
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

87 changes: 0 additions & 87 deletions .eslintrc.base.json

This file was deleted.

19 changes: 19 additions & 0 deletions .github/actions/pnpm-install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'PNPM install'
description: 'Run pnpm install with node_modules and cache enabled'

runs:
using: 'composite'
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
- name: Install dependencies
env:
HUSKY: '0' # By default do not run HUSKY install
shell: bash
run: pnpm install --frozen-lockfile
48 changes: 0 additions & 48 deletions .github/actions/yarn-install/action.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/deploy-test-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/yarn-install
uses: ./.github/actions/pnpm-install

- name: Build project
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: yarn build
NODE_OPTIONS: "--max_old_space_size=4096"
run: pnpm build

- name: Set Project Name
run: |
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
},
body: JSON.stringify({
build_config: {
build_command: "yarn run build",
build_command: "pnpm build",
destination_dir: "packages/widget-playground-vite/dist/",
root_dir: "/",
},
Expand Down Expand Up @@ -113,6 +113,10 @@ jobs:
})
})
# Required to install wrangler during the next step
- name: Set pnpm config to ignore workspace root check
run: pnpm config set ignore-workspace-root-check true

- name: Deploy Page
uses: cloudflare/wrangler-action@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Build React App
uses: ./.github/actions/pnpm-install
- name: Build application
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: yarn build
run: pnpm build
- name: Deploy app build to S3 bucket
run: |
aws s3 sync ./packages/widget-playground-vite/dist/ s3://playground.li.fi --delete
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create release
id: create_release
uses: actions/create-release@v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
generate_release_notes: true
name: ${{ github.ref_name }}
draft: false
prerelease: false

Expand All @@ -35,12 +34,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/yarn-install
uses: ./.github/actions/pnpm-install
- name: Build
run: yarn release:build
run: pnpm release:build
- name: Publish to npm
run: |
yarn release:publish${{ contains(github.ref_name, 'alpha') && ':alpha' || contains(github.ref_name, 'beta') && ':beta' || '' }}
pnpm release:publish${{ contains(github.ref_name, 'alpha') && ':alpha' || contains(github.ref_name, 'beta') && ':beta' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
19 changes: 3 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
**node_modules**
node_modules
.nuxt
dist/
build/
/.pnp
Expand All @@ -17,27 +18,13 @@ build/
.env.test.local
.env.production.local
*.tsbuildinfo
*.tmp

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.next
.cache

# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Swap the comments on the following lines if you wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
# !.yarn/cache
.pnp.*

# next.js
/.next/
/out/
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn commitlint --edit $1
pnpm commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn pre-commit
lint-staged
1 change: 0 additions & 1 deletion .husky/pre-push

This file was deleted.

5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# auto-install-peers=false
enable-pre-post-scripts=true
link-workspace-packages=deep
provenance=true
strict-peer-dependencies=false
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

5 changes: 1 addition & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
"recommendations": ["biomejs.biome"]
}
32 changes: 28 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"npm.packageManager": "yarn",
"javascript.preferences.autoImportFileExcludePatterns": ["**/_types/**"],
"typescript.preferences.autoImportFileExcludePatterns": ["**/_types/**"],
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
Loading

0 comments on commit f83341f

Please sign in to comment.