generator-daddy is a library for npm that works with Yeoman to quickly build scaffolding for Web projects. It was developed to allow us to focus on the development of the project rather than spending time doing repetitive work.
npm i generator-daddy
# Yeoman must be installed before generator-daddy can be used
npm install -g yo
# Install generator-daddy generator
npm install -g generator-daddy
# Use generator-daddy to generate the project (Default Express project)
yo daddy
# Generate the front-end Vue project
yo daddy:vue
# If you're using an unofficial npm source, you might run into npm packages not found. Try the following command
npm config set registry https://registry.npmjs.org/
- Add the front-end project generation template