Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest using degit for starting out #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ console.log('it will be lunchtime in ' + howLongTillLunch());

## Getting started

### Degit

The easiest way to use this as a base project is to use [degit](Rich-Harris/degit)!

```bash
npx degit rollup/rollup-starter-lib my-library
cd my-library
npm install
```

### Clone

Clone this repository and install its dependencies:

```bash
Expand All @@ -20,6 +32,10 @@ cd rollup-starter-lib
npm install
```

*Note:* this technique keeps the git history from this repository, which you probably do not want in your library.

## Using rollup-starter-lib

`npm run build` builds the library to `dist`, generating three files:

* `dist/how-long-till-lunch.cjs.js`
Expand Down