Skip to content

Commit 9514627

Browse files
chore(docs): Add publishdocs script
1 parent 76dac28 commit 9514627

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
1414
"package": "npm run build",
1515
"docs": "typedoc --tsconfig tsconfig.typedoc.json --readme README.md --name '@uirouter/angular' --theme node_modules/ui-router-typedoc-themes/bin/default --out _doc --internal-aliases internal,coreapi,ng2api --external-aliases internalapi,external --navigation-label-globals @uirouter/angular",
16-
"prepublish": "npm run build",
16+
"publishdocs": "npm run docs && node --harmony scripts/publishdocs.js",
17+
"prepare": "npm run build",
1718
"changelog": "node scripts/update_changelog.js",
1819
"release": "node scripts/release.js",
1920
"artifacts": "node scripts/artifact_tagging.js"

scripts/release.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ if (!readlineSync.keyInYN('Ready to publish?')) {
3131
util.ensureCleanMaster('master');
3232

3333
_exec('npm run package');
34-
_exec(`npm run docs`);
3534

3635
// publish to npm first
3736
_exec(`npm publish`);
3837

3938
// then tag and push tag
4039
_exec(`git tag ${version}`);
4140
_exec(`git push origin ${version}`);
41+
_exec(`npm run artifacts`);
4242

43-
console.log("\n\nAPI docs generated (but not deployed) at ./_docs.");
44-
console.log("Run this command to generate docs:");
45-
console.log("\n\nnpm run docs\n\n");
46-
console.log("Run this command to publish artifacts tag:");
47-
console.log("\n\nnpm run artifacts\n");
43+
console.log("\n\nRun this command to publish docs:");
44+
console.log("\n\nnpm run publishdocs\n\n");

0 commit comments

Comments
 (0)