New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@robertoachar/generator-node

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robertoachar/generator-node

Yeoman generator for Node projects.

latest
Source
npmnpm
Version
4.1.0
Version published
Maintainers
1
Created
Source

generator-node

Travis Status AppVeyor Status CircleCI Status Coveralls Status NPM Version License

Yeoman generator for Node projects.

This generator provides the following features:

  • src folder as a starter point to build your project.
  • esm as a simple, babel-less, bundle-less ECMAScript module loader.
  • ESLint to provide a pluggable linting utility for JavaScript.
  • Prettier as an opinionated code formatter.
  • Jest as a JavaScript Testing Framework with a focus on simplicity.
  • jest-runner-eslint as an ESLint runner for Jest.
  • ntl support. Interactive cli to list and run package.json scripts.
  • EditorConfig to help you define and maintain consistent coding styles between different editors.
  • README.md and CHANGELOG.md with information about the project, installation, usage, development, author and license.
  • Badges for License.

Project files

.
|--- src
|    |--- index.js
|--- .editorconfig
|--- .eslintignore
|--- .eslintrc.json
|--- .gitattributes
|--- .gitignore
|--- .npmrc
|--- babel.config.js
|--- CHANGELOG.md
|--- jest-eslint.config.js
|--- jest-test.config.js
|--- jest.config.js
|--- LICENSE
|--- main.js
|--- package.json
|--- README.md

Installation

  • Install Yeoman
$ npm i -g yo

or

$ yarn global add yo
  • Install Generator
$ npm i -g @robertoachar/generator-node

or

$ yarn global add @robertoachar/generator-node

Usage

  • Create a project
# Create a directory for your project
$ mkdir awesome-project

# Change into directory
$ cd awesome-project

# Generate a project
$ yo @robertoachar/node
  • Run project
ActionUsage (npm)Usage (yarn)
Start development modenpm startyarn start
Run lintnpm run lintyarn lint
Start lint in watch modenpm run lint:watchyarn lint:watch
Run testsnpm run jestyarn jest
Start tests in watch modenpm run jest:watchyarn jest:watch
Run tests with code coveragenpm run jest:coverageyarn jest:coverage
Run lint + testsnpm testyarn test
Start lint + tests in watch modenpm test:watchyarn test:watch
Run lint + tests with code coveragenpm test:coverageyarn test:coverage

Development

Prerequisites

$ npm i -g add yo

or

$ yarn global add yo

Clone the repo

$ git clone https://github.com/robertoachar/generator-node.git

Run generator

# Change into directory
$ cd generator-node

# Link generator
$ yarn link # or npm link

# Run generator
$ yo @robertoachar/node

Author

Roberto Achar

License

MIT

Keywords

yeoman

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts