Last active
December 23, 2016 03:28
-
-
Save calebeby/6570744d0450eac4020731345af01634 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
From d5eabe108b31308c204fea13008dc23aab08d0fd Mon Sep 17 00:00:00 2001 | |
From: Caleb Eby <[email protected]> | |
Date: Wed, 21 Dec 2016 14:39:18 -0800 | |
Subject: [PATCH] Merge boilerplate | |
--- | |
.travis.yml | 7 ++----- | |
README.md | 4 ++-- | |
index.js | 14 +++++++------- | |
package.json | 8 +++++--- | |
4 files changed, 16 insertions(+), 17 deletions(-) | |
diff --git a/.travis.yml b/.travis.yml | |
index e45c4e0..62c3b3b 100644 | |
--- a/.travis.yml | |
+++ b/.travis.yml | |
@@ -2,16 +2,13 @@ language: node_js | |
sudo: false | |
node_js: | |
- - "0.10" | |
- - "0.12" | |
- "4" | |
- - "5" | |
- "6" | |
after_success: | |
- npm run coverage | |
- - npm i coveralls | |
- - cat ./coverage/lcov.info | coveralls | |
+ - npm i codecov | |
+ - codecov -f coverage/coverage.json | |
notifications: | |
email: | |
diff --git a/README.md b/README.md | |
index d60ca7d..42cc5ef 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -10,7 +10,7 @@ Use JSTransformer Boilerplate to create and update transformers. | |
[Foo](http://example.com) support for [JSTransformers](http://github.com/jstransformers). | |
[](https://travis-ci.org/jstransformers/jstransformer-foo) | |
-[](https://coveralls.io/r/jstransformers/jstransformer-foo?branch=master) | |
+[](https://codecov.io/gh/jstransformers/jstransformer-foo) | |
[](http://david-dm.org/jstransformers/jstransformer-foo) | |
[](https://www.npmjs.org/package/jstransformer-foo) | |
@@ -21,7 +21,7 @@ Use JSTransformer Boilerplate to create and update transformers. | |
## API | |
```js | |
-var foo = require('jstransformer')(require('jstransformer-foo')) | |
+var foo = require('jstransformer')(require('jstransformer-foo')); | |
foo.render('blah').body | |
//=> 'blah' | |
diff --git a/index.js b/index.js | |
index ad74473..3b56292 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -1,9 +1,9 @@ | |
-'use strict'; | |
+'use strict' | |
-exports.name = 'foo'; | |
-exports.inputFormats = ['foo', 'foobar']; | |
-exports.outputFormat = 'html'; | |
+exports.name = 'foo' | |
+exports.inputFormats = ['foo', 'foobar'] | |
+exports.outputFormat = 'html' | |
-exports.render = function (str, options) { | |
- return str; | |
-}; | |
+exports.render = function (str) { | |
+ return str | |
+} | |
diff --git a/package.json b/package.json | |
index c7481fa..6de0c05 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -9,14 +9,16 @@ | |
"index.js" | |
], | |
"devDependencies": { | |
- "test-jstransformer": "^1.0.0" | |
+ "test-jstransformer": "^1.0.0", | |
+ "xo": "^0.17.1" | |
}, | |
"scripts": { | |
"coverage": "test-jstransformer coverage", | |
- "test": "test-jstransformer" | |
+ "test": "test-jstransformer", | |
+ "posttest": "xo --space --no-semicolon index.js" | |
}, | |
"engines": { | |
- "node": ">=0.10.36" | |
+ "node": ">=4" | |
}, | |
"repository": { | |
"type": "git", | |
-- | |
2.11.0 | |
This file contains hidden or 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
From d5eabe108b31308c204fea13008dc23aab08d0fd Mon Sep 17 00:00:00 2001 | |
From: Caleb Eby <[email protected]> | |
Date: Wed, 21 Dec 2016 14:39:18 -0800 | |
Subject: [PATCH] Merge boilerplate | |
--- | |
.travis.yml | 7 ++----- | |
README.md | 4 ++-- | |
index.js | 14 +++++++------- | |
package.json | 8 +++++--- | |
4 files changed, 16 insertions(+), 17 deletions(-) | |
diff --git a/.travis.yml b/.travis.yml | |
index e45c4e0..62c3b3b 100644 | |
--- a/.travis.yml | |
+++ b/.travis.yml | |
@@ -2,16 +2,13 @@ language: node_js | |
sudo: false | |
node_js: | |
- - "0.10" | |
- - "0.12" | |
- "4" | |
- - "5" | |
- "6" | |
after_success: | |
- npm run coverage | |
- - npm i coveralls | |
- - cat ./coverage/lcov.info | coveralls | |
+ - npm i codecov | |
+ - codecov -f coverage/coverage.json | |
notifications: | |
email: | |
diff --git a/README.md b/README.md | |
index d60ca7d..42cc5ef 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -10,7 +10,7 @@ Use JSTransformer Boilerplate to create and update transformers. | |
[Foo](http://example.com) support for [JSTransformers](http://github.com/jstransformers). | |
[](https://travis-ci.org/jstransformers/jstransformer-foo) | |
-[](https://coveralls.io/r/jstransformers/jstransformer-foo?branch=master) | |
+[](https://codecov.io/gh/jstransformers/jstransformer-foo) | |
[](http://david-dm.org/jstransformers/jstransformer-foo) | |
[](https://www.npmjs.org/package/jstransformer-foo) | |
@@ -21,7 +21,7 @@ Use JSTransformer Boilerplate to create and update transformers. | |
## API | |
```js | |
-var foo = require('jstransformer')(require('jstransformer-foo')) | |
+var foo = require('jstransformer')(require('jstransformer-foo')); | |
foo.render('blah').body | |
//=> 'blah' | |
diff --git a/index.js b/index.js | |
index ad74473..3b56292 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -1,9 +1,9 @@ | |
-'use strict'; | |
+'use strict' | |
-exports.name = 'foo'; | |
-exports.inputFormats = ['foo', 'foobar']; | |
-exports.outputFormat = 'html'; | |
+exports.name = 'foo' | |
+exports.inputFormats = ['foo', 'foobar'] | |
+exports.outputFormat = 'html' | |
-exports.render = function (str, options) { | |
- return str; | |
-}; | |
+exports.render = function (str) { | |
+ return str | |
+} | |
diff --git a/package.json b/package.json | |
index c7481fa..6de0c05 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -9,14 +9,16 @@ | |
"index.js" | |
], | |
"devDependencies": { | |
- "test-jstransformer": "^1.0.0" | |
+ "test-jstransformer": "^1.0.0", | |
+ "xo": "^0.17.1" | |
}, | |
"scripts": { | |
"coverage": "test-jstransformer coverage", | |
- "test": "test-jstransformer" | |
+ "test": "test-jstransformer", | |
+ "posttest": "xo --space --no-semicolon index.js" | |
}, | |
"engines": { | |
- "node": ">=0.10.36" | |
+ "node": ">=4" | |
}, | |
"repository": { | |
"type": "git", | |
-- | |
2.11.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment