Use yarn docs:json
command
This commit is contained in:
parent
2c055db0d7
commit
e70c3976db
@ -14,6 +14,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "npm run clean",
|
"prebuild": "npm run clean",
|
||||||
"build": "run-p build:umd:prod build:commonjs; exit 0;",
|
"build": "run-p build:umd:prod build:commonjs; exit 0;",
|
||||||
|
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $1 $2",
|
||||||
"lint": "tslint src/**/*.ts test/**/*.ts",
|
"lint": "tslint src/**/*.ts test/**/*.ts",
|
||||||
"test:circleci": "run-s test:coverage report_test_coverage; if [ $CIRCLE_BRANCH = \"development\" ]; then yarn test:umd; fi",
|
"test:circleci": "run-s test:coverage report_test_coverage; if [ $CIRCLE_BRANCH = \"development\" ]; then yarn test:umd; fi",
|
||||||
"test": "run-s clean test:commonjs",
|
"test": "run-s clean test:commonjs",
|
||||||
|
@ -28,14 +28,13 @@ getLatestTagAndVersionAsync(subPackageName)
|
|||||||
reuseRelease: true,
|
reuseRelease: true,
|
||||||
reuseDraftOnly: false,
|
reuseDraftOnly: false,
|
||||||
assets: [__dirname + '/../_bundles/index.js', __dirname + '/../_bundles/index.min.js'],
|
assets: [__dirname + '/../_bundles/index.js', __dirname + '/../_bundles/index.min.js'],
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(function(release) {
|
.then(function(release) {
|
||||||
console.log('POSTPUBLISH: Release successful, generating docs...');
|
console.log('POSTPUBLISH: Release successful, generating docs...');
|
||||||
|
|
||||||
// return typedocApp.generateDocs([rootDir], __dirname + '/../docs/index.json');
|
|
||||||
return execAsync(
|
return execAsync(
|
||||||
'yarn typedoc --excludePrivate --excludeExternals --target ES5 --json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
|
'yarn docs:json ' + __dirname + '/../docs/index.json ' + __dirname + '/..',
|
||||||
{
|
{
|
||||||
cwd: __dirname + '/..',
|
cwd: __dirname + '/..',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user