Skip to content

Base shared config for tagproject packages

License

Notifications You must be signed in to change notification settings

tagproject/base-shared-config

Repository files navigation

Package logo

Build Status npm Standard Shared Config

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" to scripts property in your package.json
  • Rename your prepare scripts to prepare:[NAME]
  • Add "prepare": "run-s prepare:*"
  • Run npm run prepare

Configs

extract actions and hooks:

  • .github
  • .husky

merge files:

  • .husky/commit-msg
  • .gitignore
  • .npmignore

append to package.json:

scripts:

  • build - build shared config
  • generate - run all generate:*
  • generate:changelog - generate changelog
  • prepare - run all prepare:*
  • prepare:config - rebuild local configs
  • prepare:husky - install husky hooks
  • release - lint, build config, generate changelog and bump package version

dependencies:

configure:

{
  "exports": "./lib/index.js",
  "manager": "npm",
  "type": "module",
  "types": "./lib/index.d.ts"
}