|
24 | 24 | yarn run build |
25 | 25 | ``` |
26 | 26 |
|
| 27 | + you can also use |
| 28 | + |
| 29 | + ```sh |
| 30 | + yarn run watch |
| 31 | + ``` |
| 32 | + |
| 33 | + if you are focused on GraphiQL development, you can run |
| 34 | + |
| 35 | + ```sh |
| 36 | + yarn run start-graphiql |
| 37 | + ``` |
| 38 | + |
27 | 39 | 5. Get coding! If you've added code, add tests. If you've changed APIs, update |
28 | 40 | any relevant documentation or tests. Ensure your work is committed within a |
29 | 41 | feature branch. |
@@ -54,10 +66,12 @@ to run tests for GraphiQL: |
54 | 66 |
|
55 | 67 | 1. `yarn` - install and link all packages |
56 | 68 | 2. `yarn build` - cleans first, then builds everything but webpack bundles - `tsc --build`, `babel` etc |
57 | | -3. `yarn build-bundles` - builds webpack bundles that are used for releases |
58 | | -4. `yarn build-demo` - builds demo projects for netlify; we run this on CI to make sure webpack can consume our project in a standalone project. |
59 | | -5. `yarn test` - runs `jest`. so `yarn t --watch` |
60 | | -6. `yarn format` - autoformats with eslint --fix and prettier |
61 | | -7. `yarn lint` - checks for linting issues |
62 | | -8. `yarn e2e` - runs cypress headlessly against the minified bundle and a local schema server, like in CI. |
63 | | -9. `yarn jest` - runs global jest commands across the entire monorepo; try `yarn test --watch` or `yarn jtest DocExplorer` for example :D |
| 69 | +3. `yarn build-ts` - builds typescript using `--build` and `--force` flag. |
| 70 | +4. `yarn watch` - runs `tsc --build --watch`, for when you make cross-repository changes |
| 71 | +5. `yarn build-bundles` - builds webpack bundles that are used for releases |
| 72 | +6. `yarn build-demo` - builds demo projects for netlify; we run this on CI to make sure webpack can consume our project in a standalone project. |
| 73 | +7. `yarn test` - runs `jest`. so `yarn t --watch` |
| 74 | +8. `yarn format` - autoformats with eslint --fix and prettier |
| 75 | +9. `yarn lint` - checks for linting issues |
| 76 | +10. `yarn e2e` - runs cypress headlessly against the minified bundle and a local schema server, like in CI. |
| 77 | +11. `yarn jest` - runs global jest commands across the entire monorepo; try `yarn test --watch` or `yarn jtest DocExplorer` for example :D |
0 commit comments