Permalink
Browse files

Basic flow configuration

  • Loading branch information...
lucapette committed Jan 23, 2017
1 parent 8ab59d9 commit 3836fc21232204f4dd538c6ad00c15ddf798764c
Showing with 24 additions and 4 deletions.
  1. +0 −1 .babelrc
  2. +8 −0 .flowconfig
  3. +4 −1 package.json
  4. +6 −1 src/App.js
  5. +2 −1 webpack.config.js
  6. +4 −0 yarn.lock
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,8 @@
[ignore]
.*/node_modules/*
[include]
[libs]
[options]
View
@@ -10,15 +10,18 @@
"babel-cli": "^6.22.2",
"babel-core": "^6.22.1",
"babel-loader": "^6.2.10",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-react": "^6.22.0",
"flow-bin": "^0.38.0",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"webpack": "2",
"webpack-dev-server": "2"
},
"scripts": {
"start": "node_modules/.bin/webpack-dev-server --open",
"build": "node_modules/.bin/webpack --config webpack.config.js"
"build": "node_modules/.bin/webpack --config webpack.config.js",
"flow": "flow; test $? -eq 0 -o $? -eq 2"
}
}
View
@@ -1,7 +1,12 @@
//@flow
import React from 'react';
import ReactDOM from 'react-dom';
function world(): string {
return "world"
}
ReactDOM.render(
<h1>Hello, world!</h1>,
<h1>Hello {world()}</h1>,
document.getElementById('root')
);
View
@@ -13,7 +13,8 @@ const config = {
test: /\.(js|jsx)$/,
loader: 'babel-loader',
options: {
presets: ["es2015", "react"]
presets: ["es2015", "react"],
plugins: ["transform-flow-strip-types"]
},
exclude: [/node_modules/]
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 3836fc2

Please sign in to comment.