Monorepo template with NX Workspaces, Nuxt 3 and TypeScript.
- NX workspace to manage monorepo
- Nuxt application and Shared/Utils module packages
- Front-end package: Nuxt 3
- Shared package: shared code used in all packages
Suggest to install globally in dev environment:
# 1. Clone the repository
git clone https://github.com/DhivinX/nx-nuxt-starter.git
# 2. Enter your newly-cloned folder
cd nx-nuxt-starter
# 3. Install the project and build packages in libs folder
npm install
# 4. Or run apps with hot reload parallel
npm run apps:dev
- Install Volar extension
- In your project workspace, bring up the command palette with Ctrl + Shift + P (macOS: Cmd + Shift + P).
- Type built and select "Extensions: Show Built-in Extensions".
- Type typescript in the extension search box (do not remove @builtin prefix).
- Click the little gear icon of "TypeScript and JavaScript Language Features", and select "Disable (Workspace)".
- Reload the workspace. Takeover mode will be enabled when you open a Vue or TS file.
More info here: https://vuejs.org/guide/typescript/overview.html#takeover-mode
apps:dev
- run all apps simultaneously with hot reloadweb:dev
- run front-end with hot reloadbuild
- build all packagestest
- run tests for all packagesclean
- clean all packageslint
- lint all packagesdep-graph
- patch nx dep graph for vue files and open the project graph of the workspace in the browser
{
"recommendations": [
"nrwl.angular-console",
"vue.volar",
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"syler.sass-indented",
"eamodio.gitlens",
"aaron-bond.better-comments",
"visualstudioexptteam.vscodeintellicode",
"pkief.material-icon-theme",
"mikestead.dotenv",
"firsttris.vscode-jest-runner"
]
}
nrwl.angular-console
- Nx Consolevue.volar
- Vue Language Features (Volar)syler.sass-indented
- Sass syntax highlighting.dbaeumer.vscode-eslint
- VS Code ESLint extension.editorconfig.editorconfig
- EditorConfig for VS Code.
eamodio.gitlens
- GitLens - Git supercharged.mikestead.dotenv
- DotENV - Support for dotenv file syntaxvisualstudioexptteam.vscodeintellicode
- IntelliCodepkief.material-icon-theme
- Material Icon Theme in VS Codeaaron-bond.better-comments
- Better Comments
If you find a bug, or have an enhancement in mind please post issues on GitHub.
MIT