gd-configs
A package with most of my configs
Last updated 3 months ago by gabrielduartem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gd-configs 
SYNC missed versions from official npm registry.

gd-configs

Package with my personal configs for various projects


Build Status version downloads MIT License

PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

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 gd-configs

The problem

I have some open source projects which share most of the same config for building, linting, etc, so I have to practically copy/paste the same files over and over again. It's even worse when I want to add a new config, like a new eslint rule or something like that, because I have to go over all the repos and change the config there.

This solution

With this package, I group all of my most common configs for my projects, and on the projects which needs the configs, I just require this package, so I don't have to copy/paste the same configs over and over, and staying up-to-date with changes is a breeze, as I just have to add the new config on this package, and then install the updated version where is needed.

Usage

.eslintrc.js

The config you need to require depends on the type of the project, so you need to export one of the following on your .eslintrc.js file:

module.exports = require('gd-configs/eslint')
module.exports = require('gd-configs/eslint/web')
module.exports = require('gd-configs/eslint/ts')
module.exports = require('gd-configs/eslint/ts/web')

.prettierrc.js

module.exports = require('gd-configs/prettier')

tsconfig.json

For node projects:

{
  "extends": "./node_modules/gd-configs/typescript/base.json"
}

For web projects:

{
  "extends": "./node_modules/gd-configs/typescript/web.json"
}

release.config.js

For semantic-release configs, add the following:

module.exports = require('gd-configs/semantic-release')

LICENSE

MIT

Current Tags

  • 6.1.2                                ...           latest (3 months ago)

27 Versions

  • 6.1.2                                ...           3 months ago
  • 6.1.1                                ...           3 months ago
  • 6.1.0                                ...           3 months ago
  • 6.0.3                                ...           5 months ago
  • 6.0.2                                ...           6 months ago
  • 6.0.1                                ...           6 months ago
  • 6.0.0                                ...           6 months ago
  • 5.0.0                                ...           6 months ago
  • 4.0.0                                ...           6 months ago
  • 3.1.2                                ...           7 months ago
  • 3.1.1                                ...           7 months ago
  • 3.1.0                                ...           7 months ago
  • 3.0.0                                ...           7 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.0.10                                ...           8 months ago
  • 1.0.9                                ...           10 months ago
  • 1.0.8                                ...           10 months ago
  • 1.0.7                                ...           10 months ago
  • 1.0.6                                ...           10 months ago
  • 1.0.5                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.0.1                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 54
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |