Skip to content

Commit

Permalink
chore: add something to contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Sep 24, 2018
1 parent 5081a03 commit cb4d6c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 18 additions & 1 deletion CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,25 @@

// TODO

## Commands
## Create a package

We use [plopjs](https://github.com/amwmedia/plop) to automate boilerplate package generation.

Use it to create a new package.

**`yarn plop`**

Now go through the questions and a new package will be created for you.

## Test

**`yarn test`**

Run all tests through jest.

## Publish

**`yarn lerna publish**

This will bump version and publish. Make sure you have access to `@wpw` npm org
or ask a maintainer.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"scripts": {
"test": "jest",
"plop": "plop"
"plop": "plop",
"lerna": "lerna"
}
}

0 comments on commit cb4d6c2

Please sign in to comment.