Browse Source
Merge pull request #11162 from abpframework/liangshiwei/patch-1
Run Gulp when gulpfile exist
pull/11165/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmPackagesUpdater.cs
|
|
|
@ -88,7 +88,7 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
RunYarn(fileDirectory); |
|
|
|
} |
|
|
|
|
|
|
|
if (!IsAngularProject(fileDirectory)) |
|
|
|
if (!IsAngularProject(fileDirectory) && GulpFileExistAsync(fileDirectory)) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
RunGulp(fileDirectory); |
|
|
|
@ -108,6 +108,11 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
return await Task.FromResult(File.Exists(Path.Combine(directoryName, ".npmrc"))); |
|
|
|
} |
|
|
|
|
|
|
|
private static bool GulpFileExistAsync(string directoryName) |
|
|
|
{ |
|
|
|
return File.Exists(Path.Combine(directoryName, "gulpfile.js")); |
|
|
|
} |
|
|
|
|
|
|
|
private async Task CreateNpmrcFileAsync(string directoryName) |
|
|
|
{ |
|
|
|
var fileName = Path.Combine(directoryName, ".npmrc"); |
|
|
|
|