generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from chromaui/tom/fix-accepting
Show reviewing errors in browser console and improve dev setup
- Loading branch information
Showing
8 changed files
with
82 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Running against development/staging | ||
|
||
You can simply start the storybook with the `CHROMATIC_INDEX_URL` set, as you would with the chromatic CLI: | ||
|
||
```bash | ||
CHROMATIC_INDEX_URL=https://www.staging-chromatic.com yarn storybook | ||
``` | ||
|
||
If running with the index URL set in against the addon's storybook, we'll also update the configured | ||
project id appropriately. If you are running in dev, you can either tweak your database to have | ||
the correct project id/token, or you can run with the extra env vars set: | ||
|
||
```bash | ||
CHROMATIC_PROJECT_ID=xyz CHROMATIC_PROJECT_TOKEN=abc CHROMATIC_INDEX_URL=https://www.dev-chromatic.com yarn storybook | ||
``` | ||
|
||
## Running against an outside storybook | ||
|
||
If you want to test the addon with a real project, you can install from npm as usual -- we publish canaries for each PR. You can also link the addon in the usual ways. | ||
|
||
When running you can also connect the adon to staging/dev in the same way, although you'll need to manually configure the project id/token. | ||
|
||
```bash | ||
CHROMATIC_INDEX_URL=https://www.staging-chromatic.com yarn storybook | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters