File contents 📦 Deps NPM
npm dependency management ve best practices.
📋 package.json Best Practices
{
"name": "my-app",
"version": "1.0.0",
"engines": { "node": ">=20.0.0" },
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint .",
"test": "vitest"
}
}
🔒 Version Control
Prefix
Anlamı
Örnek
^1.2.3
Minor updates OK
1.x.x
~1.2.3
Patch only
1.2.x
1.2.3
Exact version
1.2.3
# Lock file ZORUNLU
npm ci # package-lock.json kullan
📊 Dependency Types
{
"dependencies": {}, // Production
"devDependencies": {}, // Development only
"peerDependencies": {} // Consumer provides
}
Deps NPM v1.1 - Enhanced
🔄 Workflow
Kaynak: NPM Security Best Practices
Aşama 1: Audit & Analysis
Aşama 2: Update Strategy
Aşama 3: CI/CD Protection
Kontrol Noktaları
Aşama
Doğrulama
1
node_modules silinip npm ci yapılınca proje çalışıyor mu?
2
Production build, devDependencies olmadan çalışıyor mu?
3
Tüm versiyonlar 'Exact' veya 'Tilde/Caret' stratejisine uygun mu?
1 --- 2 name: deps-npm 3 description: 📦 Deps NPM 4 --- 5 6 # 📦 Deps NPM 7 8 > npm dependency management ve best practices. 9 10 --- 11 12 ## 📋 package.json Best Practices 13 14 ```json 15 { 16 "name": "my-app", 17 "version": "1.0.0", 18 "engines": { "node": ">=20.0.0" }, 19 "scripts": { 20 "dev": "vite", 21 "build": "tsc && vite build", 22 "lint": "eslint .", 23 "test": "vitest" 24 } 25 } 26 ``` 27 28 --- 29 30 ## 🔒 Version Control 31 32 | Prefix | Anlamı | Örnek | 33 |--------|--------|-------| 34 | `^1.2.3` | Minor updates OK | 1.x.x | 35 | `~1.2.3` | Patch only | 1.2.x | 36 | `1.2.3` | Exact version | 1.2.3 | 37 38 ```bash 39 # Lock file ZORUNLU 40 npm ci # package-lock.json kullan 41 ``` 42 43 --- 44 45 ## 📊 Dependency Types 46 47 ```json 48 { 49 "dependencies": {}, // Production 50 "devDependencies": {}, // Development only 51 "peerDependencies": {} // Consumer provides 52 } 53 ``` 54 55 --- 56 57 *Deps NPM v1.1 - Enhanced* 58 59 ## 🔄 Workflow 60 61 > **Kaynak:** [NPM Security Best Practices](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages) 62 63 ### Aşama 1: Audit & Analysis 64 - [ ] **Lockfile**: `package-lock.json` var ve güncel mi? 65 - [ ] **Security**: `npm audit` çalıştır ve kritik açıkları gider. 66 - [ ] **Licenses**: Production bağımlılıklarının lisanslarını kontrol et. 67 68 ### Aşama 2: Update Strategy 69 - [ ] **Minor/Patch**: `npm outdated` ile güvenli güncellemeleri yap. 70 - [ ] **Major**: Breaking change'leri release note'lardan oku ve tek tek güncelle. 71 - [ ] **Clean**: Kullanılmayan paketleri `depcheck` ile bul ve sil. 72 73 ### Aşama 3: CI/CD Protection 74 - [ ] **Immutable**: CI'da mutlaka `npm ci` kullan (asla `npm install` değil). 75 - [ ] **Vulnerability**: Pipeline'a audit step ekle (`npm audit --audit-level=high`). 76 77 ### Kontrol Noktaları 78 | Aşama | Doğrulama | 79 |-------|-----------| 80 | 1 | `node_modules` silinip `npm ci` yapılınca proje çalışıyor mu? | 81 | 2 | Production build, `devDependencies` olmadan çalışıyor mu? | 82 | 3 | Tüm versiyonlar 'Exact' veya 'Tilde/Caret' stratejisine uygun mu? |
vuralserhat86/antigravity-agentic-skills/tree/main/skills/deps_npm commit 114d205297
Frequently asked questions How do I install the Deps NPM skill? Run npx skillmds@latest add vuralserhat86/deps-npm in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Deps NPM skill do? 📦 Deps NPM It is listed under Coding & Dev Tools on SkillMD.
Is Deps NPM safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Deps NPM? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Deps NPM free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Deps NPM? vuralserhat86 (@vuralserhat86) published this skill. Their other Agent Skills are listed on their SkillMD profile.