UNPKG

892 BMarkdownView Raw
1# @bearer/package-init
2
3[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
4[![Version](https://img.shields.io/npm/v/@bearer/package-init.svg)](https://npmjs.org/package/@bearer/package-init)
5
6[![Downloads/week](https://img.shields.io/npm/dw/@bearer/package-init.svg)](https://npmjs.org/package/@bearer/package-init)
7[![License](https://img.shields.io/npm/l/@bearer/package-init.svg)](https://github.com/bearer/bearer/blob/master/package.json)
8
9## Use init within a new package
10
11```bash
12yarn init
13git init
14echo 'node_modules\nlib/\ncoverage' > .gitignore
15// answer questions
16yarn add -D @bearer/package-init
17yarn run aligator
18```
19
20This will setup
21
22- Typescript
23- commitlint (lint your commit messages)
24- prettier (format your code)
25- hooks (format your code when you commit)
26- add jest
27
28-- toc as ! -->
29
30# Usage
31
32<!-- usage -->
33
34# Commands
35
36<!-- commands -->