It's a tool for dolphinjs to traverse the modules of one html file.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-module-traversal --save-dev
You can run the testcase. change you path to ./node_modeules/grunt-module-traversal/, and run grunt. You could see the result file ./test/test_new.html was created! The ./Gruntfile.js has the base function of this task, so you could use it as that. If you have any question, you can contact me at sina weibo: http://weibo.com/ginano ## The "moduleTraversal" task
In your project's Gruntfile, add a section named
moduleTraversal to the data object passed into
2013-11-25 add some comments in the sourcecode, and add the function of setting shared rate for common modules, which could compress these files to one common file.