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

create-spectacle CLI: Fix generated spectacle version, add custom types for MD build. #1313

Merged
merged 4 commits into from
Dec 29, 2023

Conversation

carloskelly13
Copy link
Contributor

  • Clean up the TypeScript index.tsx template file. This will allow us to expand the content to support new outputs down the road. Also fixes the formatting so it's nicely indented.
  • Fix the package.json version of spectacle to not be a * which trips up pnpm and uses the version from the core library's package.json
  • Creates a custom.d.ts file in the Markdown output so the import of the .md file does not throw an unknown type error.

Screenshot of the cleaned up, correctly indented index.tsx:

Screenshot 2023-12-28 at 8 42 13 AM

How to test

  1. cd to packages/create-spectacle
  2. run pnpm dev
  3. Try out md and the two React flavors
  4. npm i && npm run start in each output and verify they load up

Copy link

vercel bot commented Dec 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spectacle-docs-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2023 3:10pm

@carloskelly13 carloskelly13 merged commit d2621a7 into main Dec 29, 2023
6 checks passed
@carloskelly13 carloskelly13 deleted the fix/cli-spectacle-version-cleanup branch December 29, 2023 16:39
@github-actions github-actions bot mentioned this pull request Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants