Update js packages
This commit is contained in:
Родитель
5911fc0be1
Коммит
2a454c5aa8
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env powershell
|
||||
#requires -version 4
|
||||
|
||||
[CmdletBinding(PositionalBinding = $false)]
|
||||
param(
|
||||
[switch]$fix = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 2
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$contentDir = "$PSScriptRoot/../src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content"
|
||||
foreach ($package in $contentDir) {
|
||||
$spaFrameworks = Get-ChildItem -Path $package -Directory
|
||||
|
||||
foreach ($spaFramework in $spaFrameworks) {
|
||||
$spaFrameworkDir = Join-Path $contentDir $spaFramework
|
||||
$clientApp = Join-Path $spaFrameworkDir "ClientApp"
|
||||
Push-Location $clientApp
|
||||
try {
|
||||
Write-Output "Auditing $clientApp"
|
||||
if ($fix) {
|
||||
npm audit fix --force
|
||||
}
|
||||
else {
|
||||
npm audit
|
||||
}
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -29,23 +29,23 @@
|
|||
"bootstrap": "^3.3.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/compiler-cli": "^6.0.0",
|
||||
"@angular/platform-server": "6.0.0",
|
||||
"@angular-devkit/build-angular": "~0.6.0",
|
||||
"typescript": "~2.7.2",
|
||||
"@angular/cli": "~6.0.0",
|
||||
"@angular/compiler-cli": "^6.0.0",
|
||||
"@angular/language-service": "^6.0.0",
|
||||
"@angular/platform-server": "6.0.0",
|
||||
"@types/jasmine": "~2.8.6",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/node": "~8.9.4",
|
||||
"codelyzer": "~4.2.1",
|
||||
"jasmine-core": "~2.99.1",
|
||||
"jasmine-spec-reporter": "~4.2.1",
|
||||
"karma": "~1.7.1",
|
||||
"karma": "^2.0.4",
|
||||
"karma-chrome-launcher": "~2.2.0",
|
||||
"karma-coverage-istanbul-reporter": "~1.4.2",
|
||||
"karma-jasmine": "~1.1.1",
|
||||
"karma-jasmine-html-reporter": "^0.2.2"
|
||||
"karma-jasmine-html-reporter": "^0.2.2",
|
||||
"typescript": "~2.7.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-sass": "^4.9.0",
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -9,7 +9,7 @@
|
|||
"react-dom": "^16.0.0",
|
||||
"react-router-bootstrap": "^0.24.4",
|
||||
"react-router-dom": "^4.2.2",
|
||||
"react-scripts": "1.0.17",
|
||||
"react-scripts": "^1.1.4",
|
||||
"rimraf": "^2.6.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -11,7 +11,7 @@
|
|||
"react-router-bootstrap": "^0.24.4",
|
||||
"react-router-dom": "^4.2.2",
|
||||
"react-router-redux": "^5.0.0-alpha.8",
|
||||
"react-scripts": "1.0.17",
|
||||
"react-scripts": "^1.1.4",
|
||||
"redux": "^3.7.2",
|
||||
"redux-thunk": "^2.2.0",
|
||||
"rimraf": "^2.6.2"
|
||||
|
|
Загрузка…
Ссылка в новой задаче