Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.03 KB

CONTRIBUTION.md

File metadata and controls

32 lines (25 loc) · 1.03 KB

Contribution Guidelines

Prerequisites

  • List global installations: npm ls -g --depth=0
  • Globally install npm-check-updates: npm i -g npm-check-updates
  • Globally install release-it: npm i -g release-it
  • Locally install project dependencies: npm i
  • Enable ESLint for TypeScript in VS Code settings.json:
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact"
    ]

Scripts

Development:

  • Upgrade dependencies: ncu -u (might require a npm i afterwards)
  • Run tests: npm test (see coverage/)
  • Build project: npm run build (see dist/)

Release (patch, minor or major):

  • Remove "private": true from package.json.
  • Double-check package contents before release: npm pack (see .tgz file)
  • Release (dry run): release-it minor --dry-run
  • Release: release-it minor (tag and publish)