Standard Shared Config for tagproject
packages with shared configs
Install
npm install @tagproject/base-shared-config --save-dev
Usage
- Add
"prepare:config": "base-shared-config"
toscripts
property in yourpackage.json
- Rename your
prepare
scripts toprepare:[NAME]
- Add
"prepare": "run-s prepare:*"
- Run
npm run prepare
Configs
extract actions and hooks:
.github
.husky
merge files:
.husky/commit-msg
.gitignore
.npmignore
package.json
:
append to scripts:
-
build
- build shared config -
generate
- run allgenerate:*
-
generate:changelog
- generate changelog -
prepare
- run allprepare:*
-
prepare:config
- rebuild local configs -
prepare:husky
- install husky hooks -
release
- lint, build config, generate changelog and bump package version
dependencies:
-
changelog-guru:
4.x
-
husky:
9.x
-
npm-run-all:
4.x
configure:
{
"exports": "./lib/index.js",
"manager": "npm",
"type": "module",
"types": "./lib/index.d.ts"
}