In a traditional web development workflow, you would need to spend a lot of time setting up boilerplate code for your webapp, downloading dependencies, and manually creating your web folder structure. Yeoman generators to the rescue! Let’s install a generator for FountainJS projects.
Install a generator
Install generator-fountain-webapp using this command:
npm install --global generator-fountain-webapp
This will start to install the Node packages required for the generator.
If you see permission or access errors, such as
EACCESS, do not use
sudo as a work-around. You can consult this guide for a more robust solution.
Along with using
npm install directly, you can search for generators via the Yeoman interactive menu. Run
yo and select Install a generator to search for published generators.