Skip to content

Commit 8a46984

Browse files
docs(*): Generate and publish docs using publish-scripts
1 parent 0329205 commit 8a46984

File tree

3 files changed

+178
-8
lines changed

3 files changed

+178
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"prepublishOnly": "npm run build",
1515
"test": "karma start",
1616
"test:downstream": "npm run build && test_downstream_projects",
17+
"docs": "generate_docs && publish_docs",
1718
"watch": "run-p watch:*",
1819
"watch:buildjs": "tsc -w",
1920
"watch:buildesm": "tsc -w -m es6 --outDir lib-esm",
@@ -66,7 +67,7 @@
6667
"devDependencies": {
6768
"@types/jasmine": "2.8.6",
6869
"@types/jquery": "3.3.0",
69-
"@uirouter/publish-scripts": "2.2.10",
70+
"@uirouter/publish-scripts": "2.3.1",
7071
"core-js": "2.5.3",
7172
"dts-downlevel": "0.3.0",
7273
"fork-ts-checker-webpack-plugin": "0.3.0",
@@ -81,7 +82,6 @@
8182
"karma-sourcemap-loader": "0.3.7",
8283
"karma-webpack": "2.0.9",
8384
"npm-run-all": "4.1.2",
84-
"readline-sync": "1.4.7",
8585
"rollup": "0.55.3",
8686
"rollup-plugin-node-resolve": "3.0.2",
8787
"rollup-plugin-sourcemaps": "0.4.2",

typedoc.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"compilerOptions": {
3+
"emitDecoratorMetadata": true,
4+
"experimentalDecorators": true,
5+
"moduleResolution": "node",
6+
"module": "commonjs",
7+
"target": "es5",
8+
"lib": [ "es6", "dom" ],
9+
"allowSyntheticDefaultImports": true,
10+
"rootDir": "src",
11+
"outDir": "lib",
12+
"declaration": true,
13+
"sourceMap": true,
14+
"inlineSources": true
15+
},
16+
"typedoc": {
17+
"publishDir": "_core_docs",
18+
"include": [ ],
19+
"generateOptions": {
20+
"tsconfig": "typedoc.json",
21+
"readme": "README.md",
22+
"name": "@uirouter/core",
23+
"theme": "node_modules/ui-router-typedoc-themes/bin/default",
24+
"out": "_doc",
25+
"internal-aliases": "internal,coreapi",
26+
"external-aliases": "internalapi,external",
27+
"navigation-label-globals": "@uirouter/core"
28+
}
29+
},
30+
"files": [
31+
"src/index.ts",
32+
"src/vanilla.ts",
33+
"node_modules/typedoc/node_modules/typescript/lib/lib.es6.d.ts"
34+
]
35+
}

yarn.lock

Lines changed: 141 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22
# yarn lockfile v1
33

44

5+
"@types/events@*":
6+
version "1.1.0"
7+
resolved "https://registry.yarnpkg.com/@types/events/-/events-1.1.0.tgz#93b1be91f63c184450385272c47b6496fd028e02"
8+
9+
"@types/fs-extra@^4.0.0":
10+
version "4.0.7"
11+
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-4.0.7.tgz#02533262386b5a6b9a49797dc82feffdf269140a"
12+
dependencies:
13+
"@types/node" "*"
14+
15+
"@types/glob@*":
16+
version "5.0.35"
17+
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.35.tgz#1ae151c802cece940443b5ac246925c85189f32a"
18+
dependencies:
19+
"@types/events" "*"
20+
"@types/minimatch" "*"
21+
"@types/node" "*"
22+
23+
"@types/handlebars@^4.0.31":
24+
version "4.0.36"
25+
resolved "https://registry.yarnpkg.com/@types/handlebars/-/handlebars-4.0.36.tgz#ff57c77fa1ab6713bb446534ddc4d979707a3a79"
26+
27+
"@types/highlight.js@^9.1.8":
28+
version "9.12.2"
29+
resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-9.12.2.tgz#6ee7cd395effe5ec80b515d3ff1699068cd0cd1d"
30+
531
"@types/jasmine@2.8.6":
632
version "2.8.6"
733
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.8.6.tgz#14445b6a1613cf4e05dd61c3c3256d0e95c0421e"
@@ -10,25 +36,54 @@
1036
version "3.3.0"
1137
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.3.0.tgz#6316ac20a1a13c5d521a2dc661befc7184f73f5b"
1238

39+
"@types/lodash@^4.14.37":
40+
version "4.14.102"
41+
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.102.tgz#586a3e22385fc79b07cef9c5a1c8a5387986fbc8"
42+
43+
"@types/marked@0.0.28":
44+
version "0.0.28"
45+
resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.0.28.tgz#44ba754e9fa51432583e8eb30a7c4dd249b52faa"
46+
47+
"@types/minimatch@*":
48+
version "3.0.3"
49+
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
50+
51+
"@types/minimatch@^2.0.29":
52+
version "2.0.29"
53+
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
54+
1355
"@types/node@*":
1456
version "9.4.0"
1557
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.0.tgz#b85a0bcf1e1cc84eb4901b7e96966aedc6f078d1"
1658

17-
"@uirouter/publish-scripts@2.2.10":
18-
version "2.2.10"
19-
resolved "https://registry.yarnpkg.com/@uirouter/publish-scripts/-/publish-scripts-2.2.10.tgz#08db3cfeacb1961b7668eb55d70956a7853aea28"
59+
"@types/shelljs@^0.7.0":
60+
version "0.7.8"
61+
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.8.tgz#4b4d6ee7926e58d7bca448a50ba442fd9f6715bd"
62+
dependencies:
63+
"@types/glob" "*"
64+
"@types/node" "*"
65+
66+
"@uirouter/publish-scripts@2.3.1":
67+
version "2.3.1"
68+
resolved "https://registry.yarnpkg.com/@uirouter/publish-scripts/-/publish-scripts-2.3.1.tgz#0b380d81ae410f950010bdf964dd402b03cb30f4"
2069
dependencies:
2170
conventional-changelog "^1.1.4"
2271
conventional-changelog-ui-router-core "^1.4.2"
2372
find-parent-dir "^0.3.0"
2473
git-semver-tags "^1.2.1"
74+
lodash "^4.17.5"
2575
npm-run-all "^4.1.1"
2676
open "^0.0.5"
2777
readline-sync "^1.4.7"
2878
shelljs "^0.7.8"
2979
shx "^0.2.2"
3080
tmp "^0.0.33"
3181
tweak-sourcemap-paths "0.0.3"
82+
typedoc "0.8.0"
83+
typedoc-plugin-external-module-name "1.1.1"
84+
typedoc-plugin-internal-external "1.0.10"
85+
typedoc-plugin-ui-router "1.0.6"
86+
ui-router-typedoc-themes "1.0.2"
3287
yargs "^9.0.1"
3388

3489
JSONStream@^1.0.3, JSONStream@^1.0.4:
@@ -1865,6 +1920,14 @@ fs-extra@^1.0.0:
18651920
jsonfile "^2.1.0"
18661921
klaw "^1.0.0"
18671922

1923+
fs-extra@^4.0.0:
1924+
version "4.0.3"
1925+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94"
1926+
dependencies:
1927+
graceful-fs "^4.1.2"
1928+
jsonfile "^4.0.0"
1929+
universalify "^0.1.0"
1930+
18681931
fs.realpath@^1.0.0:
18691932
version "1.0.0"
18701933
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -2032,7 +2095,7 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
20322095
version "4.1.11"
20332096
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
20342097

2035-
handlebars@^4.0.2:
2098+
handlebars@^4.0.2, handlebars@^4.0.6:
20362099
version "4.0.11"
20372100
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc"
20382101
dependencies:
@@ -2175,6 +2238,10 @@ hawk@~6.0.2:
21752238
hoek "4.x.x"
21762239
sntp "2.x.x"
21772240

2241+
highlight.js@^9.0.0:
2242+
version "9.12.0"
2243+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
2244+
21782245
hipchat-notifier@^1.1.0:
21792246
version "1.1.0"
21802247
resolved "https://registry.yarnpkg.com/hipchat-notifier/-/hipchat-notifier-1.1.0.tgz#b6d249755437c191082367799d3ba9a0f23b231e"
@@ -2651,6 +2718,12 @@ jsonfile@^2.1.0:
26512718
optionalDependencies:
26522719
graceful-fs "^4.1.6"
26532720

2721+
jsonfile@^4.0.0:
2722+
version "4.0.0"
2723+
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
2724+
optionalDependencies:
2725+
graceful-fs "^4.1.6"
2726+
26542727
jsonify@~0.0.0:
26552728
version "0.0.0"
26562729
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
@@ -2931,6 +3004,10 @@ lodash@^4.0.0, lodash@^4.0.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lo
29313004
version "4.17.4"
29323005
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
29333006

3007+
lodash@^4.13.1, lodash@^4.17.5:
3008+
version "4.17.5"
3009+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
3010+
29343011
log4js@^2.3.9:
29353012
version "2.5.2"
29363013
resolved "https://registry.yarnpkg.com/log4js/-/log4js-2.5.2.tgz#234e9c688bc4aab3999bd4b149c85851a4e62faa"
@@ -3023,6 +3100,10 @@ map-visit@^1.0.0:
30233100
dependencies:
30243101
object-visit "^1.0.0"
30253102

3103+
marked@^0.3.5:
3104+
version "0.3.12"
3105+
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.12.tgz#7cf25ff2252632f3fe2406bde258e94eee927519"
3106+
30263107
md5.js@^1.3.4:
30273108
version "1.3.4"
30283109
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d"
@@ -3748,6 +3829,10 @@ progress@^1.1.8:
37483829
version "1.1.8"
37493830
resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
37503831

3832+
progress@^2.0.0:
3833+
version "2.0.0"
3834+
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
3835+
37513836
proxy-agent@~2.0.0:
37523837
version "2.0.0"
37533838
resolved "https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-2.0.0.tgz#57eb5347aa805d74ec681cb25649dba39c933499"
@@ -3952,7 +4037,7 @@ readdirp@^2.0.0:
39524037
readable-stream "^2.0.2"
39534038
set-immediate-shim "^1.0.1"
39544039

3955-
readline-sync@1.4.7, readline-sync@^1.4.7:
4040+
readline-sync@^1.4.7:
39564041
version "1.4.7"
39574042
resolved "https://registry.yarnpkg.com/readline-sync/-/readline-sync-1.4.7.tgz#001bfdd4c06110c3c084c63bf7c6a56022213f30"
39584043

@@ -4292,7 +4377,7 @@ shelljs@0.8.1:
42924377
interpret "^1.0.0"
42934378
rechoir "^0.6.2"
42944379

4295-
shelljs@^0.7.3, shelljs@^0.7.8:
4380+
shelljs@^0.7.0, shelljs@^0.7.3, shelljs@^0.7.8:
42964381
version "0.7.8"
42974382
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
42984383
dependencies:
@@ -4887,6 +4972,48 @@ typedarray@^0.0.6, typedarray@~0.0.5:
48874972
version "0.0.6"
48884973
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
48894974

4975+
typedoc-default-themes@^0.5.0:
4976+
version "0.5.0"
4977+
resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227"
4978+
4979+
typedoc-plugin-external-module-name@1.1.1:
4980+
version "1.1.1"
4981+
resolved "https://registry.yarnpkg.com/typedoc-plugin-external-module-name/-/typedoc-plugin-external-module-name-1.1.1.tgz#0ef2d6a760b42c703519c474258b6f062983aa83"
4982+
4983+
typedoc-plugin-internal-external@1.0.10:
4984+
version "1.0.10"
4985+
resolved "https://registry.yarnpkg.com/typedoc-plugin-internal-external/-/typedoc-plugin-internal-external-1.0.10.tgz#df9fd6ee1743f009c39b8746a3c26edc36ce8bcd"
4986+
4987+
typedoc-plugin-ui-router@1.0.6:
4988+
version "1.0.6"
4989+
resolved "https://registry.yarnpkg.com/typedoc-plugin-ui-router/-/typedoc-plugin-ui-router-1.0.6.tgz#6d452d499d1bd35701ebfdeb2beee670d8530e8b"
4990+
4991+
typedoc@0.8.0:
4992+
version "0.8.0"
4993+
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.8.0.tgz#d7172bc6a29964f451b7609c005beadadefe2361"
4994+
dependencies:
4995+
"@types/fs-extra" "^4.0.0"
4996+
"@types/handlebars" "^4.0.31"
4997+
"@types/highlight.js" "^9.1.8"
4998+
"@types/lodash" "^4.14.37"
4999+
"@types/marked" "0.0.28"
5000+
"@types/minimatch" "^2.0.29"
5001+
"@types/shelljs" "^0.7.0"
5002+
fs-extra "^4.0.0"
5003+
handlebars "^4.0.6"
5004+
highlight.js "^9.0.0"
5005+
lodash "^4.13.1"
5006+
marked "^0.3.5"
5007+
minimatch "^3.0.0"
5008+
progress "^2.0.0"
5009+
shelljs "^0.7.0"
5010+
typedoc-default-themes "^0.5.0"
5011+
typescript "2.4.1"
5012+
5013+
typescript@2.4.1:
5014+
version "2.4.1"
5015+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc"
5016+
48905017
typescript@2.7.1:
48915018
version "2.7.1"
48925019
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.1.tgz#bb3682c2c791ac90e7c6210b26478a8da085c359"
@@ -4919,6 +5046,10 @@ uglifyjs-webpack-plugin@^0.4.6:
49195046
uglify-js "^2.8.29"
49205047
webpack-sources "^1.0.1"
49215048

5049+
ui-router-typedoc-themes@1.0.2:
5050+
version "1.0.2"
5051+
resolved "https://registry.yarnpkg.com/ui-router-typedoc-themes/-/ui-router-typedoc-themes-1.0.2.tgz#3274960b8ee61e026b405ce3afcd9a2925992861"
5052+
49225053
uid-number@^0.0.6:
49235054
version "0.0.6"
49245055
resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
@@ -4944,6 +5075,10 @@ union-value@^1.0.0:
49445075
is-extendable "^0.1.1"
49455076
set-value "^0.4.3"
49465077

5078+
universalify@^0.1.0:
5079+
version "0.1.1"
5080+
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"
5081+
49475082
unpipe@1.0.0, unpipe@~1.0.0:
49485083
version "1.0.0"
49495084
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"

0 commit comments

Comments
 (0)