-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move types definition into src folder and include them in the bu…
…ild. (#322)
- Loading branch information
Showing
97 changed files
with
252 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# babel-preset-webiny-app | ||
|
||
This preset contains our recommended set of plugins to use with Webiny apps: | ||
|
||
- react-hot-loader (will enable react hot reloading in development) | ||
- babel-plugin-emotion | ||
- babel-plugin-named-asset-import (to import svg files as React components) | ||
- @svgr/webpack (a loader to convert svg files to React components) | ||
- babel-plugin-lodash (for lodash and recompose tree shaking ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @flowIgnore | ||
module.exports = require("./src"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"private": true, | ||
"name": "babel-preset-webiny-app", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@svgr/webpack": "^4.1.0", | ||
"babel-plugin-emotion": "^10.0.4", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"babel-plugin-named-asset-import": "^0.2.3", | ||
"react-hot-loader": "^4.3.12" | ||
}, | ||
"scripts": { | ||
"build": "babel src -d ${DEST:-build} --source-maps --copy-files", | ||
"flow-copy-source": "flow-copy-source src ${DEST:-build}", | ||
"postbuild": "yarn flow-copy-source" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// @flowIgnore | ||
module.exports = function(api, opts, env) { | ||
const isDevelopment = env === "development"; | ||
|
||
return { | ||
plugins: [ | ||
isDevelopment && ["react-hot-loader/babel"], | ||
["babel-plugin-emotion", { autoLabel: true }], | ||
[ | ||
"babel-plugin-named-asset-import", | ||
{ | ||
loaderMap: { | ||
svg: { | ||
ReactComponent: "@svgr/webpack![path]" | ||
} | ||
} | ||
} | ||
], | ||
["babel-plugin-lodash", { id: ["lodash", "recompose"] }] | ||
].filter(Boolean) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
module.exports = { | ||
presets: ["babel-preset-react-app"], | ||
plugins: [["react-hot-loader/babel"], ["babel-plugin-lodash", { id: ["lodash", "recompose"] }]] | ||
presets: ["babel-preset-react-app", "babel-preset-webiny-app"] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// @flowIgnore | ||
module.exports = require("webiny-react-rewired/config-overrides")(); | ||
module.exports = require("webiny-react-rewired")(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
module.exports = { | ||
presets: ["babel-preset-react-app"], | ||
plugins: [ | ||
["react-hot-loader/babel"], | ||
["babel-plugin-emotion", { autoLabel: true }], | ||
[ | ||
"babel-plugin-named-asset-import", | ||
{ | ||
loaderMap: { | ||
svg: { | ||
ReactComponent: "@svgr/webpack![path]" | ||
} | ||
} | ||
} | ||
], | ||
["babel-plugin-lodash", { id: ["lodash", "recompose"] }] | ||
] | ||
presets: ["babel-preset-react-app", "babel-preset-webiny-app"] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.