Closed ghost closed 8 years ago
After debugging the problem, I learned that the undesired symptoms are only when the dl-fetcher.js file is present! The root-cause, it is the following code snippet in dl-fetcher.js:
grunt.initConfig({
exec: {
'angular': 'lineman fetch "angular"',
'angular-bootstrap': 'lineman fetch "angular-bootstrap"'
}
});
It totally resets the whole lineman configuration! OUCH! The solution was to declare the exec object in applications.js:
. . .
exec: {
'angular': 'lineman fetch "angular"',
'angular-bootstrap': 'lineman fetch "angular-bootstrap"',
'underscore': 'lineman fetch "underscore"'
},
. . .
This was an excellent exercise, I know fully understand how to write grunt tasks for lineman!
Sorry for taking up space here. On the other hand, writing this helped me figure out the solution. I also hope that folks who read it might learn from it.
Hey we don't mind you working in the open. It might help someone else in the future. Glad it worked out. On Sat, Sep 12, 2015 at 16:56 Rodrigo Silveira notifications@github.com wrote:
Closed #376 https://github.com/linemanjs/lineman/issues/376.
— Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/376#event-407919450.
DESCRIPTION
As it will be shown below, all is well until a task that uses grunt-exec is executed; the same happened with shelljs. Once a command shell is used to issue an external command, lineman gets into a strange state preventing it form performing its basic work.
STEPS TO REPRODUCE
OBSERVED BEHAVIOR
EXPECTED BEHAVIOR
The lineman run, and all other lineman functionality, should work after running lineman grunt dl-fetch