Reputation: 1614
It's possible to install a node module in which, It's copy file other folder, like etc.
I mean my app has
app.js
conf/config.json
npm install app -g
conf/config.json--> /etc/app/config.json
Upvotes: 3
Views: 3008
Reputation: 2032
If you have non trivial tasks to implement, you can benefit from a task framework like Grunt or Gulp. These are used mostly to automate builds which is basically a non trivial set of file operations.
For simple, one off copies the copyfiles module could be your best friend.
Upvotes: 2