Skip to content

Commit 2d258e9

Browse files
committed
chore: Replace development tools
Simplify the build by using fewer custom scripts and depending on actively developed tools with better performance. * test -> tehanu * eslint -> denolint * terser -> esbuild
1 parent 87205c2 commit 2d258e9

34 files changed

+990
-2355
lines changed

.denolint.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"files": {
3+
"exclude": [
4+
"benchmarks/chevrotain",
5+
"benchmarks/hand-built",
6+
"benchmarks/jju",
7+
"benchmarks/myna"
8+
]
9+
},
10+
"rules": {
11+
"tags": ["recommended"]
12+
}
13+
}

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ test/fails
55
test/passes
66
test/recursive
77
test/v8
8-
test/typings.test.js
8+
test/types.test.mjs
99
web/*.min.*

.eslintrc.yml

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

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout Sources
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install Node
14-
uses: actions/setup-node@v2
14+
uses: actions/setup-node@v3
1515
with:
1616
node-version: 'lts/*'
1717
registry-url: 'https://registry.npmjs.org'
1818
- name: Install PNPM
1919
uses: pnpm/action-setup@v2
2020
with:
21-
version: '>=6'
21+
version: latest
2222
run_install: |
23-
- args: [--frozen-lockfile, --no-verify-store-integrity, --no-optional]
23+
- args: [--frozen-lockfile, --no-verify-store-integrity]
2424
- name: Test
2525
run: npm test
2626
- name: Coverage
27-
run: pnpx codecov --disable=gcov
27+
uses: codecov/codecov-action@v3
2828
- name: Publish
2929
uses: cycjimmy/semantic-release-action@v2
3030
with:
31-
semantic_version: 18
31+
semantic_version: 19
3232
branches: master
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
.DS_Store
2-
.nyc_output
32
benchmarks/jison/*.js
43
benchmarks/pegjs/*.js
54
benchmarks/nearley/*.js
65
coverage
76
node_modules
87
lib/jsonlint*.js
98
lib/schema-drafts.js
10-
test/typings.test.js
9+
test/types.test.mjs
1110
web/*.min.*

.ncurc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
reject:
22
- ajv
3-
- test

.tslintrc.yml

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

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"name": "test",
1919
"type": "node",
2020
"request": "launch",
21-
"program": "${workspaceRoot}/test/parse2.js",
21+
"program": "${workspaceRoot}/test/v8.js",
2222
"args": [
2323
"--native-parser"
2424
],

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
".nyc_output": true,
54
"node_modules": true,
65
"web/*.js": true,
76
"web/*.map": true
@@ -14,7 +13,7 @@
1413
"**/test/passes": true,
1514
"**/test/recursive": true,
1615
"**/test/v8": true,
17-
"**/test/typings.test.js": true
18-
},
16+
"**/test/types.test.mjs": true
17+
},
1918
"eslint.enable": true
2019
}

benchmarks/fail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getOffset (line, column) {
4141
if (line > 1) {
4242
const breaks = /\r?\n/g
4343
let match
44-
while (match = breaks.exec(inputSource)) { // eslint-disable-line no-cond-assign
44+
while ((match = breaks.exec(inputSource))) {
4545
if (--line === 1) {
4646
return match.index + column
4747
}

0 commit comments

Comments
 (0)