added build script
This commit is contained in:
parent
8912bce342
commit
dde7d10e4f
4 changed files with 8 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
node_modules/
|
||||
bin/
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"scripts": {
|
||||
"start": "ts-node --project tsconfig.json src/index.ts"
|
||||
"build": "tsc --project tsconfig.json",
|
||||
"start": "node bin/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"i2c-bus": "^5.2.2",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { openSync } from 'i2c-bus';
|
||||
import Oled = require('oled-i2c-bus');
|
||||
import Oled from 'oled-i2c-bus';
|
||||
|
||||
const i2cbus = openSync(1);
|
||||
const opts = {
|
||||
|
|
|
@ -12,13 +12,15 @@
|
|||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"esModuleInterop": true,
|
||||
"paths": {
|
||||
"*": ["@types/*"]
|
||||
"*": ["./@types/*"]
|
||||
},
|
||||
"typeRoots": [
|
||||
"./node_modules/@types",
|
||||
"./@types"
|
||||
]
|
||||
],
|
||||
"outDir": "./bin"
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
|
Reference in a new issue