Skip to content

Commit

Permalink
feat: added shortcuts for requiring configs
Browse files Browse the repository at this point in the history
Now you can accesss configs for babel, eslint, prettier and semver just by requiring
"gd-scripts/{config}.js"
  • Loading branch information
GabeDuarteM committed Aug 16, 2018
1 parent 40b94cb commit 9d2c078
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ So, if we were to do this for ESLint, you could create an `.eslintrc.js` with th
contents of:

```
module.exports = require("gd-scripts/build/config/eslintrc")
module.exports = require("gd-scripts/eslint")
```

> Note: `gd-scripts` intentionally does not merge things for you when you start
Expand Down
1 change: 1 addition & 0 deletions babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/config/babelrc")
1 change: 1 addition & 0 deletions eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/config/eslintrc")
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
"gd-scripts": "build/index.js"
},
"files": [
"build"
"build",
"babel.js",
"eslint.js",
"prettier.js",
"semver.js"
],
"resolutions": {
"babel-core": "^7.0.0-bridge.0"
Expand Down
1 change: 1 addition & 0 deletions prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/config/prettierrc")
1 change: 1 addition & 0 deletions semver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./build/config/releaserc")

0 comments on commit 9d2c078

Please sign in to comment.