Giter Site home page Giter Site logo

generator-node-lib's Introduction

npm npm Dependency Status devDependency Status Build Status

generator-node-lib

Complete open-source nodeJs library development process

Yeoman generator

Thank you for usage

Features

  • github.com and bitbacke.org git repositories support
  • base config files: eslint, editorconfig, gitignore
  • tests by different engines
  • continues integration (by travis-ci)
  • code test coverage (by coveralls.io)
  • default shields in readme.md for your project (if you specified the repository), such as npm-version, npm-licence, devDependencies, dependencies, travis-ci build status, coverage percent

Getting Started

You need answer on the questions:

  1. Library Name (default: directory name)
  2. Version (default: 1.0.0)
  3. Enter git repository (default: will use from existing file ./.git/config or empty)
  4. Add Travis-CI? (default: true)
  5. Add Coverals.io? (default: true)
  6. Test Engine (default: nodeunit)
  7. License (default: MIT)
  8. CodeFormat: indent type (default: TAB)
  9. CodeFormat: indent size (default: 4)

Usage generator

To install generator-node-lib from npm, run:

$ npm install -g generator-node-lib

Finally, initiate the generator:

$ yo node-lib

#or, if you want to install dependencies manually
$ yo node-lib --slip-install 

Usage generated library

After answers on all questions you have base infrastructure for development, testing and deployment your library

Install dependencies of your library

$ npm install

Watch project files and run check tasks (eslint, tests)

$ grunt default
# or
$ grunt check watch

For add new dependencies

$ npm install needed-package --save 

For running your tests need

$ npm test
#or
$ grunt check

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

$ npm install -g yo

License

MIT

Support

If you have any problems, catch the bug or have any suggestion - please find an existing issue or create new

Contributing

Do that! How to contribute open-source projects

Together we can change the world!

generator-node-lib's People

Contributors

aliaksandr-master avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jbnicolai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.