lucalanca / grunt-angular-architecture-graph

Generate modules dependencies graph in .dot format
MIT License
190 stars 13 forks source link

Release 0.2.4 is broken #9

Closed g1ps closed 9 years ago

g1ps commented 9 years ago

The process is broken in release 0.2.4:

Loading "angular_architecture_graph.js" tasks...ERROR
>> Error: Unable to read "templates/legend.def" file (Error code: ENOENT).
Loading "helpers.js" tasks...ERROR
>> Error: Unable to read "templates/legend.def" file (Error code: ENOENT).

In helper.js this:

  var basePath = "node_modules/grunt-angular-architecture-graph/";

  var files = {
    legend:  grunt.file.read(basePath + "templates/legend.def"),
    all:     grunt.file.read(basePath + "templates/all.def"),
    modules: grunt.file.read(basePath + "templates/modules.def"),
    module:  grunt.file.read(basePath + "templates/module.def")
  };

was changed to this:

var files = {
  legend:  grunt.file.read("templates/legend.def"),
  all:     grunt.file.read("templates/all.def"),
  modules: grunt.file.read("templates/modules.def"),
  module:  grunt.file.read("templates/module.def")
};

Restoring the original code restores functionality. Not sure what went on there.

Cheers.