From 6a9e5212d3b3eb8a3884bd3993ca834bcf7357cd Mon Sep 17 00:00:00 2001 From: thinkholic Date: Tue, 11 Aug 2020 21:06:48 +0530 Subject: [PATCH] Update FileSystem --- src/components/Button/{index.jsx => Button.js} | 0 src/components/Button/index.js | 1 + src/components/Card/{index.jsx => Card.js} | 0 src/components/Card/index.js | 1 + src/components/Checkbox/{index.jsx => Checkbox.js} | 0 src/components/Checkbox/index.js | 1 + src/components/File/{index.jsx => File.js} | 0 src/components/File/index.js | 1 + src/components/Image/{index.jsx => Image.js} | 0 src/components/Image/index.js | 1 + src/components/Input/{index.jsx => Input.js} | 0 src/components/Input/index.js | 1 + src/components/Radio/{index.jsx => Radio.js} | 0 src/components/Radio/index.js | 1 + src/components/Select/{index.jsx => Select.js} | 0 src/components/Select/index.js | 1 + src/components/Textarea/{index.jsx => Textarea.js} | 0 src/components/Textarea/index.js | 1 + .../Typography/{index.jsx => Typography.js} | 0 src/components/Typography/index.js | 1 + src/components/index.js | 10 +++++++++- webpack.config.js | 11 ++++++++++- 22 files changed, 29 insertions(+), 2 deletions(-) rename src/components/Button/{index.jsx => Button.js} (100%) create mode 100644 src/components/Button/index.js rename src/components/Card/{index.jsx => Card.js} (100%) create mode 100644 src/components/Card/index.js rename src/components/Checkbox/{index.jsx => Checkbox.js} (100%) create mode 100644 src/components/Checkbox/index.js rename src/components/File/{index.jsx => File.js} (100%) create mode 100644 src/components/File/index.js rename src/components/Image/{index.jsx => Image.js} (100%) create mode 100644 src/components/Image/index.js rename src/components/Input/{index.jsx => Input.js} (100%) create mode 100644 src/components/Input/index.js rename src/components/Radio/{index.jsx => Radio.js} (100%) create mode 100644 src/components/Radio/index.js rename src/components/Select/{index.jsx => Select.js} (100%) create mode 100644 src/components/Select/index.js rename src/components/Textarea/{index.jsx => Textarea.js} (100%) create mode 100644 src/components/Textarea/index.js rename src/components/Typography/{index.jsx => Typography.js} (100%) create mode 100644 src/components/Typography/index.js diff --git a/src/components/Button/index.jsx b/src/components/Button/Button.js similarity index 100% rename from src/components/Button/index.jsx rename to src/components/Button/Button.js diff --git a/src/components/Button/index.js b/src/components/Button/index.js new file mode 100644 index 0000000..efe8c80 --- /dev/null +++ b/src/components/Button/index.js @@ -0,0 +1 @@ +export { default } from './Button'; diff --git a/src/components/Card/index.jsx b/src/components/Card/Card.js similarity index 100% rename from src/components/Card/index.jsx rename to src/components/Card/Card.js diff --git a/src/components/Card/index.js b/src/components/Card/index.js new file mode 100644 index 0000000..6e2872d --- /dev/null +++ b/src/components/Card/index.js @@ -0,0 +1 @@ +export { default } from './Card'; \ No newline at end of file diff --git a/src/components/Checkbox/index.jsx b/src/components/Checkbox/Checkbox.js similarity index 100% rename from src/components/Checkbox/index.jsx rename to src/components/Checkbox/Checkbox.js diff --git a/src/components/Checkbox/index.js b/src/components/Checkbox/index.js new file mode 100644 index 0000000..6fb014c --- /dev/null +++ b/src/components/Checkbox/index.js @@ -0,0 +1 @@ +export { default } from './Checkbox'; \ No newline at end of file diff --git a/src/components/File/index.jsx b/src/components/File/File.js similarity index 100% rename from src/components/File/index.jsx rename to src/components/File/File.js diff --git a/src/components/File/index.js b/src/components/File/index.js new file mode 100644 index 0000000..751a562 --- /dev/null +++ b/src/components/File/index.js @@ -0,0 +1 @@ +export { default } from './File'; \ No newline at end of file diff --git a/src/components/Image/index.jsx b/src/components/Image/Image.js similarity index 100% rename from src/components/Image/index.jsx rename to src/components/Image/Image.js diff --git a/src/components/Image/index.js b/src/components/Image/index.js new file mode 100644 index 0000000..e467a72 --- /dev/null +++ b/src/components/Image/index.js @@ -0,0 +1 @@ +export { default } from './Image'; \ No newline at end of file diff --git a/src/components/Input/index.jsx b/src/components/Input/Input.js similarity index 100% rename from src/components/Input/index.jsx rename to src/components/Input/Input.js diff --git a/src/components/Input/index.js b/src/components/Input/index.js new file mode 100644 index 0000000..061c565 --- /dev/null +++ b/src/components/Input/index.js @@ -0,0 +1 @@ +export {default} from './Input'; \ No newline at end of file diff --git a/src/components/Radio/index.jsx b/src/components/Radio/Radio.js similarity index 100% rename from src/components/Radio/index.jsx rename to src/components/Radio/Radio.js diff --git a/src/components/Radio/index.js b/src/components/Radio/index.js new file mode 100644 index 0000000..61c9567 --- /dev/null +++ b/src/components/Radio/index.js @@ -0,0 +1 @@ +export { default } from './Radio'; diff --git a/src/components/Select/index.jsx b/src/components/Select/Select.js similarity index 100% rename from src/components/Select/index.jsx rename to src/components/Select/Select.js diff --git a/src/components/Select/index.js b/src/components/Select/index.js new file mode 100644 index 0000000..b56d05f --- /dev/null +++ b/src/components/Select/index.js @@ -0,0 +1 @@ +export { default } from './Select'; \ No newline at end of file diff --git a/src/components/Textarea/index.jsx b/src/components/Textarea/Textarea.js similarity index 100% rename from src/components/Textarea/index.jsx rename to src/components/Textarea/Textarea.js diff --git a/src/components/Textarea/index.js b/src/components/Textarea/index.js new file mode 100644 index 0000000..20e92f8 --- /dev/null +++ b/src/components/Textarea/index.js @@ -0,0 +1 @@ +export { default } from './Textarea'; diff --git a/src/components/Typography/index.jsx b/src/components/Typography/Typography.js similarity index 100% rename from src/components/Typography/index.jsx rename to src/components/Typography/Typography.js diff --git a/src/components/Typography/index.js b/src/components/Typography/index.js new file mode 100644 index 0000000..eabc291 --- /dev/null +++ b/src/components/Typography/index.js @@ -0,0 +1 @@ +export { default } from './Typography'; diff --git a/src/components/index.js b/src/components/index.js index efe8c80..e9f66de 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1 +1,9 @@ -export { default } from './Button'; +export { default as Button } from './Button'; +export { default as Card } from './Card'; +export { default as Checkbox } from './Checkbox'; +export { default as File } from './File'; +export { default as Image } from './Image'; +export { default as Input } from './Input'; +export { default as Select } from './Select'; +export { default as Textarea } from './Textarea'; +export { default as Typography } from './Typography'; diff --git a/webpack.config.js b/webpack.config.js index 26d17d3..ff3c97f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,7 +8,16 @@ module.exports = { utils: './utils/index.js', createContext: './utils/createContext.js', components: './components/index.js', - Button: './components/Button/index.jsx', + Button: './components/Button/index.js', + Card: './components/Card/index.js', + Checkbox: './components/Checkbox/index.js', + File: './components/File/index.js', + Image: './components/Image/index.js', + Input: './components/Input/index.js', + Radio: './components/Radio/index.js', + Select: './components/Select/index.js', + Textarea: './components/Textarea/index.js', + Typography: './components/Typography/index.js', }, output: { path: path.resolve(__dirname, 'dist'),