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

@hughescr/generator-node-basic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hughescr/generator-node-basic

Basic NodeJS project with package.json, .eslint.rc, Sublime project, test directory, Gruntfile, README, etc

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

Overview

This is a scaffold for the basic structure of a NodeJS package for Craig's use

Use

Install yo and the generator (probably globally), create a directory for your project, then run the generator in that directory

npm -g install yo @hughescr/generator-node-basic
mkdir sample-project
cd sample-project
yo @hughescr/node-basic

Answer the questions for the config you want, then sit back and it'll build and set up:

  • Main source stub
  • Unit test stubs
  • ESLint
  • Gulp, including
    • lint target which runs lint
    • mocha target which runs the unit tests
    • test target which runs lint & tests
  • NPM package.json, including
    • postversion script which handles git updating of version ticking

Keywords

yeoman-generator

FAQs

Package last updated on 27 Jul 2017

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