Development guidelines for a Nuxt.js app with nested Floorplan3D module repository. Handles dual-repo workflow, local dev mode, and module resolution patterns.
Guidelines for developing a Nuxt.js application with a nested `@2112-lab/floorplan3d` npm module repository.
1. **Always test at http://localhost:3000/** - Assume dev server is already running. Never run `npm run dev`.
2. **Nested Repository Structure** - The project contains two independent git repositories:
- Main app: `floorplan3d-demo/` (root)
- Module: `floorplan3d-demo/floorplan3d/` (nested)
3. **Local Development Mode** - When `LOCAL_DEV=true` in `.env`, the app uses the local module source instead of the published npm package.
**Before making commits, always check which repository context you're in:**
```bash
git remote -v
```
**For module changes:**
```bash
cd floorplan3d/
git add .
git commit -m "Your module change message"
git push
cd ..
```
**For app changes:**
```bash
git add .
git commit -m "Your app change message"
git push
```
**When changes span both repositories:**
1. Commit to the module repository first
2. Then commit to the app repository
3. Handle each repository independently
1. **For immediate hot-reload during development:**
- Edit files in `floorplan3d/src/`
- Changes are picked up automatically by Nuxt's build process
- No separate build step required
2. **To test the production build:**
- Navigate to module directory: `cd floorplan3d/`
- Build the module: `npm run build`
- Test the built version in the app
3. **Module is transpiled by Nuxt:**
- The module source is processed through Nuxt's webpack configuration
- No need to manually transpile during development
| File | Purpose |
|------|---------|
| `floorplan3d/src/index.js` | Module entry point (development) |
| `floorplan3d/dist/bundle/index.js` | Built bundle (production) |
| `.env` | Set `LOCAL_DEV=true` to enable local module |
| `nuxt.config.js` | Webpack alias configuration for module resolution |
```bash
vim floorplan3d/src/new-feature.js
cd floorplan3d/
git add src/new-feature.js
git commit -m "Add new feature"
git push
cd ..
vim pages/index.vue
git add pages/index.vue
git commit -m "Integrate new module feature"
git push
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/floorplan3d-local-development/raw