项目作者: xqstencils

项目描述 :
Node jest lib
高级语言: JavaScript
项目地址: git://github.com/xqstencils/node-jest-lib.git
创建时间: 2018-08-25T15:49:17Z
项目社区:https://github.com/xqstencils/node-jest-lib

开源协议:MIT License

下载


Node Jest lib stencil

This is a stencil for common package base on node and jest.

Current Status:

@xq-stencil/node-jest-lib"">NPM Version
@xq-stencil/node-jest-lib"">NPM Downloads
Build Status

NPM

Features:

  • Support Publish your package to git & npm with ci.
  • Support CircleCi for pipeline.
  • Support ES7 & ES6 syntax.
  • Support ESlint to check the code.
  • Support Jest to test your code.
  • Support Yarn audit to do security check for dependencies.

Development:

Setup

Clone this stencil and replace @xq-stencil/node-jest-lib with your package name.

  1. $ git clone git@github.com:xqstencils/node-jest-lib.git

Install dependencies

  1. $ yarn install

Compile code

  1. $ yarn babel
  2. # or run babel in watch mode
  3. $ yarn babel:watch

Generate distribution code

  1. $ yarn build

Linting

  1. $ yarn lint

Testing

  1. $ yarn test
  2. # or run the test in watch mode
  3. $ yarn test:watch

Security check

  1. $ yarn audit

Setup CI

  • Update the circleci config
  • Setup the ci into circleci site.

Publish your package

  1. $ yarn release

License

node-jest-lib is released under the MIT license.