Skip to content

Commit

Permalink
start playing with flow - waiting for the dealbreakers: facebook/flow#51
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoopman committed Nov 20, 2014
1 parent 51d0a2a commit b764b8f
Show file tree
Hide file tree
Showing 8 changed files with 389 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ignore]
/home/thomas/Workspace/boilerplate-webpack-react/node_modules/flow-bin/vendor
/home/thomas/Workspace/boilerplate-webpack-react/app/images

[include]
/home/thomas/Workspace/boilerplate-webpack-react/app/images/jsx
/home/thomas/Workspace/boilerplate-webpack-react/server
7 changes: 4 additions & 3 deletions app/jsx/app.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const React = require('react');
const HelloWorld = require('./components/HelloWorld.react');
/* @flow */
var React = require('react');
var HelloWorld = require('./components/HelloWorld.react');


const render = () => React.renderComponent(
var render = () => React.render(
<HelloWorld />,
document.body
);
Expand Down
5 changes: 3 additions & 2 deletions app/jsx/components/HelloWorld.react.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const React = require('react');
/* @flow */
var React = require('react');

const exampleImage = require('../../images/example.jpg');
var exampleImage = require('../../images/example.jpg');


class _HelloWorld {
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"good": "^4.0.0",
"hapi": "^7.5.2",
"extract-text-webpack-plugin": "^0.3.4",
"good-console": "^2.0.1"
"good-console": "^2.0.1",
"flow-bin": "^0.1.1"
},
"author": "Thomas Coopman @tcoopman",
"repository": {
Expand All @@ -37,5 +38,9 @@
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
]
],
"dependencies": {
"react": "^0.12.1",
"jsx-loader": "^0.12.2"
}
}
1 change: 1 addition & 0 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* @flow */
'use strict';
var Hapi = require('hapi');

Expand Down
Loading

0 comments on commit b764b8f

Please sign in to comment.