Search code examples
node.jsnpmyeomanscaffolding

How to create a npm project generator without Yeoman


I want to create a project generator (scaffolding) tool with npm but don't want to use Yeoman, something like the create-react-app or Angular cli where I can just run a command and the folders and files are loaded.

I don't need step by step just want to know if possible.


Solution

  • Yes you can create js script which creates a folder structure for you.
    We created something similar, which could create a folder structure using a json for defining the structure. Its called all-doer

    It basically uses the fs module to create files and directories.

    Furthermore the npm tutorial would help around how to get this published