Package detail

@tagproject/ts-package-shared-config

tagproject1.6kMIT11.0.4

Standard shared config for tagproject packages with Node.js and TypeScript

config, node, shared, standard

readme

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"
}

changelog

Important Changes

Dependencies

<summary>Peer Dependencies</summary> - Changed @types/jest from * to * - Changed @types/node from * to * - Changed ghinfo from * to * - Changed rimraf from * to *

Contributors

@keindev