Skip to content
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

chore: fix gen script to support TS template #5722

Merged
merged 2 commits into from
Oct 20, 2021
Merged

chore: fix gen script to support TS template #5722

merged 2 commits into from
Oct 20, 2021

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Oct 16, 2021

Motivation

After migrating to using npm init command, TS template initialization for generating examples is broken, this PR should fix it (see https://github.com/facebook/docusaurus/pull/5720/files/2bbecb47e195395f62d39447fd4bf993d5906b19#r730222812)

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Diff

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Oct 16, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 16, 2021
@netlify
Copy link

netlify bot commented Oct 16, 2021

✔️ [V2]

🔨 Explore the source changes: d4b8be2

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/616a7e7aeadd0c0008c7efb5

😎 Browse the preview: https://deploy-preview-5722--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 72
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5722--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: 0 B

Total Size: 843 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 38.1 kB
website/build/assets/css/styles.********.css 93.8 kB
website/build/assets/js/main.********.js 424 kB
website/build/blog/2017/12/14/introducing-docusaurus/index.html 67.7 kB
website/build/blog/index.html 38.5 kB
website/build/docs/index.html 45.7 kB
website/build/docs/installation/index.html 53.4 kB
website/build/index.html 31.2 kB
website/build/tests/docs/index.html 26.6 kB
website/build/tests/docs/standalone/index.html 23.3 kB

compressed-size-action

@slorber
Copy link
Collaborator

slorber commented Oct 20, 2021

Good catch thanks 👍

@slorber slorber merged commit 78d1464 into main Oct 20, 2021
@slorber slorber deleted the lex111/fix-gen branch October 20, 2021 10:45
@slorber
Copy link
Collaborator

slorber commented Oct 21, 2021

Weird, on npm 6 I get:

rm -rf examples/classic-typescript
npm init docusaurus@latest examples/classic-typescript classic -- --typescript

image

But it works fine with npm 7, this is going to be annoying 😰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants