change nodemon & ng to not required global installation

pull/1/head
Florian Hartwich 2017-07-23 08:46:54 +02:00
parent bc24aaf26f
commit 4fecc28803
4 changed files with 1170 additions and 1477 deletions

2638
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@
"devDependencies": {
"chai": "^3.5.0",
"chai-http": "^3.0.0",
"mocha": "^3.3.0"
"mocha": "^3.3.0",
"nodemon": "^1.11.0"
}
}

View File

@ -6,8 +6,8 @@
"scripts": {
"start": "npm run deploy-static-prod && npm start --prefix ./api",
"dev": "npm run deploy-static && npm run dev --prefix ./api",
"deploy-static": "cd ./static && ng build && ln -s ../api/resource/ ../public/resource",
"deploy-static-prod": "cd ./static && ng build --env=prod && ln -s ../api/resource/ ../public/resource",
"deploy-static": "cd ./static && $(npm bin)/ng build && ln -s ../api/resource/ ../public/resource",
"deploy-static-prod": "cd ./static && $(npm bin)/ng build --env=prod && ln -s ../api/resource/ ../public/resource",
"postinstall": "npm install --prefix ./static && npm install --prefix ./api",
"mongodb": "mkdir -p mongodb-data && mongod --dbpath ./mongodb-data",
"test": "npm test --prefix ./api",

View File

@ -26,7 +26,7 @@
(change)="toggleDecoPreview(decoDescription, decoPreview)"
required>
<option *ngFor="let deco of decorations" [ngValue]="deco">
{{deco.fraction == 'BLUFOR'? 'NATO' : deco.fraction == 'OPFOR'? 'CSAT' : 'Global'}}: {{deco.name}}
{{deco.name}}
</option>
</select>
</div>