Skip to content

Commit

Permalink
Attempt at travis integration
Browse files Browse the repository at this point in the history
Also pulled eslint config up to the top-level and added some README badges.
  • Loading branch information
gigabo committed Feb 11, 2016
1 parent 26742d0 commit dbf2bcf
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 112 deletions.
109 changes: 109 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"globals": {
"__LOGGER__": false,
"SERVER_SIDE": false
},
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jasmine": true
},
"plugins": [
"react"
],
"rules": {
"camelcase": 0,
"comma-dangle": [
2,
"always-multiline"
],
"comma-spacing": 0,
"consistent-return": 2,
"constructor-super": 2,
"curly": [
2,
"multi-line"
],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": [
2,
"smart"
],
"guard-for-in": 2,
"handle-callback-err": 0,
"indent": [
2,
"tab"
],
"key-spacing": 0,
"linebreak-style": [
2,
"unix"
],
"new-cap": 0,
"new-parens": 0,
"no-cond-assign": [
2,
"except-parens"
],
"no-constant-condition": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extra-bind": 2,
"no-extra-semi": 0,
"no-loop-func": 2,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 0,
"no-new-func": 2,
"no-obj-calls": 2,
"no-path-concat": 2,
"no-process-env": 2,
"no-process-exit": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 0,
"no-shadow": 0,
"no-spaced-func": 0,
"no-this-before-super": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
"no-unused-expressions": 0,
"no-unused-vars": 2,
"no-use-before-define": 0,
"no-wrap-func": 0,
"quotes": [
0,
"double"
],
"semi": [
0,
"always"
],
"semi-spacing": 2,
"space-infix-ops": 0,
"space-return-throw-case": 2,
"space-unary-ops": 2,
"strict": [
2,
"never"
],
"valid-typeof": 2,
"yoda": 0
}
}
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
language: node_js

node_js:
- "4.3.2"

before_script:
- npm install -g gulp

script: gulp travis-ci
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
react-server monorepo. (see: [README](packages/react-server/README.md))
# react-server monorepo [![Build Status][build-badge-img][build-url]

(see: [README](packages/react-server/README.md))

[build-badge-img]: https://travis-ci.org/redfin/react-server.png?branch=master
[build-url]: https://travis-ci.org/robatron/gulp-chug
15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var gulp = require('gulp');
var chug = require('gulp-chug');

gulp.task('travis-ci', ['test', 'eslint']);

// Pass-through tasks.
[
'test',
'eslint',
].map(task => {
gulp.task(task, () => gulp
.src('./packages/*/gulpfile.js', {read: false})
.pipe(chug({ tasks: [task] }))
)
});
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"private": true,
"devDependencies": {
"eslint": "0.24.1",
"eslint-plugin-react": "3.0.0",
"gulp": "3.9.1",
"gulp-chug": "0.5.1",
"lerna": "^1.1.0"
}
}
}
6 changes: 5 additions & 1 deletion packages/react-server/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# react-server
# react-server [![NPM version][npm-badge-img]][npm-url]

react-server is an [Express](http://expressjs.com/) [middleware](http://expressjs.com/guide/using-middleware.html)
for serving universal (isomorphic) JavaScript applications built with [React](https://facebook.github.io/react/)
based on the [Flux pattern](https://facebook.github.io/flux/docs/overview.html).
Expand Down Expand Up @@ -160,3 +161,6 @@ We welcome contributions to react-server! To contribute, follow these steps:
## What is "triton"? Why do I see that in code comments?

Back when we started this project, we came up with a great name -- `triton` -- and we started using it internally. And then it took us forever to get around to making the source code public. And then [Joyent](https://www.joyent.com) released a product called `triton` and stole our thunder, so we had to go with `react-server` instead (a terrible, terrible tragedy, we know). It has always seemed like a preeeety big coincidence to us that they were first to market with a product named `triton`, and they are also one floor above our San Francisco engineering office...

[npm-badge-img]: https://badge.fury.io/js/react-server.png
[npm-url]: https://npmjs.org/package/react-server
109 changes: 0 additions & 109 deletions packages/react-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,114 +67,5 @@
"path-to-regexp": "1.0.1",
"webpack": "1.4.13",
"zombie": "4.1.0"
},
"eslintConfig": {
"globals": {
"__LOGGER__": false,
"SERVER_SIDE": false
},
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jasmine": true
},
"plugins": [
"react"
],
"rules": {
"camelcase": 0,
"comma-dangle": [
2,
"always-multiline"
],
"comma-spacing": 0,
"consistent-return": 2,
"constructor-super": 2,
"curly": [
2,
"multi-line"
],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": [
2,
"smart"
],
"guard-for-in": 2,
"handle-callback-err": 0,
"indent": [
2,
"tab"
],
"key-spacing": 0,
"linebreak-style": [
2,
"unix"
],
"new-cap": 0,
"new-parens": 0,
"no-cond-assign": [
2,
"except-parens"
],
"no-constant-condition": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extra-bind": 2,
"no-extra-semi": 0,
"no-loop-func": 2,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 0,
"no-new-func": 2,
"no-obj-calls": 2,
"no-path-concat": 2,
"no-process-env": 2,
"no-process-exit": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 0,
"no-shadow": 0,
"no-spaced-func": 0,
"no-this-before-super": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
"no-unused-expressions": 0,
"no-unused-vars": 2,
"no-use-before-define": 0,
"no-wrap-func": 0,
"quotes": [
0,
"double"
],
"semi": [
0,
"always"
],
"semi-spacing": 2,
"space-infix-ops": 0,
"space-return-throw-case": 2,
"space-unary-ops": 2,
"strict": [
2,
"never"
],
"valid-typeof": 2,
"yoda": 0
}
}
}

0 comments on commit dbf2bcf

Please sign in to comment.