This commit is contained in:
Ryan Brandenburg 2018-06-27 12:22:53 -07:00
Родитель 5911fc0be1
Коммит 2a454c5aa8
7 изменённых файлов: 10609 добавлений и 6112 удалений

Просмотреть файл

@ -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" "bootstrap": "^3.3.7"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler-cli": "^6.0.0",
"@angular/platform-server": "6.0.0",
"@angular-devkit/build-angular": "~0.6.0", "@angular-devkit/build-angular": "~0.6.0",
"typescript": "~2.7.2",
"@angular/cli": "~6.0.0", "@angular/cli": "~6.0.0",
"@angular/compiler-cli": "^6.0.0",
"@angular/language-service": "^6.0.0", "@angular/language-service": "^6.0.0",
"@angular/platform-server": "6.0.0",
"@types/jasmine": "~2.8.6", "@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4", "@types/node": "~8.9.4",
"codelyzer": "~4.2.1", "codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1", "jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "~1.7.1", "karma": "^2.0.4",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~1.4.2", "karma-coverage-istanbul-reporter": "~1.4.2",
"karma-jasmine": "~1.1.1", "karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2" "karma-jasmine-html-reporter": "^0.2.2",
"typescript": "~2.7.2"
}, },
"optionalDependencies": { "optionalDependencies": {
"node-sass": "^4.9.0", "node-sass": "^4.9.0",

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -9,7 +9,7 @@
"react-dom": "^16.0.0", "react-dom": "^16.0.0",
"react-router-bootstrap": "^0.24.4", "react-router-bootstrap": "^0.24.4",
"react-router-dom": "^4.2.2", "react-router-dom": "^4.2.2",
"react-scripts": "1.0.17", "react-scripts": "^1.1.4",
"rimraf": "^2.6.2" "rimraf": "^2.6.2"
}, },
"scripts": { "scripts": {

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -11,7 +11,7 @@
"react-router-bootstrap": "^0.24.4", "react-router-bootstrap": "^0.24.4",
"react-router-dom": "^4.2.2", "react-router-dom": "^4.2.2",
"react-router-redux": "^5.0.0-alpha.8", "react-router-redux": "^5.0.0-alpha.8",
"react-scripts": "1.0.17", "react-scripts": "^1.1.4",
"redux": "^3.7.2", "redux": "^3.7.2",
"redux-thunk": "^2.2.0", "redux-thunk": "^2.2.0",
"rimraf": "^2.6.2" "rimraf": "^2.6.2"