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

feat: add vite sandbox template #33631

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dmytrokirpa
Copy link
Contributor

@dmytrokirpa dmytrokirpa commented Jan 13, 2025

Previous Behavior

--

New Behavior

Added a boilerplate for the Vite starter template. It can be utilized for local project bootstrapping as well as a starter for Stackblitz and CodeSandbox.

Open questions

  • Should thesandbox/* be included to yarn workspaces and nx?
  • Add integration tests in apps/sandbox-vite-integration-tests-v9, build the sandbox project and run some cypress/playwright tests against it.
  • Re-use sandbox scaffold for react-storybook-addon-export-to-sandbox

Related Issue(s)

@dmytrokirpa dmytrokirpa self-assigned this Jan 13, 2025
Copy link

github-actions bot commented Jan 13, 2025

📊 Bundle size report

✅ No changes found

@dmytrokirpa dmytrokirpa force-pushed the feat/add_vite_sandbox_template branch from 723bef3 to 24eb119 Compare January 13, 2025 15:02
Copy link

Pull request demo site: URL

@@ -0,0 +1,32 @@
# FluentUI React v9 - Vite.js example
Copy link
Contributor Author

@dmytrokirpa dmytrokirpa Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open for suggestions for a better place than /sandbox/[template-name] to put sandbox scaffolds.

"preview": "vite preview"
},
"dependencies": {
"react": "^18.3.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The template was generated with React 18 by Vite, not sure if it's okay to use it or we should downgrade it to 17 as we here

@dmytrokirpa dmytrokirpa marked this pull request as ready for review January 13, 2025 15:15
@dmytrokirpa dmytrokirpa requested review from a team as code owners January 13, 2025 15:15
@dmytrokirpa dmytrokirpa requested a review from Hotell January 13, 2025 15:15
Copy link
Contributor

@Hotell Hotell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed offline - here is the gist

  • we gonna proceed with this
  • integration testing etc will be added later if the starter will adopt user-base in terms of bringing value to adopt fluentui

scaffolding setup tweaks

we gonna create 1 project that will be nx project and registered under yarn workspace.

something like:

  • root /starter-templates
|- /starter-templates
   |- project.json ( wont contain dependencies used within starters to not add any extra dependencies within monorepo )
   |- package.json ( private )
   |- README.md
   |- src/
      |- react-components-vite/
           |- .... boilerplate already present in this PR

ty

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