mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
added an option to specify custom typedoc theme
This commit is contained in:
@@ -146,7 +146,7 @@ module.exports = function(grunt) {
|
|||||||
outTsAppsDir: "./bin/dist/ts-apps",
|
outTsAppsDir: "./bin/dist/ts-apps",
|
||||||
outApiRefDir: "./bin/dist/api-ref"
|
outApiRefDir: "./bin/dist/api-ref"
|
||||||
};
|
};
|
||||||
|
|
||||||
var nodeTestEnv = JSON.parse(JSON.stringify(process.env));
|
var nodeTestEnv = JSON.parse(JSON.stringify(process.env));
|
||||||
nodeTestEnv.NODE_PATH = localCfg.outModulesDir;
|
nodeTestEnv.NODE_PATH = localCfg.outModulesDir;
|
||||||
|
|
||||||
@@ -454,6 +454,7 @@ module.exports = function(grunt) {
|
|||||||
"module": 'commonjs',
|
"module": 'commonjs',
|
||||||
"target": 'es5',
|
"target": 'es5',
|
||||||
"out": localCfg.outApiRefDir,
|
"out": localCfg.outApiRefDir,
|
||||||
|
"theme": '<%= grunt.option("theme") || "default" %>',
|
||||||
//"json": './dist/doc.json',
|
//"json": './dist/doc.json',
|
||||||
"name": 'NativeScript',
|
"name": 'NativeScript',
|
||||||
"includeDeclarations": undefined,
|
"includeDeclarations": undefined,
|
||||||
@@ -701,7 +702,7 @@ module.exports = function(grunt) {
|
|||||||
"env:nodeTests",
|
"env:nodeTests",
|
||||||
"exec:mochaNode", //spawn a new process to use the new NODE_PATH
|
"exec:mochaNode", //spawn a new process to use the new NODE_PATH
|
||||||
]);
|
]);
|
||||||
|
|
||||||
grunt.registerTask("inplace", [
|
grunt.registerTask("inplace", [
|
||||||
"ts:build-inplace",
|
"ts:build-inplace",
|
||||||
"generate-tns-core-modules-dev-dts"
|
"generate-tns-core-modules-dev-dts"
|
||||||
|
|||||||
Reference in New Issue
Block a user