package
> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
npm install modern-nodeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
precommit script from package.json from when committing codeyarn create modern-node my-moduleIf you're using npm:
npm init modern-node my-module.
yarn add --dev modern-nodeIf 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):
modern testFormat 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 filesFormat 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 filesFormat and lint staged changes (useful to put into precommit script):
modern precommitFor now linted extensions can be configured with lint-staged option in package.json.
MIT
Estimated unpacked size across 62 packages.
20.6 MB+
Includes dependencies.
^7.0.1
11.0.0
^16.4.1
16.4.1
^0.6.0
3.0.1