cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ant npminstall and increased build time

former_member954576
Discoverer
2,675

Hi,

I am working on a smartedit extension and I had to run "ant npminstall" to build it. But now, everytime I run any task of ant, the build time has increased with a factor of 2 to 3 depending on the task. Is there a way to deactivate the npm task?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member

Delete hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules folder and the Smartedit custom modules are suddenly not included in the build anymore.

Smartedit should really get build support for srctouch or something like all the other extensions, because the current build times are just ridiculous.

former_member717801
Discoverer
0 Kudos

go to npmancillary\resources\ant\windows.properties

and change

#loc.NPM_HOME=${ext.npmancillary.path}\\resources\\npm

loc.NPM_HOME=NotSet

This way we can speed up the build time of Hybris by preventing Grunt from being executed.

Note that you don’t want to disable Grunt permanently !

aditya_chaudhari24
Discoverer
0 Kudos

I am also facing this issue , is there any way to do uninstall "ant npminstall"
Has anybody got the solution to revert what ant npminstall has done ?
So that build will exclude angular builds while doing hybris build.

former_member954576
Discoverer
0 Kudos

The consequence of this is that any change in the javascript (angular or typescript) of smartEdit could not be released because of the huge amount of time it takes to build the package on each environment.

Former Member
0 Kudos

That happened to me too. How to solve?

Former Member
0 Kudos

Can i know which smartedit version do you use ?

former_member954576
Discoverer
0 Kudos

Of course, it's the version : 1811.6