From 04accf6f43309d03dc5dceff4939b82ae68ffa57 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 29 Oct 2020 10:17:43 +0200 Subject: [PATCH 1/3] Delete index.js --- js/src/index.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 js/src/index.js diff --git a/js/src/index.js b/js/src/index.js deleted file mode 100644 index f407cffa5adf..000000000000 --- a/js/src/index.js +++ /dev/null @@ -1,34 +0,0 @@ -import Alert from './alert' -import Button from './button' -import Carousel from './carousel' -import Collapse from './collapse' -import Dropdown from './dropdown' -import Modal from './modal' -import Popover from './popover' -import Scrollspy from './scrollspy' -import Tab from './tab' -import Toast from './toast' -import Tooltip from './tooltip' -import Util from './util' - -/** - * -------------------------------------------------------------------------- - * Bootstrap (v4.5.3): index.js - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - * -------------------------------------------------------------------------- - */ - -export { - Util, - Alert, - Button, - Carousel, - Collapse, - Dropdown, - Modal, - Popover, - Scrollspy, - Tab, - Toast, - Tooltip -} From 6e337c0c3937dc74891a37a2fa1a1d9e5666caf9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 29 Oct 2020 10:24:05 +0200 Subject: [PATCH 2/3] Move the index file one folder up --- build/rollup.config.js | 2 +- js/index.js | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 js/index.js diff --git a/build/rollup.config.js b/build/rollup.config.js index 6294204cde7e..e2d2b125efe6 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -31,7 +31,7 @@ if (BUNDLE) { } module.exports = { - input: path.resolve(__dirname, '../js/src/index.js'), + input: path.resolve(__dirname, '../js/index.js'), output: { banner, file: path.resolve(__dirname, `../dist/js/${fileDest}`), diff --git a/js/index.js b/js/index.js new file mode 100644 index 000000000000..c88e9af6cd95 --- /dev/null +++ b/js/index.js @@ -0,0 +1,34 @@ +import Alert from './src/alert' +import Button from './src/button' +import Carousel from './src/carousel' +import Collapse from './src/collapse' +import Dropdown from './src/dropdown' +import Modal from './src/modal' +import Popover from './src/popover' +import Scrollspy from './src/scrollspy' +import Tab from './src/tab' +import Toast from './src/toast' +import Tooltip from './src/tooltip' +import Util from './src/util' + +/** + * -------------------------------------------------------------------------- + * Bootstrap (v4.5.3): index.js + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + * -------------------------------------------------------------------------- + */ + +export { + Util, + Alert, + Button, + Carousel, + Collapse, + Dropdown, + Modal, + Popover, + Scrollspy, + Tab, + Toast, + Tooltip +} From b534b006f623c27dfdd7d6649169a6003d98dbf6 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 31 Oct 2020 21:22:18 +0200 Subject: [PATCH 3/3] Update index.js --- js/index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/index.js b/js/index.js index c88e9af6cd95..e5dcc84bf212 100644 --- a/js/index.js +++ b/js/index.js @@ -1,3 +1,10 @@ +/** + * -------------------------------------------------------------------------- + * Bootstrap (v4.5.3): index.js + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + * -------------------------------------------------------------------------- + */ + import Alert from './src/alert' import Button from './src/button' import Carousel from './src/carousel' @@ -11,13 +18,6 @@ import Toast from './src/toast' import Tooltip from './src/tooltip' import Util from './src/util' -/** - * -------------------------------------------------------------------------- - * Bootstrap (v4.5.3): index.js - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - * -------------------------------------------------------------------------- - */ - export { Util, Alert,