I have created an npm package that creates an HTML document inside the current working directory from where I am calling that particular command described in the bin of that npm package.
The command is generate_doc
, it will fetch all the data from the current working directory and create the resultant html inside the same directory as "newindex.html".
I want this particular file newindex.html to be served on a localhost port when I type generate_doc serve
, the command gets executed and the .html file is served in the localhost. I have heard that gulp will be the best option for this but I am confused about where to start with.
Even a small help would be great.