Skip to content

Commit 73dff38

Browse files
Merge pull request #591 from torusresearch/feat/torus-v6
use v6 version
2 parents 637f6f0 + b7822da commit 73dff38

File tree

128 files changed

+11437
-79374
lines changed

Some content is hidden

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

128 files changed

+11437
-79374
lines changed

.eslintignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
node: ["18.x"]
9+
node: ["22.x"]
1010
os: [ubuntu-latest]
1111

1212
runs-on: ${{ matrix.os }}
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up node
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2020
with:
2121
node-version: ${{ matrix.node }}
2222
cache: "npm"
@@ -26,48 +26,5 @@ jobs:
2626

2727
- name: Run Build
2828
run: npm run build
29-
30-
- name: Deploy to npm
31-
if: startsWith(github.ref, 'refs/tags/v')
32-
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > ~/.npmrc && npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
36-
- name: Pack and build example
37-
if: github.ref == 'refs/heads/master'
38-
run: |
39-
npm pack
40-
cd examples/vue-app
41-
npm install --legacy-peer-deps
42-
npm run build
43-
44-
# Set the credentials from repository settings/secrets
45-
- name: Configure AWS credentials
46-
if: github.ref == 'refs/heads/master'
47-
uses: aws-actions/configure-aws-credentials@v2
48-
with:
49-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
50-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
51-
aws-region: ${{ secrets.AWS_REGION_US }}
52-
53-
# Copy the files from build folder to the S3 bucket
54-
# Upload to S3
55-
- name: sync s3
56-
if: github.ref == 'refs/heads/master'
57-
uses: jakejarvis/s3-sync-action@master
5829
env:
59-
SOURCE_DIR: "./examples/vue-app/dist"
60-
AWS_REGION: "us-east-1"
61-
AWS_S3_BUCKET: "demo-eth.tor.us"
62-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
63-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
64-
65-
# Invalidate Cloudfront (this action)
66-
- name: invalidate
67-
if: github.ref == 'refs/heads/master'
68-
uses: chaitanyapotti/cloudfront-update-distribution@v2
69-
with:
70-
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
71-
cloudfront-invalidation-required: true
72-
cloudfront-invalidation-path: "/*"
73-
cloudfront-wait-for-service-update: false
30+
WEB3AUTH_CLIENT_ID: ${{ secrets.WEB3AUTH_CLIENT_ID }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ disc.html
2424

2525
secrets.json
2626
toruslabs-torus-embed*
27-
.eslintcache
27+
.eslintcache
28+
.env

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
>=18.x
1+
>=20.x

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import toruslabsTypescript from "@toruslabs/eslint-config-typescript";
2+
3+
export default [
4+
...toruslabsTypescript,
5+
{
6+
files: ["*.config.js", "*.config.mjs"],
7+
rules: {
8+
"import/no-extraneous-dependencies": 0,
9+
},
10+
},
11+
];

examples/angular-example/.browserslistrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/angular-example/.editorconfig

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)