Skip to content

Commit 3d9df52

Browse files
author
okunishinishi
committed
"first commit"
0 parents  commit 3d9df52

26 files changed

+570
-0
lines changed

.LICENSE.bud

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Bud file for LICENSE
3+
*/
4+
5+
"use strict";
6+
7+
var apeTmpl = require('ape-tmpl'),
8+
pkg = require('./package.json');
9+
10+
module.exports = apeTmpl.licenseBud({
11+
type: pkg.license,
12+
holder: pkg.repository.split(/\//).shift(),
13+
year: 2015
14+
});
15+
16+
if (!module.parent) {
17+
require('coz').render(__filename);
18+
}

.README.md.bud

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Bud file for README.md
3+
*/
4+
5+
"use strict";
6+
7+
var apeTmpl = require('ape-tmpl'),
8+
childProcess = require('child_process'),
9+
pkg = require('./package.json');
10+
11+
module.exports = apeTmpl.readmeMdBud({
12+
pkg: pkg,
13+
repo: pkg.repository,
14+
sections: 'doc/readme/*.md.hbs',
15+
badges: {
16+
travis: true,
17+
codeclimate: true,
18+
codeclimateCoverage: true,
19+
gemnasium: false,
20+
npm: true
21+
},
22+
overview:'doc/overview.md',
23+
links: null,
24+
vars: {}
25+
});
26+
27+
if (!module.parent) {
28+
require('coz').render(__filename);
29+
}

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
27+
node_modules
28+
29+
30+
.idea
31+
tmp

.npmingore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# node-waf configuration
22+
.lock-wscript
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directory
28+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
29+
node_modules
30+
31+
32+
.idea
33+
tmp
34+
35+
ci

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
node_js:
3+
- '0.11'
4+
before_install:
5+
install:
6+
- npm install
7+
before_script:
8+
- npm link .
9+
script:
10+
- ./ci/build.js
11+
- ./ci/test.js
12+
- ./ci/cover.js
13+
- ./ci/report.js

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 okunishinishi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
configgit
2+
==========
3+
4+
<!-- Badge Start -->
5+
<a name="badges"></a>
6+
7+
[![Build Status][bd_travis_shield_url]][bd_travis_url]
8+
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
9+
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
10+
[![npm Version][bd_npm_shield_url]][bd_npm_url]
11+
12+
[bd_repo_url]: https://github.com/okunishinishi/node-configgit
13+
[bd_travis_url]: http://travis-ci.org/okunishinishi/node-configgit
14+
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-configgit.svg?style=flat
15+
[bd_license_url]: https://github.com/okunishinishi/node-configgit/blob/master/LICENSE
16+
[bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-configgit
17+
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/okunishinishi/node-configgit.svg?style=flat
18+
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/okunishinishi/node-configgit.svg?style=flat
19+
[bd_gemnasium_url]: https://gemnasium.com/okunishinishi/node-configgit
20+
[bd_gemnasium_shield_url]: https://gemnasium.com/okunishinishi/node-configgit.svg
21+
[bd_npm_url]: http://www.npmjs.org/package/configgit
22+
[bd_npm_shield_url]: http://img.shields.io/npm/v/configgit.svg?style=flat
23+
[bd_bower_badge_url]: https://img.shields.io/bower/v/configgit.svg?style=flat
24+
25+
<!-- Badge End -->
26+
27+
28+
<!-- Description Start -->
29+
<a name="description"></a>
30+
31+
Run git config command
32+
33+
<!-- Description End -->
34+
35+
36+
<!-- Overview Start -->
37+
<a name="overview"></a>
38+
39+
40+
<!-- Overview End -->
41+
42+
43+
<!-- Sections Start -->
44+
<a name="sections"></a>
45+
46+
<!-- Section from "doc/readme/01.Installation.md.hbs" Start -->
47+
48+
<a name="section-doc-readme-01-installation-md"></a>
49+
Installation
50+
-----
51+
52+
```bash
53+
npm install configgit --save
54+
```
55+
56+
<!-- Section from "doc/readme/01.Installation.md.hbs" End -->
57+
58+
<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->
59+
60+
<a name="section-doc-readme-02-usage-md"></a>
61+
Usage
62+
---------
63+
64+
```javascript
65+
66+
```
67+
68+
<!-- Section from "doc/readme/02.Usage.md.hbs" End -->
69+
70+
71+
<!-- Sections Start -->
72+
73+
74+
<!-- LICENSE Start -->
75+
<a name="license"></a>
76+
77+
License
78+
-------
79+
This software is released under the [MIT License](https://github.com/okunishinishi/node-configgit/blob/master/LICENSE).
80+
81+
<!-- LICENSE End -->
82+
83+

ci/build.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Build this project.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
coz = require('coz');
13+
14+
apeTasking.runTasks('build', [
15+
function renderBud(callback) {
16+
coz.render([
17+
'.*.bud',
18+
'lib/.*.bud',
19+
'test/.*.bud'
20+
], callback);
21+
}
22+
], true);

ci/cover.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Measure test coverage.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
apeCovering = require('ape-covering');
13+
14+
apeTasking.runTasks('cover', [
15+
function measureCoverage(callback) {
16+
apeCovering.measureCoverage('ci/test.js', [], {
17+
dir: 'coverage'
18+
}, callback);
19+
}
20+
], true);

ci/release.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Release this package.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
apeReleasing = require('ape-releasing');
13+
14+
apeTasking.runTasks('release', [
15+
function releasePackage(callback) {
16+
apeReleasing.releasePackage({
17+
beforeRelease: [
18+
'./ci/build.js',
19+
'./ci/test.js'
20+
]
21+
}, callback);
22+
}
23+
], true);

ci/report.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Send reports.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
apeReporting = require('ape-reporting');
13+
14+
apeTasking.runTasks('report', [
15+
function sendToCodeclimate(callback) {
16+
apeReporting.sendToCodeclimate('coverage/lcov.info', callback);
17+
}
18+
], true);

ci/share.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Share this project.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
sharegit = require('sharegit');
13+
14+
apeTasking.runTasks('share', [
15+
function (callback) {
16+
sharegit(callback);
17+
}
18+
], true);

ci/test.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Run tests.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
apeTesting = require('ape-testing');
13+
14+
apeTasking.runTasks('test', [
15+
function runNodeunit(callback) {
16+
apeTesting.runNodeunit('test/*_test.js', callback);
17+
}
18+
], true);

ci/update.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Update project.
5+
*/
6+
7+
"use strict";
8+
9+
process.chdir(__dirname + '/..');
10+
11+
var apeTasking = require('ape-tasking'),
12+
apeUpdating = require('ape-updating');
13+
14+
apeTasking.runTasks('update', [
15+
function renderBud(callback) {
16+
apeUpdating.updateDependencies({}, callback);
17+
}
18+
], true);

doc/overview.md

Whitespace-only changes.

doc/readme/01.Installation.md.hbs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Installation
2+
-----
3+
4+
```bash
5+
npm install {{pkg.name}} --save
6+
```

doc/readme/02.Usage.md.hbs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Usage
2+
---------
3+
4+
```javascript
5+
{{{read 'example/example-usage.js'}}}
6+
```

example/example-usage.js

Whitespace-only changes.

lib/configgit.js

Whitespace-only changes.

0 commit comments

Comments
 (0)