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

generator-restify-with-tests

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-restify-with-tests

Restify api with unit and integrated tests

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

generator-restify-with-tests

NPM version Build Status Dependency Status

Restify api with unit and integrated tests

Installation

First, install Yeoman and generator-restify-with-tests using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-restify-with-tests

Then generate your new project:

yo restify-with-tests

Features

Including

  • .gitignore
  • .eslintrc (airbnb)
  • .npmignore
  • .codeclimate.yml
  • .travis.yml
  • .editorconfig
  • nodemon
  • git-pre-push (run test)
  • git-pre-commit (run lint)
  • git-post-commit (run git status)

Usage

Scripts

  • Development

      npm run dev
    
    

    run nodemon and tests

  • Coverage

      npm run coverage
    
    

    run istanbul coverage and put result in coverage/

  • Code Climate

      npm run climate-coverage
    
    

    run coverage and send it to code-climate (you need to set CODECLIMATE_REPO_TOKEN as an enviroment variable)

  • Code Climate dotenv

      npm run climate-coverage-dotenv
    
    

    run coverage and send it to code-climate (you need to set CODECLIMATE_REPO_TOKEN in .env file)

  • Start

      npm start
    
    

    run node src/index.js

  • Dependencies Vulnerabilities

      npm run check-dependencies
    
    

    check dependencies vulnerabilities using nsp

  • Post install

      npm run postinstall
    
    

    call check-dependencies, this is will be called after every package installation

  • Linter

      npm run lint
    
    

    run eslint src according .eslintrc file

  • Tests

    • Unit

        npm test
      
      

      run mocha --opts test/unit/mocha.opts test/unit

    • Integration

        npm run test-integration
      
      

      run mocha --opts test/integration/mocha.opts test/integration

    • All

        npm run test-all
      
      

      run npm test && npm run test-integration

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © Marcos Rava

Keywords

yeoman-generator

FAQs

Package last updated on 12 Dec 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