Skip to content

Commit

Permalink
remove npm in favour of yarn for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Canner committed Sep 18, 2019
1 parent b85ab10 commit 63b918c
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 10,987 deletions.
24 changes: 8 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ git clone [email protected]:your-username/js-buy-sdk.git
```
*Note: replace "your-username" with your Github handle*

Install the project's dependencies:
Install the project's dependencies (make sure you first have [yarn](https://yarnpkg.com) installed):
```
npm install
yarn
```

To see documentation about npm scripts used in this project run:
```
npm run info
yarn info
```

While developing the following command will run tests in browser at http://localhost:4200. It also watches the src/ and tests/ directory and rebuilds as needed:
```
npm start
yarn start
```

If you'd simply like to manually run tests do:
```
npm run test
yarn test
```

## Folder Structure
Expand Down Expand Up @@ -73,21 +73,13 @@ at `http://shopify.github.io/js-buy-sdk`.

To generate docs run the following:
```
npm run doc:build
yarn doc:build
```

To preview the built docs run:
```
npm run doc:serve
yarn doc:serve
```

The documentation will then be visible at:
`http://127.0.0.1:4000/js-buy-sdk/`

If ever you'd like to view API docs for a specific version of the `js-buy-sdk` run the following command (replace `*VERSION NUMBER*` with a proper version such as `v0.3.2`):
```
npm run doc:build -- --references *VERSION NUMBER*
```

When serving you should now be able to view:
`http://127.0.0.1:4000/js-buy-sdk/api/v0.3.2/`
`http://127.0.0.1:4201`
Loading

0 comments on commit 63b918c

Please sign in to comment.