-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp local execute to after 59 minutes... #726
Comments
Im using gulp 3.9.1 and node 6.11.3 version |
Hi, can you show your gulpfile.js? |
/* jshint node: true */
'use strict';
process.gulp_init_cwd = process.env.INIT_CWD || process.cwd();
var gulp = require('gulp')
, package_manager = require('./gulp/package-manager')
, path = require('path')
, fs = require('fs')
, _ = require('underscore')
, args = require('yargs').argv;
process.gulp_dest_distro = path.join(process.gulp_init_cwd, package_manager.distro.folders.distribution);
process.gulp_dest_deploy = path.join(process.gulp_init_cwd, package_manager.distro.folders.deploy);
process.gulp_dest = process.gulp_dest_distro;
//Store the relations between templates in SCL
process.dataTemplateDependencies = {}
//Delete the LocalDistribution folder in SCL, required by the "template" task
if(package_manager.distro.isSCLite)
{
var del = require('del');
del.sync([path.join(process.gulp_dest_distro, '**')]);
}
var baseTaskDir = path.resolve(__dirname, './gulp/tasks');
fs.readdirSync(baseTaskDir).forEach(function(task_name)
{
if (/\.js/.test(task_name))
{
require(path.join(baseTaskDir, task_name.replace('.js', '')));
}
});
var frontendDependencies = [
'javascript'
, 'javascript-move'
, 'copy'
, 'less'
, 'sass'
, 'images'
, 'fonts'
, 'font-awesome'
, 'clean-templates'
, 'clean-sass-tmp'
];
var backendDependecies = []
if(!package_manager.distro.isSCLite || args.generateAllJavaScript)
{
frontendDependencies.push('languages');
backendDependecies = [
'scripts'
, 'services'
, 'ssp-libraries'
, 'ssp-files'
, 'configuration'
];
}
gulp.task(
'frontend'
, frontendDependencies
);
gulp.task(
'backend'
, backendDependecies
);
gulp.task(
'default'
, [
'backend'
, 'frontend'
]
, function ()
{
generateManifest();
}
);
function generateManifest()
{
var isDeploy = folderExists(package_manager.distro.folders.deploy);
var targetFolder = isDeploy ? package_manager.distro.folders.deploy : package_manager.distro.folders.distribution;
var Uploader = require('ns-uploader');
Uploader.prototype.buildLocalManifest(targetFolder)
.then(function(localManifest)
{
if (!isDeploy)
{
var regex = new RegExp('^' + package_manager.distro.folders.distribution);
_.each(localManifest, function(entry)
{
entry.path = entry.path.replace(regex, package_manager.distro.folders.deploy);
});
}
fs.writeFileSync(path.join(targetFolder, Uploader.prototype.MANIFEST_FILE_NAME), JSON.stringify(localManifest));
})
.catch(function()
{
// ignore errors - we can still proceed without a manifest
});
}
function folderExists(folder)
{
try
{
return fs.lstatSync(folder).isDirectory();
}
catch (ex)
{
return false;
}
} |
Please help me on this...My gulp local taking 1 hour to complete with admin access. |
can you give me your package.json? i'll try to do it in my pc
Вторник, 4 сентября 2018, 21:07 +05:00 от chialakarajesh ***@***.***>:
new 2.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or mute the thread .
С уважением,
torushelm@list.ru
|
Hi Please find attached file of Package.json.
Please let me know if you need anything.
Thanks,
Ch Rajesh.
________________________________
From: Torus <notifications@github.com>
Sent: Tuesday, September 4, 2018 9:39:43 PM
To: yeoman/generator-webapp
Cc: Rajesh, Chilaka; Author
Subject: Re: [yeoman/generator-webapp] Gulp local execute to after 59 minutes... (#726)
can you give me your package.json? i'll try to do it in my pc
Вторник, 4 сентября 2018, 21:07 +05:00 от chialakarajesh ***@***.***>:
new 2.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or mute the thread .
С уважением,
torushelm@list.ru
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#726 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AfQNj-zaAC9Wg9kLWI2GZW993oQ97_MZks5uXqXGgaJpZM4WY1zG>.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
|
Hi, do you use yeoman for web frontend development? only for creating project? or something else?
Среда, 5 сентября 2018, 12:33 +05:00 от chialakarajesh ***@***.***>:
Hi Please find attached file of Package.json.
Please let me know if you need anything.
Thanks,
Ch Rajesh.
________________________________
From: Torus < ***@***.*** >
Sent: Tuesday, September 4, 2018 9:39:43 PM
To: yeoman/generator-webapp
Cc: Rajesh, Chilaka; Author
Subject: Re: [yeoman/generator-webapp] Gulp local execute to after 59 minutes... (#726)
can you give me your package.json? i'll try to do it in my pc
>Вторник, 4 сентября 2018, 21:07 +05:00 от chialakarajesh < ***@***.*** >:
>
>new 2.txt
>—
>You are receiving this because you commented.
>Reply to this email directly, view it on GitHub , or mute the thread .
С уважением,
***@***.***
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub< #726 (comment) >, or mute the thread< https://github.com/notifications/unsubscribe-auth/AfQNj-zaAC9Wg9kLWI2GZW993oQ97_MZks5uXqXGgaJpZM4WY1zG >.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or mute the thread .
torushelm@list.ru
|
https://github.com/chialakarajesh/elbrus-js-demo.git this is your project? right? |
No..Im using bitbucket repository for my project |
sorry for wrong file upload.Please find exact file of pacjage.json.
Thanks,
Ch Rajesh.
________________________________
From: Rajesh, Chilaka
Sent: Wednesday, September 5, 2018 1:03:24 PM
To: yeoman/generator-webapp; yeoman/generator-webapp
Cc: Author
Subject: Re: [yeoman/generator-webapp] Gulp local execute to after 59 minutes... (#726)
Hi Please find attached file of Package.json.
Please let me know if you need anything.
Thanks,
Ch Rajesh.
________________________________
From: Torus <notifications@github.com>
Sent: Tuesday, September 4, 2018 9:39:43 PM
To: yeoman/generator-webapp
Cc: Rajesh, Chilaka; Author
Subject: Re: [yeoman/generator-webapp] Gulp local execute to after 59 minutes... (#726)
can you give me your package.json? i'll try to do it in my pc
Вторник, 4 сентября 2018, 21:07 +05:00 от chialakarajesh ***@***.***>:
new 2.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or mute the thread .
С уважением,
torushelm@list.ru
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#726 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AfQNj-zaAC9Wg9kLWI2GZW993oQ97_MZks5uXqXGgaJpZM4WY1zG>.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
|
I assume that this bug was fixed in #737. If not we can re-open it again 😃 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Im using windows 10 pro 64 bit system and when i ran gulp local it 'll take to complete 59 minutes to complete..Can any one suggested me how to reduce time and run gulp local very fast.
The text was updated successfully, but these errors were encountered: