Manages single workspace structure and npm policies for Devian TypeScript projects with strict install rules and root-level dependency management
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Enforces single workspace structure and npm policies for Devian TypeScript projects (v10). Ensures proper dependency installation, workspace configuration, and build script execution.
This skill helps you maintain a strict monorepo workspace structure for Devian TypeScript projects. It prevents common mistakes like installing dependencies in subfolders, ensures the correct workspace root is used, and provides centralized npm script execution for builds, archives, and development servers.
NEVER run `npm install` directly in subfolders (`module/*`, `apps/*`, `tools/*`). Always execute from `framework-ts/` root.
When working with a Devian v10 project, first verify the workspace structure:
```bash
test -f framework-ts/package.json && echo "✓ Workspace root found" || echo "✗ Missing workspace root"
find framework-ts/{module,apps,tools} -name "node_modules" -type d 2>/dev/null && echo "✗ Invalid node_modules found" || echo "✓ Clean structure"
find framework-ts/{module,apps,tools} -name "package-lock.json" 2>/dev/null && echo "✗ Invalid lockfiles found" || echo "✓ Clean lockfiles"
```
Always install dependencies from the workspace root:
```bash
cd framework-ts
npm install
```
For CI/CD environments, use `npm ci`:
```bash
cd framework-ts
npm ci
```
Use the centralized scripts defined in root `package.json`:
**Build with Builder Tool:**
```bash
cd framework-ts
npm run builder -- ../input/input_common.json
```
**Archive Project:**
```bash
cd framework-ts
npm run archive -- <archive-args>
```
**Start Client Development Server:**
```bash
cd framework-ts
npm run dev:client
```
**Start Game Server:**
```bash
cd framework-ts
npm run start:server
```
When adding dependencies to any workspace package:
```bash
cd framework-ts
npm install <package-name> -w <workspace-name>
npm install lodash -w game-client
npm install express -w game-server
npm install typescript -D -w builder
```
If `package-lock.json` becomes corrupted or out of sync:
```bash
cd framework-ts
rm -rf node_modules package-lock.json
npm install
```
The workspace root must have this structure:
```json
{
"name": "devian-framework-ts",
"version": "10.0.0",
"type": "module",
"private": true,
"workspaces": [
"module/*",
"apps/*",
"tools/*"
],
"scripts": {
"builder": "npm -w builder run build --",
"archive": "npm -w archive run archive --",
"dev:client": "npm -w game-client run dev",
"start:server": "npm -w game-server run start"
}
}
```
The root `tsconfig.json` should configure module resolution with path aliases:
```json
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@devian/core": ["./module/devian/src"]
}
}
}
```
| Command | Purpose |
|---------|---------|
| `npm run builder -- ../input/input_common.json` | Execute build with input JSON |
| `npm run archive -- <args>` | Create project archive |
| `npm run dev:client` | Start client dev server |
| `npm run start:server` | Launch game server |
| `npm install <pkg> -w <workspace>` | Add dependency to specific workspace |
| `npm ci` | Clean install (CI/CD) |
Before committing changes or running builds, verify:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/devian-v10-workspace-manager-kojn6t/raw