@kunlunjs/fabric

0.11.1 • Public • Published

@kunlunjs/fabric

Project basic configurations include ESLint, Prettier, StyleLint, Husky, lint-staged, and Git Commit message Verify.

Installation

pnpm i @kunlunjs/fabric -D
# Where "@types/eslint" "stylelint" is optional
pnpm i prettier @types/eslint eslint stylelint devmoji husky lint-staged @types/node typescript -D

Usage

In the project root directory will be automatically generate the following documents, including ESLint/Prettier/StyleLint judgment is whether to include these files, Since Husky's initialization depends on Git, it determines whether.git exists. If it doesn't, it initialses the git environment with 'git init' and then adds' prepare 'to package.json scripts: "husky install"`.

Attention

ESLint and Prettier may not check files that start with. eslintrc.js or ".prettier.js" by default. You need to run the ".eslintignore" and ".prettierignore "for mandatory checking.

!.eslintrc.js
!.prettierrc.js
!.stylelintrc.js

Development

Create a new project and go to the root directory

  1. mkdir <dirname> && cd <dirname> Inside the project root directory
  2. npm init -y Run the command to check whether the following configuration file is generated
  3. ts-node <path>/kunlun-fabric/src/generator.ts

The default configuration rules are as follows

Build

pnpm build

Resource

Package Sidebar

Install

npm i @kunlunjs/fabric

Weekly Downloads

2

Version

0.11.1

License

ISC

Unpacked Size

83.7 kB

Total Files

50

Last publish

Collaborators

  • bigfang
  • erguotou
  • zhuyudong