Prepared project to move to Typescript

This commit is contained in:
Alexander Cerutti
2019-05-11 14:12:16 +02:00
parent 27b87b6f80
commit bd6c856ebb
4 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ passModels/
certificates/
*.code-workspace
.vscode/
*.js

View File

@@ -3,3 +3,5 @@ certificates/
*.code-workspace
examples/
.vscode/
*.ts
!*.d.ts

View File

@@ -4,7 +4,9 @@
"description": "The easiest way to generate custom Apple Wallet passes in Node.js",
"main": "index.js",
"scripts": {
"test": "jasmine spec/index.js"
"build": "tsc",
"prepublish": "npm run build",
"test": "npm run build && jasmine spec/index.js"
},
"author": "Alexander Patrick Cerutti",
"license": "MIT",

11
tsconfig.json Normal file
View File

@@ -0,0 +1,11 @@
{
"compilerOptions": {
"module": "commonjs",
"outDir": "dist",
"target": "es2018",
"esModuleInterop": true,
"newLine": "LF",
"noImplicitAny": true,
"noUnusedLocals": true,
}
}