Skip to content

Commit

Permalink
chore: setup ts build
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored and damienwebdev committed Jan 14, 2022
1 parent a8e8676 commit b8bfb45
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
lib/definitions.js
lib/version.js
lib/helpers.js
lib/
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test
lint:
runs-on: ubuntu-latest
Expand All @@ -28,4 +29,5 @@ jobs:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run lint
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ coverage/
dist/
doc/
examples/browser/js/
lib/
CHANGELOG.md
package-lock.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"scripts": {
"browser": "gulp browser",
"jsdoc": "gulp jsdoc",
"build": "tsc",
"format": "prettier --write .",
"lint": "echo 'TODO eslint'",
"test": "mocha test/*.*.js",
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"declaration": true
}
}

0 comments on commit b8bfb45

Please sign in to comment.