Fix CONTRIBUTING.md [skip ci] (#432)
This commit is contained in:
parent
a495d7f65d
commit
2f3123ca03
@ -23,16 +23,16 @@ yarn
|
|||||||
To run a build, tests and perform lint/flow checks:
|
To run a build, tests and perform lint/flow checks:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm test
|
yarn test
|
||||||
```
|
```
|
||||||
|
|
||||||
If you only want to run the tests:
|
If you only want to run the tests:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run test-only
|
yarn run test-only
|
||||||
```
|
```
|
||||||
|
|
||||||
Note, this does not actually run a build, so you may have to call `npm run build` after
|
Note, this does not actually run a build, so you may have to call `yarn run build` after
|
||||||
performing any changes.
|
performing any changes.
|
||||||
|
|
||||||
### Running one test
|
### Running one test
|
||||||
@ -52,7 +52,7 @@ Add `"only": true` to its `options.json`:
|
|||||||
Then, run the tests using the same command as before:
|
Then, run the tests using the same command as before:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run test-only
|
yarn run test-only
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking code coverage locally
|
### Checking code coverage locally
|
||||||
@ -61,7 +61,7 @@ To generate code coverage, be sure to set `BABEL_ENV=test` so that code is instr
|
|||||||
the rollup build.
|
the rollup build.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
BABEL_ENV=test npm run build && npm run test-ci
|
BABEL_ENV=test yarn run build && yarn run test-coverage
|
||||||
```
|
```
|
||||||
|
|
||||||
### Writing tests
|
### Writing tests
|
||||||
@ -85,19 +85,19 @@ you will want to link both repositories together. This can be done by doing the
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd babylon/
|
cd babylon/
|
||||||
npm link
|
yarn link
|
||||||
npm run build
|
yarn run build
|
||||||
cd ../babel/
|
cd ../babel/
|
||||||
make bootstrap
|
make bootstrap
|
||||||
npm link babylon
|
yarn link babylon
|
||||||
cd packages/babel-core/
|
cd packages/babel-core/
|
||||||
npm link babylon
|
yarn link babylon
|
||||||
cd ../../packages/babel-template/
|
cd ../../packages/babel-template/
|
||||||
npm link babylon
|
yarn link babylon
|
||||||
cd ../../packages/babel-traverse/
|
cd ../../packages/babel-traverse/
|
||||||
npm link babylon
|
yarn link babylon
|
||||||
cd ../../packages/babel-generator/
|
cd ../../packages/babel-generator/
|
||||||
npm link babylon
|
yarn link babylon
|
||||||
cd ../..
|
cd ../..
|
||||||
make build
|
make build
|
||||||
make test
|
make test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user