Michael Kühnel
Frontend Developer working for Micromata 👨🏼💻
Am Beispiel von npm
$ npm init
Projekt initialiseren
{
"name": "projectname",
"version": "1.0.0",
"description": "My project description",
"main": "index.js",
"scripts": {
"test": "npm test"
},
"author": "Michael Kühnel",
"license": "MIT"
}
Erzeugt package.json im Verzeichnis
$ npm install normalize.css --save
$ npm install bootstrap --save
$ npm install knockout --save
Dependencies hinzufügen
{
"name": "projectname",
"version": "1.0.0",
"description": "My project description",
"main": "index.js",
"scripts": {
"test": "npm test"
},
"author": "Michael Kühnel",
"license": "MIT",
"dependencies": {
"bootstrap": "^3.3.7",
"knockout": "^3.4.1",
"normalize.css": "^5.0.0"
}
}
Update der package.json
.
└── node_modules
├── bootstrap
├── knockout
└── normalize.css
Update im File system
$ npm install
Dependencies nach Checkout installieren
By Michael Kühnel