Socket
Socket
Sign inDemoInstall

@mls-digital/generator-node-module

Package Overview
Dependencies
679
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mls-digital/generator-node-module

Yeoman generator for creating independent node modules with es2015 converstion to UMD


Version published
Maintainers
3
Created

Readme

Source

Generator Node Module

A yeoman generator for creating stand-alone node modules. Converts ES2015 to UMD modules via Babel. Uses tape / faucet for testing and ESLint for linting.

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


Usage

Make sure you have yo installed!

First install the module

npm install -g @mls-digital/generator-node-module

Then run yo

yo @mls-digital/node-module


Files Created

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

1 directory, 10 files


Modules Used

{
  "babel-cli": "^6.4.5",
  "babel-preset-es2015": "^6.3.13",
  "babel-plugin-transform-es2015-modules-umd": "^6.4.3",
  "babel-register": "^6.4.3",
  "eslint": "^1.10.3",
  "eslint-config-airbnb": "^3.1.0",
  "faucet": "0.0.1",
  "rimraf": "^2.5.0",
  "tape": "^4.4.0"
}

Available NPM scripts

{
  "lint": "eslint .",
  "test": "tape -r babel-register test/*.js | faucet",
  "compile": "rimraf lib && babel src --out-dir lib",
  "dev": "rimraf lib && babel src --out-dir lib -w",
  "release": "npm publish ?(--access public)"
}

Keywords

FAQs

Last updated on 30 Jan 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc