modern-node
> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
Last updated a month ago by sheerun .
MIT · Original npm · Tarball · package.json
$ cnpm install modern-node 
SYNC missed versions from official npm registry.

Modern Node Unix CI Modern Node

All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard

  • ???? Testing with Jest
  • ???? Formatting with prettier
  • ???? Linting with eslint configured on standard rules
  • ???? Automatically runs precommit script from package.json from when committing code

Installation (new projects)

yarn create modern-node my-module

If you're using npm: npm init modern-node my-module.

Installation (existing projects)

yarn add --dev modern-node

If you're using npm: npm install --save-dev modern-node.

Now you add appropriate scripts to your package.json:

{
  "scripts": {
    "test": "modern test",
    "format": "modern format",
    "lint": "modern lint",
    "precommit": "modern precommit"
  }
}

Usage

Test your project with Jest (watch mode, unless running on CI server):

modern test

Format all files in the project with prettier-standard (add --help for more options):

modern format             # format all files
modern format --changed   # format only changed files
modern format '**/*.js'   # format only selected files

Format and files in the project (add --help for more options):

modern lint             # lint all files
modern lint --changed   # lint only changed files
modern lint '**/*.js'   # lint only selected files

Format and lint staged changes (useful to put into precommit script):

modern precommit

For now linted extensions can be configured with lint-staged option in package.json.

License

MIT

Current Tags

  • 2.8.0                                ...           latest (a month ago)

32 Versions

  • 2.8.0                                ...           a month ago
  • 2.7.0                                ...           3 months ago
  • 2.6.0                                ...           6 months ago
  • 2.5.1                                ...           8 months ago
  • 2.5.0                                ...           8 months ago
  • 2.4.2                                ...           8 months ago
  • 2.4.1                                ...           8 months ago
  • 2.4.0                                ...           9 months ago
  • 2.3.2                                ...           9 months ago
  • 2.3.1                                ...           9 months ago
  • 2.3.0                                ...           9 months ago
  • 2.2.1                                ...           9 months ago
  • 2.2.0                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 2.0.0-beta.7                                ...           9 months ago
  • 2.0.0-beta.6                                ...           9 months ago
  • 2.0.0-beta.5                                ...           9 months ago
  • 2.0.0-beta.4                                ...           9 months ago
  • 2.0.0-beta.3                                ...           9 months ago
  • 2.0.0-beta.2                                ...           9 months ago
  • 2.0.0-beta.1                                ...           9 months ago
  • 2.0.0-beta.0                                ...           9 months ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0-alpha.2                                ...           2 years ago
  • 1.0.0-alpha.1                                ...           2 years ago
  • 1.0.0-alpha.0                                ...           2 years ago
  • 0.0.1                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 130
Dependencies (11)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |