Open davestewart opened 9 years ago
Not sure what you are asking exactly. There is the "--to" option: http://www.graspjs.com/docs/options/#to
Hello.
No, actually. I wanted to know if Grasp could move files, but resolve any requires() as it does it:
// folder-a/somefile.js
require('./utility');
somefile.js then gets moved to folder-b, and its own requires are updated:
// folder-b/somefile.js
require('../folder-a/utility');
Make sense?
You could use grasp as a library, and pass a function as the replacement, and use node.js's fs module to check the path and change it to something else
Specifically, I have many 100s of files in 30 or so folders, each with dependencies via require() on each other, and I need to move a whole bunch of folders around.
Is this possible, perhaps by some kind of grasp move src trg ?
Thanks, Dave