A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sheerun/modern-node below:

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

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

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"
  }
}

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

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):

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

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4