mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
committed by
SvetoslavTsenov
parent
c199b31000
commit
d978424f35
@@ -35,6 +35,9 @@
|
|||||||
"scripts": {
|
"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",
|
"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",
|
"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-all": "npm run tsc -- -p tsconfig.json --outDir bin/dist",
|
||||||
"compile-modules": "npm run tsc -- -p tsconfig-modules.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",
|
"compile-check-base-dts": "npm run tsc -- -p tsconfig.base-dts.json",
|
||||||
|
|||||||
@@ -23,5 +23,11 @@
|
|||||||
"tns-core-modules/references.d.ts",
|
"tns-core-modules/references.d.ts",
|
||||||
"tns-platform-declarations/ios/objc-x86_64/",
|
"tns-platform-declarations/ios/objc-x86_64/",
|
||||||
"node-tests/"
|
"node-tests/"
|
||||||
]
|
],
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"tns-core-modules/*": ["tns-core-modules/*"]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,5 +9,8 @@
|
|||||||
"tns-core-modules/declarations.d.ts",
|
"tns-core-modules/declarations.d.ts",
|
||||||
"tns-core-modules/es6-promise.d.ts",
|
"tns-core-modules/es6-promise.d.ts",
|
||||||
"node-tests/**/*.ts"
|
"node-tests/**/*.ts"
|
||||||
]
|
],
|
||||||
|
"compilerOptions": {
|
||||||
|
"types": ["node"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"reactNamespace": "UIBuilder",
|
"reactNamespace": "UIBuilder",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es6", "dom"
|
"es6", "dom"
|
||||||
]
|
],
|
||||||
|
"types": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user