Skip to content

Commit

Permalink
Add webiny-react-rewired package to abstract away CRA rewiring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Dec 4, 2018
1 parent b681bf5 commit a5dfc8a
Show file tree
Hide file tree
Showing 24 changed files with 663 additions and 896 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"dependencies": {
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react-dom": "^16.4.0",
"react-scripts": "^2.1.1"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down
16 changes: 2 additions & 14 deletions packages/demo-admin/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
const overrideBabel = require("./overrides/babel");
const overrideSass = require("./overrides/sass");

module.exports = {
webpack(config) {
// Enable .babelrc in each monorepo package
overrideBabel(config.module.rules);

// Add proper includePaths
overrideSass(config);

return config;
}
};
// @flowIgnore
module.exports = require("webiny-react-rewired/config-overrides")();
43 changes: 0 additions & 43 deletions packages/demo-admin/overrides/babel.js

This file was deleted.

23 changes: 0 additions & 23 deletions packages/demo-cra/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions packages/demo-cra/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions packages/demo-cra/package.json

This file was deleted.

Binary file removed packages/demo-cra/public/favicon.ico
Binary file not shown.
40 changes: 0 additions & 40 deletions packages/demo-cra/public/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions packages/demo-cra/public/manifest.json

This file was deleted.

32 changes: 0 additions & 32 deletions packages/demo-cra/src/App.css

This file was deleted.

28 changes: 0 additions & 28 deletions packages/demo-cra/src/App.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/demo-cra/src/App.test.js

This file was deleted.

14 changes: 0 additions & 14 deletions packages/demo-cra/src/index.css

This file was deleted.

12 changes: 0 additions & 12 deletions packages/demo-cra/src/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/demo-cra/src/logo.svg

This file was deleted.

Loading

0 comments on commit a5dfc8a

Please sign in to comment.