search

Home  >  Q&A  >  body text

How to generate a file using command line - Stack Overflow

Now I am working on an automated front-end process using webpack gulp. The other steps have been completed, and there is still the last step. I want to directly enter a command to generate an html, scss, and js file. How to achieve this?

代言代言2764 days ago783

reply all(1)I'll reply

  • typecho

    typecho2017-06-12 09:30:34

    Use node’s fs module to write files
    Use npm link to specify your own instructions on the command line
    You need a commander for command line parameter processing (just npm install)
    Attached is a good tutorial http://www.ruanyifeng. com/blo…

    reply
    0
  • Cancelreply