@pkkummermo/pkk-scripts

0.1.11 • Public • Published

pkk-scripts

License data-mapper-chain

A package for bootstrapping and simplifying startup of private projects

Why

Highly inspired by Kent C. Dodds kcd-scripts and his article I created pkk-scripts. It's meant to simplify creating new projects and standardize tooling versions and help keep everything up to date.

Install

npm i -D @pkkummermo/pkk-scripts

Usage

pkk-scripts --help

Usage: pkk-scripts [options] [command]

pkk-scripts - bootstrapper for projects

Options:
  -V, --version     output the version number
  -h, --help        output usage information

Commands:
  test|t            Runs project tests
  lint|l [options]  Lints project files.
  server|s          Starts development server
  build|b           Builds current project

Add configurations according to your needs in package.json.

Ex (in package.json script attribute):

{
    "scripts": {
        "build": "pkk-scripts b",
        "start": "pkk-scripts s",
        "test:unit": "pkk-scripts t",
        "test:lint": "pkk-scripts l"
    }
}

These will trigger pkk-scripts which will in turn automatically detect project configurations and run the according action.

Configuration

The CLI comes bundles with default configurations, but will eat configurations available in the project folder it is run in. This includes (for now):

  • TSLint (tslint.json)
  • ESLint (.eslintignore, .eslintrc.js, .eslintrc.json)

Readme

Keywords

none

Package Sidebar

Install

npm i @pkkummermo/pkk-scripts

Weekly Downloads

11

Version

0.1.11

License

Apache-2.0

Unpacked Size

34.7 kB

Total Files

17

Last publish

Collaborators

  • pkkummermo