add compatibility for npmpage
This commit is contained in:
parent
44a86542ec
commit
3554e2543d
3
dist/npmts.paths.d.ts
vendored
3
dist/npmts.paths.d.ts
vendored
@ -3,10 +3,11 @@ export declare let npmtsPackageRoot: string;
|
|||||||
export declare let cwd: string;
|
export declare let cwd: string;
|
||||||
export declare let tsDir: string;
|
export declare let tsDir: string;
|
||||||
export declare let distDir: string;
|
export declare let distDir: string;
|
||||||
export declare let docsDir: string;
|
|
||||||
export declare let testDir: string;
|
export declare let testDir: string;
|
||||||
export declare let typingsDir: string;
|
export declare let typingsDir: string;
|
||||||
export declare let coverageDir: string;
|
export declare let coverageDir: string;
|
||||||
|
export declare let pagesDir: string;
|
||||||
|
export declare let pagesApiDir: string;
|
||||||
export declare let npmtsAssetsDir: string;
|
export declare let npmtsAssetsDir: string;
|
||||||
export declare let indexTS: string;
|
export declare let indexTS: string;
|
||||||
export declare let testTS: string;
|
export declare let testTS: string;
|
||||||
|
10
dist/npmts.paths.js
vendored
10
dist/npmts.paths.js
vendored
@ -1,17 +1,19 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-global");
|
require("typings-global");
|
||||||
var plugins = require("./npmts.plugins");
|
var plugins = require("./npmts.plugins");
|
||||||
//Npmts Paths
|
// NPMTS Paths
|
||||||
exports.npmtsPackageRoot = plugins.path.join(__dirname, "../");
|
exports.npmtsPackageRoot = plugins.path.join(__dirname, "../");
|
||||||
//Project paths
|
// Project paths
|
||||||
exports.cwd = process.cwd();
|
exports.cwd = process.cwd();
|
||||||
//Directories
|
// Directories
|
||||||
exports.tsDir = plugins.path.join(exports.cwd, "ts/");
|
exports.tsDir = plugins.path.join(exports.cwd, "ts/");
|
||||||
exports.distDir = plugins.path.join(exports.cwd, "dist/");
|
exports.distDir = plugins.path.join(exports.cwd, "dist/");
|
||||||
exports.docsDir = plugins.path.join(exports.cwd, "docs/");
|
|
||||||
exports.testDir = plugins.path.join(exports.cwd, "test/");
|
exports.testDir = plugins.path.join(exports.cwd, "test/");
|
||||||
exports.typingsDir = plugins.path.join(exports.cwd, "ts/typings/");
|
exports.typingsDir = plugins.path.join(exports.cwd, "ts/typings/");
|
||||||
exports.coverageDir = plugins.path.join(exports.cwd, "coverage/");
|
exports.coverageDir = plugins.path.join(exports.cwd, "coverage/");
|
||||||
|
// Pages
|
||||||
|
exports.pagesDir = plugins.path.join(exports.cwd, "pages/");
|
||||||
|
exports.pagesApiDir = plugins.path.join(exports.pagesDir, "/api");
|
||||||
exports.npmtsAssetsDir = plugins.path.join(__dirname, "../assets/");
|
exports.npmtsAssetsDir = plugins.path.join(__dirname, "../assets/");
|
||||||
//Files
|
//Files
|
||||||
exports.indexTS = plugins.path.join(exports.cwd, "ts/index.ts");
|
exports.indexTS = plugins.path.join(exports.cwd, "ts/index.ts");
|
||||||
|
4
dist/npmts.typedoc.js
vendored
4
dist/npmts.typedoc.js
vendored
@ -14,8 +14,8 @@ var genTypeDoc = function (configArg) {
|
|||||||
target: "es6",
|
target: "es6",
|
||||||
includeDeclarations: true,
|
includeDeclarations: true,
|
||||||
// Output options (see typedoc docs)
|
// Output options (see typedoc docs)
|
||||||
out: paths.docsDir,
|
out: paths.pagesApiDir,
|
||||||
json: plugins.path.join(paths.docsDir, "file.json"),
|
json: plugins.path.join(paths.pagesApiDir, "file.json"),
|
||||||
// TypeDoc options (see typedoc docs)
|
// TypeDoc options (see typedoc docs)
|
||||||
name: "my-project",
|
name: "my-project",
|
||||||
//theme: "default",
|
//theme: "default",
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
import plugins = require("./npmts.plugins");
|
import plugins = require("./npmts.plugins");
|
||||||
|
|
||||||
//Npmts Paths
|
// NPMTS Paths
|
||||||
export let npmtsPackageRoot = plugins.path.join(__dirname,"../");
|
export let npmtsPackageRoot = plugins.path.join(__dirname,"../");
|
||||||
|
|
||||||
|
|
||||||
//Project paths
|
// Project paths
|
||||||
export let cwd = process.cwd();
|
export let cwd = process.cwd();
|
||||||
|
|
||||||
//Directories
|
// Directories
|
||||||
export let tsDir = plugins.path.join(cwd,"ts/");
|
export let tsDir = plugins.path.join(cwd,"ts/");
|
||||||
export let distDir = plugins.path.join(cwd,"dist/");
|
export let distDir = plugins.path.join(cwd,"dist/");
|
||||||
export let docsDir = plugins.path.join(cwd,"docs/");
|
|
||||||
export let testDir = plugins.path.join(cwd,"test/");
|
export let testDir = plugins.path.join(cwd,"test/");
|
||||||
export let typingsDir = plugins.path.join(cwd,"ts/typings/");
|
export let typingsDir = plugins.path.join(cwd,"ts/typings/");
|
||||||
export let coverageDir = plugins.path.join(cwd,"coverage/");
|
export let coverageDir = plugins.path.join(cwd,"coverage/");
|
||||||
|
|
||||||
|
// Pages
|
||||||
|
export let pagesDir = plugins.path.join(cwd,"pages/");
|
||||||
|
export let pagesApiDir = plugins.path.join(pagesDir,"/api");
|
||||||
|
|
||||||
export let npmtsAssetsDir = plugins.path.join(__dirname,"../assets/");
|
export let npmtsAssetsDir = plugins.path.join(__dirname,"../assets/");
|
||||||
|
|
||||||
//Files
|
//Files
|
||||||
|
@ -15,8 +15,8 @@ let genTypeDoc = function (configArg) {
|
|||||||
includeDeclarations: true,
|
includeDeclarations: true,
|
||||||
|
|
||||||
// Output options (see typedoc docs)
|
// Output options (see typedoc docs)
|
||||||
out: paths.docsDir,
|
out: paths.pagesApiDir,
|
||||||
json: plugins.path.join(paths.docsDir, "file.json"),
|
json: plugins.path.join(paths.pagesApiDir, "file.json"),
|
||||||
|
|
||||||
// TypeDoc options (see typedoc docs)
|
// TypeDoc options (see typedoc docs)
|
||||||
name: "my-project",
|
name: "my-project",
|
||||||
|
Loading…
Reference in New Issue
Block a user