@tagproject/ts-package-shared-config

v6.0.1
Standard shared config for tagproject packages with Node.js and TypeScript
standard shared config ts node

Package logo

Build Status npm Standard Shared Config

Standard Shared Config for tagproject packages with Node.js and TypeScript

Install

npm install @tagproject/ts-package-shared-config --save-dev

Usage

  • Add "prepare:config": "ts-package-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

include shared configs:

extract actions, hooks and configs:

  • .github/*
  • .husky/*
  • .vscode/*
  • src/__tests__/.eslintrc
  • src/__tests__/tsconfig.json
  • .eslintrc
  • codecov.yml
  • jest.config.js
  • tsconfig.json

merge files:

  • .husky/commit-msg
  • .vscode/launch.json
  • .gitignore
  • .npmignore
  • tsconfig.json

append to package.json:

scripts:

  • build - build shared config
  • build:ts - transpile TS files
  • generate - run all generate:*
  • generate:changelog - generate changelog
  • generate:ghinfo - generate .ghinfo file
  • lint:eslint - run eslint TS files linting
  • prepare:config - rebuild local configs
  • prepare:husky - install husky hooks
  • release - lint, test, generate changelog and bump package version
  • test - run all test:*
  • test:jest - run jest tests

dependencies:

configure:

{
  "exports": "./lib/index.js",
  "type": "module",
  "types": "./lib/index.d.ts"
}
npm i @tagproject/[email protected]

Metadata

  • MIT
  • ^14.13.1 || >=16.0.0
  • Daniil Ryazanov
  • released 11/30/2021

Downloads

Maintainers