Reputation:
I'm completely new to Node.js so I have I question.
I'm writing a simple cli app that will create some files and directories.
For example if user inputs :
name-of-my-app init
It will create index.html
with some html markup with indentation(like !DOCTYPE, head, body etc.)
Maybe I can create a file and then just move the ready file from my node_modules/my-app
directory to the directory of the user(__dirname)?
The idea of my cli app is to init new projects with some .css and .js files. Also I want to use it globally(npm install -g my-app
)
Hope you'll understand what I mean :)
Any advices?
Thank you very much for spending your precious time with my problem!
Upvotes: 0
Views: 167