d-scripts
Handle node projects development tasks with no configuration
Last updated 3 years ago by gillchristian .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install d-scripts 
SYNC missed versions from official npm registry.

d-scripts

Handle node projects development tasks with no configuration.

Install

$ yarn add --dev d-scripts

NOTE: it includes all the dependencies (prettier, jest, eslint, etc) so you don't have to install them.

Usage

d-scripts exposes a series of scripts to handle development tasks.

$ d-scripts [script] [options]

Available scripts

init

Adds the available scripts to the project's package.json.

WARNING: it will override anything you have in the properties test, lint and format of the scripts field.

format

Runs prettier on write mode.

lint

Runs ESLint with --cache flag, you can override that with --no-cache.

Since ESLint editor integrations require project based configuration to work a local eslintrc is needed, for that you can use eslint-config-d.

{
  "extends": [
    "d"
  ]
}

NOTE: a .eslintignore is required until this eslint issue is resolved.

test

Runs Jest. By default it runs in watch mode unless you are checking coverage (--coverage), used the --no-watch flag or is running in CI (checked by is-ci).

Configuration

All the scripts configuration can be overridden by adding your own confing for the tools. The default configuration can be found here.

TODO

  • Format code on precommit.
  • Run (lint, format) with the provided list of files instead of the default ones.
  • Forward options & flags to the scripts.

Inspiration

LICENSE

MIT

Current Tags

  • 0.0.11                                ...           latest (3 years ago)

11 Versions

  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 6
Dependencies (11)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |