https://github.com/nativecode-dev/gulp-configly
Node module to merge multiple JSON files into a single configuration object. The module is primarily used to join multiple configurations, usually for gulp. However, it can be used without gulp.
https://github.com/nativecode-dev/gulp-configly
Last synced: 8 days ago
JSON representation
Node module to merge multiple JSON files into a single configuration object. The module is primarily used to join multiple configurations, usually for gulp. However, it can be used without gulp.
- Host: GitHub
- URL: https://github.com/nativecode-dev/gulp-configly
- Owner: nativecode-dev
- License: mit
- Created: 2017-02-11T22:40:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T23:35:43.000Z (over 8 years ago)
- Last Synced: 2025-03-06T13:21:52.553Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-configly
[](https://www.npmjs.com/package/gulp-configly)
[](https://travis-ci.org/nativecode-dev/gulp-configly)
[](https://build.nativecode.com/viewType.html?buildTypeId=gulpconfigly_continuous&guest=1)
[](https://www.npmjs.com/package/gulp-configly)
[](https://www.npmjs.com/package/gulp-configly)
Node module to merge multiple JSON files into a single configuration object. The module is primarily
used to join multiple configurations, usually for `gulp`. However, it can be used without `gulp`.
## Usage
```javascript
const configly = require('gulp-configly')
const config = configly(__dirname, 'package.json', 'someother.json')
```
When used with `gulp-load-plugins`, you can use it thusly:
```javascript
const gulp = require('gulp')
const plugins = require('gulp-load-plugins')
const $ = plugins.configly(__dirname, 'package.json')
```
The above will automatically load `gulpfile.json` if it exists in the base directory as well as create
a `package` property containing the `package.json` configuration.