Skip to content

Rendering from git clone vs npm install #3

@cspotcode

Description

@cspotcode

Can we render docs from an extracted npm tarball, or will we need to render from the sources in git?

Ideally we can do the former. An npm tarball is packaged to work within a user's IDE via the language service. Whatever tooltips the user sees while using a library will be driven by the npm tarball. So we should render based on the same.

git sources may or may not require a complex build script which we cannot run in our docs renderer.


If we render based on the npm tarball, I wonder, will docs rendering be as simple as the following?

touch package.json
yarn add --ignore-scripts target-lib@target-version
cd node_modules/target-lib
run-typedoc-rendering-command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions