-
Notifications
You must be signed in to change notification settings - Fork 0
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
Moshe Kolodny
committed
Jun 10, 2015
0 parents
commit 508fdc3
Showing
9 changed files
with
97 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 @@ | ||
node_modules/ | ||
coverage/ |
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,3 @@ | ||
node_modules/ | ||
test/ | ||
coverage/ |
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,9 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.11" | ||
- "0.12" | ||
- "iojs" | ||
script: "npm run-script test-travis" | ||
# Send coverage data to Coveralls | ||
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" |
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,29 @@ | ||
node-sample-plugin | ||
=== | ||
|
||
[![Gitter][gitter-image]][gitter-url] | ||
[![NPM version][npm-image]][npm-url] | ||
[![Build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![Downloads][downloads-image]][downloads-url] | ||
|
||
Does awesome stuff | ||
|
||
#### Usage | ||
|
||
```js | ||
var nodeSamplePlugin = require('node-sample-plugin'); | ||
console.log( nodeSamplePlugin('yay!') ); | ||
``` | ||
|
||
|
||
[npm-image]: https://img.shields.io/npm/v/node-sample-plugin.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/node-sample-plugin | ||
[travis-image]: https://img.shields.io/travis/kolodny/node-sample-plugin.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/kolodny/node-sample-plugin | ||
[coveralls-image]: https://img.shields.io/coveralls/kolodny/node-sample-plugin.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/kolodny/node-sample-plugin | ||
[downloads-image]: http://img.shields.io/npm/dm/node-sample-plugin.svg?style=flat-square | ||
[downloads-url]: https://npmjs.org/package/node-sample-plugin | ||
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg | ||
[gitter-url]: https://gitter.im/kolodny/node-sample-plugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge |
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 @@ | ||
module.exports = require('./lib'); |
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 @@ | ||
// var fs = require('fs'); | ||
|
||
module.exports = nodeSamplePlugin; | ||
|
||
function nodeSamplePlugin(str) { | ||
return str.toString().toUpperCase(); | ||
} |
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,26 @@ | ||
{ | ||
"name": "node-sample-plugin", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha", | ||
"test-cov": "node ./node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- --reporter dot", | ||
"test-travis": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --reporter spec" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kolodny/node-sample-plugin.git" | ||
}, | ||
"author": "Moshe Kolodny", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/kolodny/node-sample-plugin/issues" | ||
}, | ||
"homepage": "https://github.com/kolodny/node-sample-plugin#readme", | ||
"devDependencies": { | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.15", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
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,8 @@ | ||
var assert = require('assert'); | ||
var nodeSamplePlugin = require('..'); | ||
|
||
describe('node-sample-plugin', function() { | ||
it('does awesome stuff', function() { | ||
assert.equal( nodeSamplePlugin('yay!'), 'YAY!' ); | ||
}); | ||
}); |