Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Giving choice - npm or yarn. #786

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ See the official [prepack.io](http://prepack.io) website for an introduction and

## How to use Prepack

Install the CLI via yarn,
Install the CLI via npm,

```bash
$ yarn global add prepack
$ npm install -g prepack
```
Or if you prefer yarn,

Or if you prefer yarn, make sure you get yarn first,
```bash
$ npm install -g yarn
```
and then install the Prepack CLI via yarn:

```bash
$ yarn global add prepack
Expand Down Expand Up @@ -49,6 +54,8 @@ Detailed instructions and the API can be found at [Prepack CLI: Getting Started]
3. Get yarn and node, then do
`yarn`

Note: For development work you really need `yarn`, as many scripts require it.

### How to build, lint, type check

0. Get the code
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"main": "lib/prepack-node.js",
"browser": "lib/prepack-standalone.js",
"scripts": {
"build": "babel src --out-dir lib --source-maps && npm run build-bundle",
"build": "babel src --out-dir lib --source-maps && yarn build-bundle",
"build-scripts": "babel scripts --out-dir lib",
"build-bundle": "webpack",
"watch": "babel src scripts --out-dir lib --watch --source-maps",
Expand All @@ -41,12 +41,12 @@
"test-error-handler-with-coverage": "./node_modules/.bin/istanbul cover ./lib/test-error-handler.js --dir coverage.error && ./node_modules/.bin/remap-istanbul -i coverage.error/coverage.json -o coverage-sourcemapped.error -t html",
"test-node-cli-mode": "bash < scripts/test-node-cli-mode.sh",
"test-std-in": "bash < scripts/test-std-in.sh",
"test": "npm run test-residual && npm run test-serializer && npm run test-sourcemaps && npm run test-test262 && npm run test-internal && npm run test-error-handler && npm run test-std-in",
"test": "yarn test-residual && yarn test-serializer && yarn test-sourcemaps && yarn test-test262 && yarn test-internal && yarn test-error-handler && yarn test-std-in",
"repl": "node lib/repl-cli.js",
"prepack": "node lib/prepack-cli.js",
"prepack-prepack": "node --stack_size=10000 --max_old_space_size=8096 ./bin/prepack.js ./lib/prepack-cli.js --out ./lib/prepack-cli.prepacked.js --compatibility node-cli --mathRandomSeed rnd",
"validate": "npm run build && npm run build-scripts && npm run lint && npm run depcheck && npm run flow && npm test",
"prepublish": "npm run build",
"validate": "yarn build && yarn build-scripts && yarn lint && yarn depcheck && yarn flow && yarn test",
"prepublish": "yarn build",
"depcheck": "babel-node scripts/detect_bad_deps.js",
"prettier": "node ./scripts/prettier.js write-changed",
"prettier-all": "node ./scripts/prettier.js write",
Expand Down