项目作者: withspectrum

项目描述 :
Create your npm package with ESNext, Flowtype and prettier.
高级语言: JavaScript
项目地址: git://github.com/withspectrum/npm-pkg.git
创建时间: 2017-05-06T15:39:53Z
项目社区:https://github.com/withspectrum/npm-pkg

开源协议:MIT License

下载


npm-pkg

Create your npm package with ESNext, Flowtype and prettier.

Installation

  1. git clone https://github.com/withspectrum/npk-pkg.git
  2. yarn install

The you can start writing your package using the latest ESNext features and flowtype in the src folder. When you git commit prettier will format your code.

Commands

  1. yarn run test # Test your package with Jest
  2. yarn run flow # Check your types with Flow
  3. yarn run build # Transpile the code with Babel
  4. yarn run prettier # Format the codebase with prettier

Publishing

We recommend using np for publishing:

  1. # Install the np module
  2. npm i -g np
  3. # Publish a new version of your package!
  4. np patch

License

Licensed under the MIT License, Copyright ©️ 2017 Maximilian Stoiber. See LICENSE.md for more information.