mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 21:57:51 +00:00
Set up TypeScript compilation, and make a small start on converting the CLI
Change-Type: patch
This commit is contained in:
parent
93d1e3a4a1
commit
eb68bb1a1a
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,6 +25,7 @@ build/Release
|
|||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
npm-shrinkwrap.json
|
npm-shrinkwrap.json
|
||||||
|
package-lock.json
|
||||||
.resinconf
|
.resinconf
|
||||||
resinrc.yml
|
resinrc.yml
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"resin": "./bin/resin"
|
"resin": "./bin/resin"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp coffee && npm run doc",
|
"build": "gulp coffee && tsc && npm run doc",
|
||||||
"ci": "npm run build && catch-uncommitted",
|
"ci": "npm run build && catch-uncommitted",
|
||||||
"doc": "mkdir -p doc/ && coffee extras/capitanodoc/index.coffee > doc/cli.markdown",
|
"doc": "mkdir -p doc/ && coffee extras/capitanodoc/index.coffee > doc/cli.markdown",
|
||||||
"watch": "gulp watch",
|
"watch": "gulp watch",
|
||||||
@ -42,7 +42,8 @@
|
|||||||
"gulp-coffee": "^2.2.0",
|
"gulp-coffee": "^2.2.0",
|
||||||
"gulp-coffeelint": "^0.6.0",
|
"gulp-coffeelint": "^0.6.0",
|
||||||
"gulp-shell": "^0.5.2",
|
"gulp-shell": "^0.5.2",
|
||||||
"require-npm4-to-publish": "^1.0.0"
|
"require-npm4-to-publish": "^1.0.0",
|
||||||
|
"typescript": "^2.5.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@resin.io/valid-email": "^0.1.0",
|
"@resin.io/valid-email": "^0.1.0",
|
||||||
|
16
tsconfig.json
Normal file
16
tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"outDir": "build",
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"preserveConstEnums": true,
|
||||||
|
"removeComments": true,
|
||||||
|
"sourceMap": true
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"./lib/**/*.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user