kimamula / typedoc-markdown-theme

Markdown theme for TypeDoc
MIT License
24 stars 15 forks source link

how should I build the theme? #6

Open danbars opened 7 years ago

danbars commented 7 years ago

When I run npm install it fails on bundle.d.ts not found. Here's the full log:

npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> typedoc-markdown-theme@0.0.4 prepublish /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> npm test && mv ./src/theme.js ./bin

> typedoc-markdown-theme@0.0.4 test /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> tsc && nodeunit ./test

error TS6053: File 'typings/bundle.d.ts' not found.
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! typedoc-markdown-theme@0.0.4 prepublish: `npm test && mv ./src/theme.js ./bin`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the typedoc-markdown-theme@0.0.4 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/****/.npm/_logs/2017-11-13T13_10_29_639Z-debug.log

What am I doing wrong? I'm new to typescript, so sorry if I miss something obvious.

danbars commented 7 years ago

OK, I figured that I have to run dtsm before npm install. But typedoc module still cannot be found after that.

$ npm i
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> typedoc-markdown-theme@0.0.4 prepublish /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> npm test && mv ./src/theme.js ./bin

> typedoc-markdown-theme@0.0.4 test /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> tsc && nodeunit ./test

src/theme.ts(1,21): error TS2307: Cannot find module 'typedoc'.
src/theme.ts(49,39): error TS7006: Parameter 'urlMapping' implicitly has an 'any' type.
test/theme_test.ts(3,21): error TS2307: Cannot find module 'typedoc'.
test/theme_test.ts(86,9): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(95,13): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(103,17): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(104,17): error TS7018: Object literal's property 'children' implicitly has an 'any[]' type.
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! typedoc-markdown-theme@0.0.4 prepublish: `npm test && mv ./src/theme.js ./bin`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the typedoc-markdown-theme@0.0.4 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/****/.npm/_logs/2017-11-13T13_52_01_751Z-debug.log