Skip to content

Repository files navigation

π-Base Dev Tools

AuditTestReleaseNPM

Shared developer tools for π-Base packages.

Usage

Installation

$ npm install --save-dev @pi-base/dev
$ npm set-script prepare "pi-base-dev prepare"
$ npm run prepare

Configuration

@pi-base/dev exports a number of common base configurations

// .eslintrc.jsmodule.exports=require('@pi-base/dev').eslintConfig// .lintstagedrc.jsmodule.exports=require('@pi-base/dev').lintStagedConfig// .prettierrc.jsmodule.exports=require('@pi-base/dev').prettierConfig// .tsconfig.json{"extends": "@pi-base/dev/tsconfig.shared.json","include": ["src/**/*.ts"]}

It also includes a CLI wrapping several common tasks, intended for use as npm run scripts

// package.json{"scripts": {"fmt": "pi-base-dev fmt","fmt:check": "pi-base-dev fmt:check","lint": "pi-base-dev lint","lint:check": "pi-base-dev lint:check","test": "pi-base-dev test","test:cov": "pi-base-dev test:cov","test:watch": "pi-base-dev test:watch"}}

or in a .husky/pre-commit hook

# .husky/pre-commit
pi-base-dev lint-staged

Development

Installation

$ npm install

Release

Releases to NPM are automatically triggered by creating a Github release named vX.X.X (matching the current version in package.json).

Be sure to add a CHANGELOG entry when updating the version.

About

Shared development tools for pi-base packages

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages