Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Last active August 3, 2023 15:06
Show Gist options
  • Save wmakeev/13dece87ad1450fd7a707a27f8fd01ee to your computer and use it in GitHub Desktop.
Save wmakeev/13dece87ad1450fd7a707a27f8fd01ee to your computer and use it in GitHub Desktop.
[NPM module template] #template #npm #module

Params

Parameter Default Description
KEYWORDS module,template Comma separated keywords
REPOSITORY_URL https://github.com/wmakeev/npm-module.git Url to git repository
{
"scripts": {
"version": "auto-changelog -p && git add CHANGELOG.md",
"release": "np"
}
}
module.exports = {
"keywords": global.KEYWORDS?.split(/,/g).map(it => it.trim()) ?? [],
"repository": {
"type": "git",
"url": global.REPOSITORY_URL
}
}
{
"files": [
"build/src/"
],
"main": "build/src/index.js",
"types": "build/src/index.d.ts"
}

Changelog

0.0.0 (October 22, 2020)

  • Add package to npm (in #0)

Сontributing guide

Tools and conventions

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