|
|
|
@ -88,7 +88,7 @@ public class NpmPackagesUpdater : ITransientDependency
|
|
|
|
|
RunYarn(fileDirectory);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!IsAngularProject(fileDirectory))
|
|
|
|
|
if (!IsAngularProject(fileDirectory) && GulpFileExistAsync(fileDirectory))
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(1000);
|
|
|
|
|
RunGulp(fileDirectory);
|
|
|
|
@ -108,6 +108,11 @@ public class NpmPackagesUpdater : ITransientDependency
|
|
|
|
|
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");
|
|
|
|
|