vite-howto
nextjs-monorepo-example
vite-howto | nextjs-monorepo-example | |
---|---|---|
5 | 19 | |
169 | 1,470 | |
- | - | |
0.0 | 9.9 | |
almost 2 years ago | about 13 hours ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vite-howto
-
How to auto reload node.js server
Source code: https://github.com/taowen/vite-howto/tree/main/packages/SSR/auto-reload-node-server
-
Ten Reasons MVC frameworks aren't dinosaurs but sharks
It is just like static linking in c. We can split code into different object files, and statically link to a big application. We help of header file, we can invert the dependency relationship to keep implementation private to keep autonomy. It also applies to node.js/web frontend application, here is a vite demo: https://github.com/taowen/vite-howto/tree/main/packages/STAT...
- Build CSR/SSR/CDN/MonoRepository with Vite
- How to use Vite to build all kinds of TypeScript projects, including CSR/SSR/CD
- How to use Vite to build all kinds of TypeScript projects, including CSR/SSR/CDN/MonoRepository
nextjs-monorepo-example
-
TypeScript monorepo
For info you can have a look to a setup in httpx (simple yarn 4 + workspaces) or nextjs-monorepo-example (yarn 4 workspaces + turbo + recipe for docker)
-
Why Next?
I like https://github.com/belgattitude/nextjs-monorepo-example/
-
How do you keep FE dependencies up to date?
It's pretty easy to setup renovate, the "update dependency XXX PR" comes with the upstream changelogs from which you can have an idea of the work to do if needed. Compared to some other similar tools: monorepo support (ie: workspace:"") + possibility to dedupe your lock file + an easy way to regroug packages (ie: "@vitest/ui" and "vitest" together). An example: https://github.com/belgattitude/nextjs-monorepo-example/blob/main/renovate.json5.
-
Separating components from Next.js in a mono repo
https://github.com/belgattitude/nextjs-monorepo-example Here is a very good example monorepo with a similiar usecase
-
Eslint warnings in neovim but not vscode
Until the “flat” eslint config file becomes the standard, Here’s a nice example of how to do it.
-
is nx worth it for a smallish typescript monorep?
PS: You can see there: https://github.com/belgattitude/nextjs-monorepo-example (bunch of recipes but definitely needs a cleanup) and this question https://github.com/belgattitude/nextjs-monorepo-example/discussions/2220
-
Best way to deal with long background jobs when deploying Next.js to Vercel?
There is one moderately complex example monorepo that includes a Next.js project and shared lib projects here: https://github.com/belgattitude/nextjs-monorepo-example
-
Looking for the right project structure for multiple teams (monorepo vs separate repos)
I sometimes put some examples in https://github.com/belgattitude/nextjs-monorepo-example. It's bare-bone and offer few pros/cons (no nx, no turbo.., but you can upgrade along the way).
-
which solutions do you use for i18n in typescript?
But if you have time, you can have a look to this https://github.com/belgattitude/nextjs-monorepo-example/blob/main/apps/web-app/src/features/demo/demo.config.ts.
-
Next.js monorepo build process optimization
- If you're using yarn 1, go yarn 3+ with "node_linker: node_modules", eventually "nmMode: hardlinks-local" and yarn workspace plugin (example of .yarnrc.yml config). You'll get some speed up and the update should not be too long to do. Note: this gives comparable speed of pnpm in my experience (whatever benchmark I read).
What are some alternatives?
typescript-monorepo-example - Typescript monorepo example
next-i18next - The easiest way to translate your NextJs apps.
yew - Rust / Wasm framework for creating reliable and efficient web applications
react-i18next - Internationalization for react done right. Using the i18next i18n ecosystem.
serverless-next.js - ⚡ Deploy your Next.js apps on AWS Lambda@Edge via Serverless Components
React Intl - The monorepo home to all of the FormatJS related libraries, most notably react-intl.
nextron - ⚡ Next.js + Electron ⚡
jsLingui - 🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript
electron-react-boilerplate - A Foundation for Scalable Cross-Platform Apps
vscode-vercel - WIP: Keep an eye on ▲ Vercel deployments without ever leaving Visual Studio Code.
ultra-runner - 🏃⛰ Ultra fast monorepo script runner and build tool
probot-nextjs-starter - Starter template to build GitHub bots with Probot and NextJS.