Skip to content

Commit d96eefe

Browse files
committed
chore: setup ts build
1 parent 018c607 commit d96eefe

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

.eslintignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
lib/definitions.js
2-
lib/version.js
3-
lib/helpers.js
1+
lib/

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
node-version: '16'
1818
cache: 'npm'
1919
- run: npm ci
20+
- run: npm run build
2021
- run: npm run test
2122
lint:
2223
runs-on: ubuntu-latest
@@ -28,4 +29,5 @@ jobs:
2829
node-version: '16'
2930
cache: 'npm'
3031
- run: npm ci
32+
- run: npm run build
3133
- run: npm run lint

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ coverage/
22
dist/
33
doc/
44
examples/browser/js/
5+
lib/
56
CHANGELOG.md
67
package-lock.json

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"scripts": {
1313
"browser": "./node_modules/.bin/gulp browser",
1414
"jsdoc": "./node_modules/.bin/gulp jsdoc",
15+
"build": "tsc",
1516
"format": "prettier --write .",
1617
"lint": "echo 'TODO eslint'",
1718
"test": "node_modules/.bin/mocha test/*.*.js",

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"rootDir": "src",
4+
"outDir": "lib",
5+
"declaration": true
6+
}
7+
}

0 commit comments

Comments
 (0)