Add npm script to automate the tsc build for PRs on CI (#4599)

* Add npm run ci to automate some ci stuff

* Inlude node types for node_tests
This commit is contained in:
Panayot Cankov
2017-07-26 18:15:06 +03:00
committed by SvetoslavTsenov
parent c199b31000
commit d978424f35
4 changed files with 16 additions and 3 deletions

View File

@@ -35,6 +35,9 @@
"scripts": {
"setup": "npm run dev-link-tns-platform-declarations && npm run dev-link-tns-core-modules && npm run dev-link-tests && npm run dev-link-apps",
"tsc": "node --max_old_space_size=4096 ./node_modules/typescript/bin/tsc",
"ci": "tsc && npm run tslint && npm run ci-apps && npm run ci-tests",
"ci-apps": "cd apps && npm i ../tns-core-modules ../tns-platform-declarations --save",
"ci-tests": "cd tests && npm i ../tns-core-modules ../tns-platform-declarations --save",
"compile-all": "npm run tsc -- -p tsconfig.json --outDir bin/dist",
"compile-modules": "npm run tsc -- -p tsconfig-modules.json --outDir bin/dist",
"compile-check-base-dts": "npm run tsc -- -p tsconfig.base-dts.json",

View File

@@ -23,5 +23,11 @@
"tns-core-modules/references.d.ts",
"tns-platform-declarations/ios/objc-x86_64/",
"node-tests/"
]
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"tns-core-modules/*": ["tns-core-modules/*"]
}
}
}

View File

@@ -9,5 +9,8 @@
"tns-core-modules/declarations.d.ts",
"tns-core-modules/es6-promise.d.ts",
"node-tests/**/*.ts"
]
],
"compilerOptions": {
"types": ["node"]
}
}

View File

@@ -15,6 +15,7 @@
"reactNamespace": "UIBuilder",
"lib": [
"es6", "dom"
]
],
"types": []
}
}