jmd-scripts
CLI for common scripts for my projects
Last updated 8 months ago by jeffdetmer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jmd-scripts 
SYNC missed versions from official npm registry.

jmd-scripts ????????

CLI toolbox for common scripts for my projects


Build Status Code Coverage Greenkeeper badge version downloads MIT License

All Contributors PRs Welcome Code of Conduct FOSSA Status

Watch on GitHub Star on GitHub Tweet

The problem

I want to make it easier to maintain my projects.

This solution

This is a CLI that abstracts away all configuration for my open source projects for linting, testing, building, and more.

Table of Contents

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev jmd-scripts

Usage

This is a CLI and exposes a bin called jmd-scripts. I don't really plan on documenting or testing it super duper well because it's really specific to my needs. You'll find all available scripts in src/scripts.

This project actually dogfoods itself. If you look in the package.json, you'll find scripts with node src {scriptName}. This serves as an example of some of the things you can do with jmd-scripts.

Overriding Config

Unlike react-scripts, jmd-scripts allows you to specify your own configuration for things and have that plug directly into the way things work with jmd-scripts. There are various ways that it works, but basically if you want to have your own config for something, just add the configuration and jmd-scripts will use that instead of it's own internal config. In addition, jmd-scripts exposes its configuration so you can use it and override only the parts of the config you need to.

This can be a very helpful way to make editor integration work for tools like ESLint which require project-based ESLint configuration to be present to work.

So, if we were to do this for ESLint, you could create an .eslintrc with the contents of:

{"extends": "./node_modules/jmd-scripts/eslint.js"}

Note: for now, you'll have to include an .eslintignore in your project until this eslint issue is resolved.

Or, for babel, a .babelrc with:

{"presets": ["jmd-scripts/babel"]}

Or, for jest:

const {jest: jestConfig} = require('jmd-scripts/config')
module.exports = Object.assign(jestConfig, {
  // your overrides here

  // for test written in Typescript, add:
  transform: {
    '\\.(ts|tsx)$': '<rootDir>/node_modules/ts-jest/preprocessor.js',
  },
})

Note: jmd-scripts intentionally does not merge things for you when you start configuring things to make it less magical and more straightforward. Extending can take place on your terms. I think this is actually a great way to do this.

Inspiration

This is inspired by react-scripts and heavily borrows code from kcd-scripts.

Other Solutions

If you are aware of any others, please make a pull request and add it here!

kcd-scripts

Contributors

Thanks goes to these people (emoji key):


Jeff Detmer

???? ???? ????

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

FOSSA Status

Current Tags

  • 1.12.5                                ...           latest (8 months ago)

148 Versions

  • 1.12.5                                ...           8 months ago
  • 1.12.4                                ...           10 months ago
  • 1.12.3                                ...           10 months ago
  • 1.12.2                                ...           a year ago
  • 1.12.1                                ...           a year ago
  • 1.12.0                                ...           a year ago
  • 1.11.0                                ...           a year ago
  • 1.10.0                                ...           a year ago
  • 1.9.5                                ...           a year ago
  • 1.9.4                                ...           a year ago
  • 1.9.3                                ...           a year ago
  • 1.9.2                                ...           a year ago
  • 1.9.1                                ...           a year ago
  • 1.9.0                                ...           a year ago
  • 1.8.0                                ...           a year ago
  • 1.5.78                                ...           a year ago
  • 1.5.77                                ...           a year ago
  • 1.5.76                                ...           a year ago
  • 1.5.75                                ...           a year ago
  • 1.5.74                                ...           a year ago
  • 1.5.73                                ...           a year ago
  • 1.5.72                                ...           a year ago
  • 1.5.71                                ...           a year ago
  • 1.5.70                                ...           a year ago
  • 1.5.69                                ...           a year ago
  • 1.5.68                                ...           a year ago
  • 1.5.67                                ...           a year ago
  • 1.5.66                                ...           a year ago
  • 1.5.65                                ...           a year ago
  • 1.5.64                                ...           a year ago
  • 1.5.63                                ...           a year ago
  • 1.5.62                                ...           a year ago
  • 1.5.61                                ...           a year ago
  • 1.5.60                                ...           a year ago
  • 1.5.59                                ...           a year ago
  • 1.5.58                                ...           a year ago
  • 1.5.57                                ...           a year ago
  • 1.5.56                                ...           a year ago
  • 1.5.55                                ...           a year ago
  • 1.5.54                                ...           a year ago
  • 1.5.53                                ...           a year ago
  • 1.5.52                                ...           a year ago
  • 1.5.51                                ...           a year ago
  • 1.5.50                                ...           a year ago
  • 1.5.49                                ...           a year ago
  • 1.5.48                                ...           a year ago
  • 1.5.47                                ...           a year ago
  • 1.5.46                                ...           a year ago
  • 1.5.45                                ...           a year ago
  • 1.5.44                                ...           a year ago
  • 1.5.43                                ...           a year ago
  • 1.5.42                                ...           a year ago
  • 1.5.41                                ...           a year ago
  • 1.5.40                                ...           a year ago
  • 1.5.39                                ...           a year ago
  • 1.5.38                                ...           a year ago
  • 1.5.37                                ...           a year ago
  • 1.5.36                                ...           a year ago
  • 1.5.35                                ...           2 years ago
  • 1.5.34                                ...           2 years ago
  • 1.5.33                                ...           2 years ago
  • 1.5.32                                ...           2 years ago
  • 1.5.31                                ...           2 years ago
  • 1.5.30                                ...           2 years ago
  • 1.5.29                                ...           2 years ago
  • 1.5.28                                ...           2 years ago
  • 1.5.27                                ...           2 years ago
  • 1.5.26                                ...           2 years ago
  • 1.5.25                                ...           2 years ago
  • 1.5.24                                ...           2 years ago
  • 1.5.23                                ...           2 years ago
  • 1.5.22                                ...           2 years ago
  • 1.5.21                                ...           2 years ago
  • 1.5.20                                ...           2 years ago
  • 1.5.19                                ...           2 years ago
  • 1.5.18                                ...           2 years ago
  • 1.5.17                                ...           2 years ago
  • 1.5.16                                ...           2 years ago
  • 1.5.15                                ...           2 years ago
  • 1.5.14                                ...           2 years ago
  • 1.5.13                                ...           2 years ago
  • 1.5.12                                ...           2 years ago
  • 1.5.11                                ...           2 years ago
  • 1.5.10                                ...           2 years ago
  • 1.5.9                                ...           2 years ago
  • 1.5.8                                ...           2 years ago
  • 1.5.7                                ...           2 years ago
  • 1.5.6                                ...           2 years ago
  • 1.5.5                                ...           2 years ago
  • 1.5.4                                ...           2 years ago
  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.29                                ...           2 years ago
  • 1.4.28                                ...           2 years ago
  • 1.4.27                                ...           2 years ago
  • 1.4.26                                ...           2 years ago
  • 1.4.25                                ...           2 years ago
  • 1.4.24                                ...           2 years ago
  • 1.4.23                                ...           2 years ago
  • 1.4.22                                ...           2 years ago
  • 1.4.21                                ...           2 years ago
  • 1.4.20                                ...           2 years ago
  • 1.4.19                                ...           2 years ago
  • 1.4.18                                ...           2 years ago
  • 1.4.17                                ...           2 years ago
  • 1.4.16                                ...           2 years ago
  • 1.4.15                                ...           2 years ago
  • 1.4.14                                ...           2 years ago
  • 1.4.13                                ...           2 years ago
  • 1.4.12                                ...           2 years ago
  • 1.4.11                                ...           2 years ago
  • 1.4.10                                ...           2 years ago
  • 1.4.9                                ...           2 years ago
  • 1.4.8                                ...           2 years ago
  • 1.4.7                                ...           2 years ago
  • 1.4.6                                ...           2 years ago
  • 1.4.5                                ...           2 years ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.18                                ...           2 years ago
  • 1.2.17                                ...           2 years ago
  • 1.2.16                                ...           2 years ago
  • 1.2.15                                ...           2 years ago
  • 1.2.14                                ...           2 years ago
  • 1.2.13                                ...           2 years ago
  • 1.2.12                                ...           2 years ago
  • 1.2.11                                ...           2 years ago
  • 1.2.10                                ...           2 years ago
  • 1.2.9                                ...           2 years ago
  • 1.2.8                                ...           2 years ago
  • 1.2.7                                ...           2 years ago
  • 1.2.6                                ...           2 years ago
  • 1.2.5                                ...           2 years ago
  • 1.2.4                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 150
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |