Skip to content

Commit

Permalink
Document commands
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 19, 2017
1 parent 917f1c9 commit 3ddf3b6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/gatsby-dev-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,19 @@ this program running.

Typically you'll also want to run `npm run watch` in the Gatsby repo to set up
watchers to build Gatsby source code.

### Other commands

#### `--packages`

You can prevent the automatic dependencies scan and instead specify a list of
packages you want to link by using the `--packages` option:

`gatsby-dev --packages gatsby gatsby-typegen-remark`

#### `--scan-once`

With this flag, the tool will do an initial scan and copy and then quit. This
is useful for setting up automated testing/builds of Gatsby sites from the latest
code. Gatsby's main website (and example websites) are built from HEAD using this
flag, see https://github.com/gatsbyjs/gatsby/blob/1.0/scripts/publish-site.sh.

0 comments on commit 3ddf3b6

Please sign in to comment.