Skip to content

Commit b8bfb45

Browse files
Shinigami92damienwebdev
authored andcommitted
chore: setup ts build
1 parent a8e8676 commit b8bfb45

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.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
@@ -24,6 +24,7 @@
2424
"scripts": {
2525
"browser": "gulp browser",
2626
"jsdoc": "gulp jsdoc",
27+
"build": "tsc",
2728
"format": "prettier --write .",
2829
"lint": "echo 'TODO eslint'",
2930
"test": "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)