Skip to content

Commit 0d0b221

Browse files
authored
Use yarn and esbuild-register (#175)
* Use yarn and esbuild-register * fix
1 parent 7c8f82b commit 0d0b221

30 files changed

+43
-1988
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# These are supported funding model platforms
22

3-
github: ota-meshi
4-
# patreon: # Replace with a single Patreon username
5-
# open_collective: # Replace with a single Open Collective username
6-
# ko_fi: # Replace with a single Ko-fi username
7-
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
# liberapay: # Replace with a single Liberapay username
10-
# issuehunt: # Replace with a single IssueHunt username
11-
# otechie: # Replace with a single Otechie username
12-
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
3+
github: [ota-meshi, JounQin]
4+
open_collective: rxts
5+
patreon: 1stG

.github/workflows/GHPages.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 18
1614
- name: Install And Build
1715
run: |+
18-
npm install --legacy-peer-deps
19-
npm run build
16+
yarn install
17+
yarn build
2018
cd explorer-v2
21-
npm install --legacy-peer-deps
22-
npm run pre-build
23-
npm run build
19+
yarn install
20+
yarn pre-build
21+
yarn build
2422
- name: Deploy
2523
uses: peaceiris/actions-gh-pages@v3
2624
with:

.github/workflows/NodeCI.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 14
1715
- name: Install Packages
18-
run: npm install --legacy-peer-deps
16+
run: yarn install
1917
- name: Lint
20-
run: npm run lint
18+
run: yarn lint
2119
test:
2220
runs-on: ubuntu-latest
2321
strategy:
@@ -30,9 +28,9 @@ jobs:
3028
with:
3129
node-version: ${{ matrix.node-version }}
3230
- name: Install Packages
33-
run: npm install --legacy-peer-deps
31+
run: yarn install --ignore-engines
3432
- name: Test
35-
run: npm test
33+
run: yarn test
3634
test-for-ts-eslint-v4:
3735
runs-on: ubuntu-latest
3836
strategy:
@@ -46,12 +44,12 @@ jobs:
4644
node-version: ${{ matrix.node-version }}
4745
- name: Install @typescript-eslint v4
4846
run: |+
49-
npm i -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 --legacy-peer-deps
50-
npx rimraf node_modules
47+
yarn add -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 --ignore-engines
48+
rm -rf node_modules
5149
- name: Install Packages
52-
run: npm install --legacy-peer-deps
50+
run: yarn install --ignore-engines
5351
- name: Test
54-
run: npm test
52+
run: yarn test
5553
test-for-eslint-v7:
5654
runs-on: ubuntu-latest
5755
strategy:
@@ -65,21 +63,21 @@ jobs:
6563
node-version: ${{ matrix.node-version }}
6664
- name: Install eslint v7
6765
run: |+
68-
npm i -D eslint@7 --legacy-peer-deps
69-
npx rimraf node_modules
66+
yarn add -D eslint@7 --ignore-engines
67+
rm -rf node_modules
7068
- name: Install Packages
71-
run: npm install --legacy-peer-deps
69+
run: yarn install --ignore-engines
7270
- name: Test
73-
run: npm test
71+
run: yarn test
7472
test-and-coverage:
7573
runs-on: ubuntu-latest
7674
steps:
7775
- uses: actions/checkout@v3
7876
- uses: actions/setup-node@v3
7977
- name: Install Packages
80-
run: npm install --legacy-peer-deps
78+
run: yarn install --ignore-engines
8179
- name: Test
82-
run: npm run cover
80+
run: yarn cover
8381
- name: Coveralls GitHub Action
8482
uses: coverallsapp/[email protected]
8583
with:

.github/workflows/NpmPublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
with:
1616
registry-url: 'https://registry.npmjs.org'
1717
- name: Install Packages
18-
run: npm install --legacy-peer-deps
18+
run: yarn install
1919
- name: test and build
2020
run: |
21-
npm run build
22-
npm run test
21+
yarn build
22+
yarn test
2323
- name: check can npm-publish
2424
run: npx can-npm-publish
2525
- name: release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ dist
104104
.tern-port
105105

106106
# repo
107+
yarn.lock
107108
/lib
108109
/.nyc_output
109110
/coverage

explorer/.eslintrc.js

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

explorer/.npmrc

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

explorer/babel.config.js

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

explorer/package.json

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

explorer/public/index.html

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

0 commit comments

Comments
 (0)