Repository navigation
chore: Enable Parcel 3 in CircleCI #11001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8ba661a
4a531eb
dec7268
5793f5b
170529a
d0781b4
6481704
d5cfd19
3af33d0
e6e6b11
893c350
6bcf643
46dd17c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ on: | |
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| PARCEL_V3: '1' | ||
|
|
||
| jobs: | ||
| chromatic: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,7 +137,9 @@ async function createParcel(options, isDev = false) { | |
| '3000', | ||
| '--dist-dir', | ||
| options.outputDir, | ||
| path.join(generatedEntries, 'iframe.html') | ||
| path.join(generatedEntries, 'iframe.html'), | ||
| '--public-url', | ||
| './' | ||
| ], | ||
| {stdio: 'inherit'} | ||
| ); | ||
|
|
@@ -159,17 +161,7 @@ async function createParcel(options, isDev = false) { | |
| mode: isDev ? 'development' : 'production', | ||
| serveOptions: isDev ? {port: 3000} : null, | ||
| hmrOptions: isDev ? {port: 3001} : null, | ||
| additionalReporters: [ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @snowystinger this is for Parcel 2, not 3. Do we need to turn it off for v2 as well?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't really matter so long as it's not trying to write I think Theoretically I think I could've left in the turbosnap one as well, it didn't cause a failure. All that mattered was when chromatic looked for the file, so the CLI call change was the real thing that mattered
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean you don't need to turn off turbosnap for v2 because it works there right?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't sure what would happen really if sometimes turbosnap was used (by us running locally on accident) and sometimes not (as the CI does). So I figured it was safer to turn it all off until we were ready again. |
||
| {packageName: '@parcel/reporter-cli', resolveFrom: __filename}, | ||
| ...(options.statsJson | ||
| ? [ | ||
| { | ||
| packageName: 'parcel-reporter-turbosnap-stats', | ||
| resolveFrom: __filename | ||
| } | ||
| ] | ||
| : []) | ||
| ], | ||
| additionalReporters: [{packageName: '@parcel/reporter-cli', resolveFrom: __filename}], | ||
| targets: { | ||
| storybook: { | ||
| distDir: options.outputDir, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bit unintuitive so I will think of improvements for parcel. Parcel 3 distinguishes between compiling JSON imported from JS vs JSON referenced elsewhere (e.g. a URL in an HTML file). The
js:pipeline is added automatically for JSON imported from JS, and the default transformer was winning over ours.