Parameter | Default | Description |
---|---|---|
KEYWORDS | module,template |
Comma separated keywords |
REPOSITORY_URL | https://github.com/wmakeev/npm-module.git |
Url to git repository |
Last active
August 3, 2023 15:06
-
-
Save wmakeev/13dece87ad1450fd7a707a27f8fd01ee to your computer and use it in GitHub Desktop.
[NPM module template] #template #npm #module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"version": "auto-changelog -p && git add CHANGELOG.md", | |
"release": "np" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"keywords": global.KEYWORDS?.split(/,/g).map(it => it.trim()) ?? [], | |
"repository": { | |
"type": "git", | |
"url": global.REPOSITORY_URL | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files": [ | |
"build/src/" | |
], | |
"main": "build/src/index.js", | |
"types": "build/src/index.d.ts" | |
} |
-
np to commits and publish automation
npm install -g np@latest
-
auto-changelog to CHANGELOG generation
npm install -D auto-changelog@latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LICENSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment