Skip to content

Add pre-publish hook to run jsdoc generation #4

Description

@code-for-coffee

I have setup Github pages to host the docs/ folder. It is located http://codeforcoffee.org/simple-state/.

Because npm publish is a manual task (no CI is setup for it currently) this project needs to have a pre-publish hook added using the npm script prepublishOnly (we do not want this running on every npm i, which will be triggered via prepublish). This way docs are always up to date whenever I publish a version to npm.

Related: https://docs.npmjs.com/misc/scripts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions