generator-npm-lib

1.0.1 • Public • Published

Npm Lib, Yeoman Generator

Usage

npm install -g yo generator-npm-lib
yo npm-lib
cd my-project
npm install
npm test

Features

Project Structure

└─ $ tree -I 'node_modules'
.
├── README.md
├── CONTRIBUTING.md
├── package.json
├── src
│   └── index.js                  // <-- start coding here
├── babel
│   └── index.js                  // transpiled from source code
├── config
│   ├── release.json              // release configuration
│   └── watch-filter-config.json
├── coverage
│   ├── coverage.raw.json         // JSON coverage data
│   └── lcov-report
│       └── index.html            // HTML coverage data
└── test
    ├── integration
    ├── support
    │   ├── test-utils.js
    │   └── watch-filter.js
    └── unit
        ├── index.spec.js         // <-- start testing here
        └── test-environment.spec.js

NPM Scripts

  • npm test: Run style enforcer, tests, and code coverage.
  • npm run release: Bump the package.json version, commit, tag, and publish.

Contribution

See CONTRIBUTING.md for contribution details.

Package Sidebar

Install

npm i generator-npm-lib

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • coreyferguson