Socket
Socket
Sign inDemoInstall

generator-awesome-module

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-awesome-module

Yeoman generator for creating awesome node modules with babel, codeclimate, circleci, eslint, tape, and istanbul


Version published
Maintainers
1
Created
Source

Generator Node Module

Yeoman generator for creating awesome node modules with babel, codeclimate, circleci, eslint, tape, and istanbul.

Code Climate Test Coverage Issue Count Circle CI


Opinions

  • Linting: Eslint - Babel (es2015 plugin)
  • Testing: Tape with tests next to source files
  • Coverage: Istanbul
  • Transpiling: Babel from src dir to lib dir
  • CI: CircleCI
  • Integrations:
    • Code Climate

Usage

Make sure you have yo installed!

First install the module

npm install -g generator-awesome-module

Then run yo

yo awesome-module


Files Created

.
├── .babelrc
├── .codeclimate.yml
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .npmignore
├── CHANGELOG.md
├── LICENSE.md
├── package.json
├── readme.md
├── circle.yml
└── src
    ├── index.js
    └── index.test.js


Modules Installed

{
  "babel-cli": "^6.7.5",
  "babel-preset-es2015": "^6.6.0",
  "babel-register": "^6.7.2",
  "eslint": "^2.8.0",
  "eslint-config-airbnb": "^7.0.0",
  "eslint-plugin-jsx-a11y": "^0.6.2",
  "eslint-plugin-react": "^4.3.0",
  "istanbul": "^1.0.0-alpha.2",
  "rimraf": "^2.5.2",
  "sinon": "^1.17.3",
  "tape": "^4.5.1"
}

Available NPM scripts

{
  "test:ci": "npm run lint && npm run test:coverage",
  "test:coverage": "istanbul cover tape -- -r babel-register src/**/*.test.js",
  "test": "tape -r babel-register src/**/*.test.js",
  "lint": "eslint .",
  "compile": "rimraf lib && babel src --out-dir lib --source-maps inline"
}

All source code should live in src dir. Compiles to lib dir.

Keywords

FAQs

Package last updated on 01 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc