This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
913 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.DS_Store | ||
.grunt | ||
|
||
# node-waf configuration | ||
.hg | ||
.idea | ||
.lock-wscript | ||
.svn | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
_notes | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
coverage | ||
lib-cov | ||
logs | ||
node_modules | ||
pids | ||
test/output | ||
desktop.ini | ||
Thumbs.db | ||
|
||
*.cfg | ||
*.dmp | ||
*.log | ||
*.pid | ||
*.seed | ||
*.sublime-project | ||
*.sublime-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"curly": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"freeze": true, | ||
"funcscope": true, | ||
"futurehostile": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"maxdepth": 3, | ||
"newcap": false, | ||
"noarg": true, | ||
"nocomma": true, | ||
"nonbsp": true, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": true, | ||
|
||
"eqnull": true, | ||
"laxcomma": false, | ||
"strict": true, | ||
"validthis": true, | ||
|
||
"devel": true, | ||
"mocha": true, | ||
"node": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.gitattributes | ||
.gitignore | ||
.gitkeep | ||
|
||
.travis.yml | ||
|
||
*.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- 'node' | ||
- 'iojs' | ||
- '0.12' | ||
- '0.10' | ||
|
||
script: 'npm run test-ci' | ||
after_script: 'cat ./coverage/lcov.info | coveralls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Confirge | ||
|
||
[![NPM Version][npm-img]][npm-url] | ||
[![Linux Build][travis-img]][travis-url] | ||
[![Windows Build][appveyor-img]][appveyor-url] | ||
[![Test Coverage][coveralls-img]][coveralls-url] | ||
[![Dependency Status][david-img]][david-url] | ||
|
||
**Flexible configuration!** | ||
|
||
## Installation | ||
```sh | ||
npm install --save confirge | ||
``` | ||
|
||
## How to use | ||
```js | ||
var confirge = require('confirge'), | ||
config; | ||
|
||
// basic usage, load from a file | ||
config = confirge('config.yml'); | ||
|
||
// load from a file, returned by a function | ||
config = confirge(function() | ||
{ | ||
return 'config.json'; | ||
}); | ||
|
||
// extend objects | ||
config = confirge.extend(config, | ||
{ | ||
'example': '%var1% and %var2%' | ||
}); | ||
|
||
// will replace vars inside the config obj, eg. %var1%, %var2% | ||
// this will result in { 'example': 'value1 and value2' } | ||
config = confirge.replace(config, | ||
{ | ||
'var1': 'value1', | ||
'var2': 'value2' | ||
}); | ||
``` | ||
|
||
[npm-img]: https://badge.fury.io/js/confirge.svg | ||
[npm-url]: https://www.npmjs.com/package/confirge | ||
[travis-img]: https://img.shields.io/travis/roeldev/confirge/master.svg?label=linux | ||
[travis-url]: https://travis-ci.org/roeldev/confirge | ||
[appveyor-img]: https://img.shields.io/appveyor/ci/roeldev/confirge/master.svg?label=windows | ||
[appveyor-url]: https://ci.appveyor.com/project/roeldev/confirge | ||
[coveralls-img]: https://img.shields.io/coveralls/roeldev/confirge/master.svg | ||
[coveralls-url]: https://coveralls.io/r/roeldev/confirge?branch=master | ||
[david-img]: https://david-dm.org/roeldev/confirge.svg | ||
[david-url]: https://david-dm.org/roeldev/confirge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
environment: | ||
matrix: | ||
- nodejs_version: "0.10" | ||
- nodejs_version: "0.12" | ||
- nodejs_version: "1.0" | ||
|
||
platform: | ||
- x86 | ||
- x64 | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- npm install | ||
|
||
test_script: | ||
- node --version | ||
- npm --version | ||
- npm run test-ci | ||
|
||
build: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
start ConEmu64 /cmdlist "npm run start" -cur_console:fn ^|^|^| cmd -cur_console:s2T60V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* confirge | gulpfile.js | ||
* file version: 0.00.001 | ||
*/ | ||
'use strict'; | ||
|
||
var Gulp = require('gulp'), | ||
GulpJsHint = require('gulp-jshint'), | ||
GulpMocha = require('gulp-mocha'), | ||
RunSequence = require('run-sequence'); | ||
|
||
var JS_SRC = ['gulpfile.js', 'lib/**/*.js', 'test/*.js']; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
Gulp.task('lint', function() | ||
{ | ||
return Gulp.src(JS_SRC) | ||
.pipe( GulpJsHint() ) | ||
.pipe( GulpJsHint.reporter('jshint-stylish') ); | ||
}); | ||
|
||
Gulp.task('test', function() | ||
{ | ||
return Gulp.src('test/*.js', { 'read': false }) | ||
.pipe( GulpMocha() ); | ||
}); | ||
|
||
Gulp.task('dev', function() | ||
{ | ||
for(var $i = 0; $i < 30; $i++) | ||
{ | ||
console.log(''); | ||
} | ||
|
||
RunSequence('lint', 'test'); | ||
}); | ||
|
||
Gulp.task('watch', function() | ||
{ | ||
Gulp.watch(JS_SRC, ['dev']); | ||
}); |
Oops, something went wrong.