Skip to content

Commit 84be259

Browse files
Merge pull request #20 from torusresearch/feat/typescript
Migrate project to typescript
2 parents a7d0aaf + d1e28c1 commit 84be259

File tree

147 files changed

+44787
-50220
lines changed

Some content is hidden

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

147 files changed

+44787
-50220
lines changed

.eslintignore

-7
This file was deleted.

.eslintrc.json

-267
This file was deleted.

.github/workflows/main.yml

+7-28
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# This workflow contains a single job called "build"
1919
base:
2020
# The type of runner that the job will run on
21-
runs-on: ubuntu-18.04
21+
runs-on: ubuntu-20.04
2222

2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
@@ -53,40 +53,21 @@ jobs:
5353
- name: check build size webpack
5454
run: npm run size:webpack
5555

56-
- name: check build size browserify
57-
run: npm run size:browserify
58-
59-
- name: check build size rollup
60-
run: npm run size:rollup
61-
6256
- name: code format
6357
run: npm run lint
6458

6559
- name: test typings
6660
run: npm run test:typings
6761

68-
# - name: test browser
69-
# uses: GabrielBB/xvfb-action@v1
70-
# with:
71-
# working-directory: ./ #optional
72-
# run: npm run test:browser
73-
7462
- name: test performance
7563
run: npm run test:performance
7664

77-
# - name: test e2e
78-
# uses: GabrielBB/xvfb-action@v1
79-
# with:
80-
# working-directory: ./ #optional
81-
# run: npm run test:e2e
82-
83-
8465
# run the node test in an own task, so we can use a node-version matrix.
85-
test-node:
66+
test:
8667
runs-on: ubuntu-20.04
8768
strategy:
8869
matrix:
89-
node: ['15.14.0', '16.13.1', '17.3.0' ]
70+
node: ['22.x' ]
9071
steps:
9172
- uses: actions/checkout@v3
9273
- name: Setup Node.js environment
@@ -120,10 +101,8 @@ jobs:
120101
- name: test node
121102
run: npm run test:node
122103

104+
- name: Install playwright webkit
105+
run: npx playwright install-deps webkit
123106

124-
# TODO this does not work atm. fix this.
125-
# - name: test electron
126-
# uses: GabrielBB/xvfb-action@v1
127-
# with:
128-
# working-directory: ./test-electron
129-
# run: npm install --depth 0 --silent && npm run test
107+
- name: test browser
108+
run: npx playwright install && npm run test:browser

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules/
2-
package-lock.json
32
.idea/
43
.vscode/
54
.transpile_state.json
@@ -8,4 +7,6 @@ shelljs_*
87
test_tmp/
98
tmp/
109
.eslintcache
11-
toruslabs-*.tgz
10+
toruslabs-*.tgz
11+
dist/
12+
.DS_Store

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
unsafe-perm = true
2-
package-lock=false

.prettierignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
#production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

.prettierrc

-7
This file was deleted.

.prettierrc.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# .prettierrc or .prettierrc.yaml
2+
printWidth: 150
3+
singleQuote: false
4+
semi: true
5+
trailingComma: es5

0 commit comments

Comments
 (0)