2.3.0 • Published 5 months ago

@p8ec/shared v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

P(8) Shared Libraries for Node.js

Shared TypeScript/JavaScript libraries for P(8) products.

Shared Configuration

Shared (and very opinionated) configuration for P(8) projects.

Contents:

  • ESLint configuration
  • Prettier configuration
  • Commitlint configuration
  • Lefthook configuration

Usage

Installation

npm i -D @p8ec/shared

Initialization

p8-cli init

This command will create the following files in your project and remove corresponding configuration entries from package.json:

.eslintrc.cjs

/* eslint-disable */
module.exports = require('@p8ec/shared').eslintConfigRecommended;

.prettierrc.cjs

/* eslint-disable */
module.exports = require('@p8ec/shared').prettierConfigRecommended;

.commitlintrc.cjs

/* eslint-disable */
module.exports = { extends: ["@commitlint/config-conventional"] };

P(8) CLI Tool

A command-line interface (CLI) tool for P(8) projects to simplify common tasks.

Syntax

p8-cli [command] [options]

Commands

  • init - Initialize P(8) shared configuration in your project. Options: cleanup - remove configuration entries from package.json
    • Example: p8-cli init --cleanup - initializes the shared configuration and removes corresponding entries from package.json.
  • dirn - Get the directory name. Options: 0 - current directory (default), 1 - parent directory, 2 - 2 levels up directory, etc.
    • Example: p8-cli dirn 1 - shows the parent directory name.
2.3.0

5 months ago

2.2.5

5 months ago

2.2.4

5 months ago

2.2.3

12 months ago

2.2.1

1 year ago

2.2.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

2.0.3

1 year ago

2.2.0

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

1 year ago

1.1.7

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago