Skip to content

Commit c5f4378

Browse files
author
Ives van Hoorne
committed
Move everything to client
0 parents  commit c5f4378

File tree

115 files changed

+24078
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+24078
-0
lines changed

.eslintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"env": {
5+
"browser": true,
6+
"node": true,
7+
"mocha": true,
8+
"es6": true
9+
},
10+
"rules": {
11+
"react/jsx-filename-extension": 0,
12+
"react/sort-comp": 0,
13+
"import/no-extraneous-dependencies": 0
14+
}
15+
}

.flowconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[ignore]
2+
.*/node_modules/fbjs/.*
3+
4+
[include]
5+
6+
[libs]
7+
flow-typed/
8+
9+
[options]
10+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue

First_Concept.sketch

240 KB
Binary file not shown.

README.md

Lines changed: 920 additions & 0 deletions
Large diffs are not rendered by default.

config/babel.dev.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
var path = require('path');
2+
3+
module.exports = {
4+
// Don't try to find .babelrc because we want to force this configuration.
5+
babelrc: false,
6+
// This is a feature of `babel-loader` for webpack (not Babel itself).
7+
// It enables caching results in OS temporary directory for faster rebuilds.
8+
cacheDirectory: true,
9+
presets: [
10+
// Latest stable ECMAScript features
11+
require.resolve('babel-preset-latest'),
12+
// JSX, Flow
13+
require.resolve('babel-preset-react')
14+
],
15+
plugins: [
16+
// To split lodash modules
17+
require.resolve('babel-plugin-lodash'),
18+
// class { handleClick = () => { } }
19+
require.resolve('babel-plugin-transform-class-properties'),
20+
// { ...todo, completed: true }
21+
require.resolve('babel-plugin-transform-object-rest-spread'),
22+
// function* () { yield 42; yield 43; }
23+
[require.resolve('babel-plugin-transform-regenerator'), {
24+
// Async functions are converted to generators by babel-preset-latest
25+
async: false
26+
}],
27+
// Polyfills the runtime needed for async/await and generators
28+
[require.resolve('babel-plugin-transform-runtime'), {
29+
helpers: false,
30+
polyfill: false,
31+
regenerator: true,
32+
// Resolve the Babel runtime relative to the config.
33+
// You can safely remove this after ejecting:
34+
moduleName: path.dirname(require.resolve('babel-runtime/package'))
35+
}],
36+
require.resolve('react-hot-loader/babel'),
37+
]
38+
};

config/babel.prod.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
var path = require('path');
2+
3+
module.exports = {
4+
// Don't try to find .babelrc because we want to force this configuration.
5+
babelrc: false,
6+
presets: [
7+
// Latest stable ECMAScript features
8+
require.resolve('babel-preset-latest'),
9+
// JSX, Flow
10+
require.resolve('babel-preset-react')
11+
],
12+
plugins: [
13+
// To split lodash modules
14+
require.resolve('babel-plugin-lodash'),
15+
// class { handleClick = () => { } }
16+
require.resolve('babel-plugin-transform-class-properties'),
17+
// { ...todo, completed: true }
18+
require.resolve('babel-plugin-transform-object-rest-spread'),
19+
// function* () { yield 42; yield 43; }
20+
[require.resolve('babel-plugin-transform-regenerator'), {
21+
// Async functions are converted to generators by babel-preset-latest
22+
async: false
23+
}],
24+
// Polyfills the runtime needed for async/await and generators
25+
[require.resolve('babel-plugin-transform-runtime'), {
26+
helpers: false,
27+
polyfill: false,
28+
regenerator: true,
29+
// Resolve the Babel runtime relative to the config.
30+
// You can safely remove this after ejecting:
31+
moduleName: path.dirname(require.resolve('babel-runtime/package'))
32+
}],
33+
// Optimization: hoist JSX that never changes out of render()
34+
// Disabled because of issues:
35+
// * https://github.com/facebookincubator/create-react-app/issues/525
36+
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
37+
// TODO: Enable again when these issues are resolved.
38+
// require.resolve('babel-plugin-transform-react-constant-elements')
39+
]
40+
};

config/env.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be
2+
// injected into the application via DefinePlugin in Webpack configuration.
3+
4+
var REACT_APP = /^REACT_APP_/i;
5+
var NODE_ENV = JSON.stringify(process.env.NODE_ENV || 'development');
6+
7+
module.exports = Object
8+
.keys(process.env)
9+
.filter(key => REACT_APP.test(key))
10+
.reduce((env, key) => {
11+
env['process.env.' + key] = JSON.stringify(process.env[key]);
12+
return env;
13+
}, {
14+
'process.env.NODE_ENV': NODE_ENV
15+
});

config/flow/css.js.flow

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// @flow

config/flow/file.js.flow

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// @flow
2+
declare export default string;

config/jest/CSSStub.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

0 commit comments

Comments
 (0)