Build UMD and ES modules
npm run buildBuild UMD modules
npm run build:umdBuild ES modules
npm run build:esPrettify files
npm run prettifyRun linter
npm run lintRun linter and fix
npm run lint:fixRun Tests
npm testBumping a patch version.
This will increment package.json version and run preversion, version and postversion hooks.
# patch 0.0.x
npm version patch
# minor 0.x.0
npm version minor
# major x.0.0
npm version majorPublish to npm
npm login
npm publishCheck outdated dependencies
# Add -u or --update flag for update
npx npm-checkprepare will run both before the package is packed and published, and on local npm install
"prepare": "npm run build"prepublishOnly will run before prepare and only on npm publish
"prepublishOnly": "npm test && npm run lint"preversion will run before bumping a new package version
"preversion": "npm run lint"version will run after a new version has been bumped. A commit and a new version-tag will be made every time you bump a new version. This command will run before the commit is made.
"version": "npm run prettify && git add -A src"postversion will run after the commit has been made. Pushes the commit and the tag.
"postversion" : "git push && git push --tags"