Skip to content

Commit

Permalink
#30: cleanup react, keep only basic stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fxnn committed Jan 15, 2018
1 parent 6bb3b9c commit 52845db
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 1,231 deletions.
10 changes: 0 additions & 10 deletions webapp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# css files (we're using sass, css is always auto generated)
src/**/*.css
90 changes: 0 additions & 90 deletions webapp/config/env.js

This file was deleted.

1 change: 0 additions & 1 deletion webapp/config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module.exports = {
appIndexJs: resolveApp('src/index.js'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
yarnLockFile: resolveApp('yarn.lock'),
testsSetup: resolveApp('src/setupTests.js'),
appNodeModules: resolveApp('node_modules'),
publicUrl: getPublicUrl(resolveApp('package.json')),
Expand Down
17 changes: 0 additions & 17 deletions webapp/config/polyfills.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
'use strict';

if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// inconsistent state due to an error, but it gets swallowed by a Promise,
// and the user has no idea what causes React's erratic future behavior.
require('promise/lib/rejection-tracking').enable();
window.Promise = require('promise/lib/es6-extensions.js');
}

// fetch() polyfill for making API calls.
require('whatwg-fetch');

// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
Object.assign = require('object-assign');

// In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet.
// We don't polyfill it in the browser--this is user's responsibility.
if (process.env.NODE_ENV === 'test') {
require('raf').polyfill(global);
}
Loading

0 comments on commit 52845db

Please sign in to comment.