Skip to content

Commit e0ebf60

Browse files
Merge pull request frig-js#48 from jbinto/circleci
Add CircleCI
2 parents 8796b0c + a6b2041 commit e0ebf60

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Frig
22

3+
[![Circle CI](https://circleci.com/gh/frig-js/frig/tree/develop.svg?style=svg)](https://circleci.com/gh/frig-js/frig/tree/develop)
4+
35
![Randy From Trailer Park Boys Saying Frig Off](img/randy_trailer_park_boys_frig_off.jpg)
46

57
React Forms made easy / Developed at [TouchBistro](http://touchbistro.com/) in Toronto.
@@ -8,4 +10,4 @@ React Forms made easy / Developed at [TouchBistro](http://touchbistro.com/) in T
810

911
## License
1012

11-
Frig is licensed under the [MIT license](https://raw.githubusercontent.com/TouchBistro/frig/master/LICENSE).
13+
Frig is licensed under the [MIT license](https://raw.githubusercontent.com/TouchBistro/frig/master/LICENSE).

circle.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
machine:
2+
node:
3+
version: v5.7.0
4+
5+
test:
6+
pre:
7+
- npm run lint:failfast

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"scripts": {
1111
"test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js './test/**/*.js'",
1212
"test:watch": "npm run test -- --watch --watch-extensions js",
13-
"lint": "eslint src/ || true",
14-
"lint-fail-fast": "eslint .",
13+
"lint": "eslint src/ test/ || true",
14+
"lint:failfast": "eslint src/ test/",
1515
"preversion": "./scripts/preversion.sh",
1616
"version": "./scripts/version.sh",
1717
"postversion": "./scripts/publish_docs.sh && git push && git push --tags"

src/higher_order_components/higher_order_component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import delegatesPublicFunctions from './delegates_public_functions.js'
77
* for accessing the child component and the options argument to the higher
88
* order function.
99
*/
10-
const HigherOrderComponent = () => hocClass => opts => ComponentClass =>
10+
const hoc = () => hocClass => opts => ComponentClass =>
1111
@delegatesPublicFunctions(opts)
1212
class HigherOrderComponent extends hocClass {
1313
static originalClass = (
@@ -23,4 +23,4 @@ const HigherOrderComponent = () => hocClass => opts => ComponentClass =>
2323
}
2424
}
2525

26-
export default HigherOrderComponent
26+
export default hoc

0 commit comments

Comments
 (0)