mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #2210 from NativeScript/hdeshev/dev-tests-scripts
Add dev tests scripts
This commit is contained in:
@@ -114,15 +114,15 @@ var files = JSON.parse(fs.readFileSync("./tsconfig.json")).files;
|
|||||||
var options = {
|
var options = {
|
||||||
noEmitOnError: true,
|
noEmitOnError: true,
|
||||||
noEmitHelpers: true,
|
noEmitHelpers: true,
|
||||||
target: 1 /* ES5 */,
|
target: ts.ScriptTarget.ES5,
|
||||||
module: 1 /* CommonJS */,
|
module: ts.ModuleKind.CommonJS,
|
||||||
declaration: false,
|
declaration: false,
|
||||||
noImplicitAny: false,
|
noImplicitAny: false,
|
||||||
noImplicitUseStrict: true,
|
noImplicitUseStrict: true,
|
||||||
experimentalDecorators: true
|
experimentalDecorators: true
|
||||||
};
|
};
|
||||||
if (isTranspile) {
|
if (isTranspile) {
|
||||||
transpile(files, { module: 1 /* CommonJS */ });
|
transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
compile(files, options);
|
compile(files, options);
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ var options: ts.CompilerOptions = {
|
|||||||
experimentalDecorators: true
|
experimentalDecorators: true
|
||||||
};
|
};
|
||||||
if (isTranspile) {
|
if (isTranspile) {
|
||||||
transpile(files, { module: ts.ModuleKind.CommonJS });
|
transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true });
|
||||||
} else {
|
} else {
|
||||||
compile(files, options);
|
compile(files, options);
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,10 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"tsc-tiw": "node build/tsc-dev.js tiw",
|
"tsc-tiw": "node build/tsc-dev.js tiw",
|
||||||
|
"tsc-ti": "node build/tsc-dev.js ti",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"link-tests": "cd tns-core-modules && npm link && cd ../tests && npm link tns-core-modules"
|
"link-tests": "cd tns-core-modules && npm link && cd ../tests && npm link tns-core-modules",
|
||||||
|
"dev-tests-android": "npm run tsc-ti && tns livesync android --path tests",
|
||||||
|
"dev-tests-ios": "npm run tsc-ti && tns livesync ios --path tests"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user