Yeoman generator for Node projects.
This generator provides the following features:
- src folder as a starter point to build your project.
- EditorConfig to help you define and maintain consistent coding styles between different editors.
- ESLint to provide a pluggable linting utility for JavaScript.
- Prettier as an opinionated code formatter.
- README.md and CHANGELOG.md with information about the project, installation, usage, development, author and license.
- Badges for License.
.
|--- src
| |--- index.js
|--- .editorconfig
|--- .eslintignore
|--- .eslintrc.json
|--- .gitattributes
|--- .gitignore
|--- .npmrc
|--- .prettierrc
|--- CHANGELOG.md
|--- LICENSE
|--- package.json
|--- README.md
- Install Yeoman
$ npm install -g yo- Install Generator
$ npm install -g @robertoachar/generator-node- Creating a project
# Create a directory for your project
$ mkdir awesome-project
# Change into directory
$ cd awesome-project
# Generate a project
$ yo # choose @robertoachar/node- Running project
| Action | Usage |
|---|---|
| Starting development mode | npm start |
| Linting code | npm run lint |
$ npm install -g yo$ git clone https://github.com/robertoachar/generator-node.git# Change into directory
$ cd generator-node
# Link generator
$ npm link
# Run generator
$ yo # choose @robertoachar/node