Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

[WIP] INREL-3418 Refactor & Bundle JS #92

Open
wants to merge 20 commits into
base: 8.x-3.x-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
aea062c
INREL-3417 set up webpack and require needed libraries
tjwelde Feb 15, 2018
1bb1362
INREL-3417 refactor some files
tjwelde Feb 15, 2018
2778218
INREL-3417 refactor base-view, base-inview-view
tjwelde Feb 17, 2018
4022cb9
INREL-3418: add circular dependency plugin
tjwelde Feb 20, 2018
5ce543a
INREL-3418: convert burda-infinite to es6 module and extract initiali…
tjwelde Feb 20, 2018
9ad48f5
INREL-3418: convert most JS files to es6 modules
tjwelde Feb 20, 2018
e1f08a9
INREL-3418: put some modules into global space, to be used by other m…
tjwelde Feb 20, 2018
cbcea44
INREL-3418: Don't attach libraries in templates, since they are all l…
tjwelde Feb 20, 2018
baf8f50
INREL-3418: added module to global-legacy
tjwelde Feb 22, 2018
024d378
INREL-3418: fix webpack bundle analyzer
tjwelde Mar 1, 2018
35d0733
INREL-3418: upgrade swiper to v4; use only needed swiper modules
tjwelde Mar 1, 2018
ca8ed72
INREL-3418: added comment
tjwelde Mar 1, 2018
e618c96
INREL-3418: ignore stats file
tjwelde Mar 1, 2018
9d40c26
INREL-3418: Use index files for better importing
tjwelde Mar 5, 2018
fb82462
INREL-3418: Bundling happens in the project now
tjwelde Mar 5, 2018
f5a47fe
INREL-3418: remove all obsolete library definitions and dev comments
tjwelde Mar 5, 2018
b1a7982
INREL-3418: manage jquery.easing via npm
tjwelde Mar 5, 2018
3432664
INREL-3418: use fixed versions and import script-loader, because we u…
tjwelde Mar 5, 2018
92d466f
INREL-3418: Manage jquery.browser via npm
tjwelde Mar 5, 2018
037eb97
INREL-3418: Manage Bootstrap libraries with npm
tjwelde Mar 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ drupal/sites/simpletest
# simpletest


legacy_files
legacy_files

#ignore node_module and compiled files
node_modules
dist
stats.json
37 changes: 0 additions & 37 deletions infinite.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,7 @@ core: 8.x
screenshot: images/infinite.png
libraries:
- infinite/infinite.header
- infinite/blockadblock
- infinite/swiper
- infinite/infinite.libs
- infinite/infinite.init
- infinite/infinite.manager.tracking-manager
- infinite/infinite.manager.scroll-manager
- infinite/infinite.manager.marketing-manager

- infinite/infinite.models.base.base-model
- infinite/infinite.models.base.base-collection-model

- infinite/infinite.models.ajax-model
- infinite/infinite.models.page-offsets-model
- infinite/infinite.models.device-model
- infinite/infinite.models.infinite-block-data-model

- infinite/infinite.views.base.base-view
- infinite/infinite.views.base.base-inview-view
- infinite/infinite.views.base.base-dynamic-view
- infinite/infinite.views.base.base-feed-view
- infinite/infinite.views.base.base-sidebar-view
- infinite/infinite.views.base.base-newsletter-view
- infinite/infinite.views.base.base-list-swipeable-view

- infinite/infinite.views.main-view
- infinite/infinite.views.infinite-block-view
- infinite/infinite.views.menu-main-view
- infinite/infinite.views.menu-sidebar-view
- infinite/infinite.views.modal-search-view
- infinite/infinite.views.article-view
- infinite/infinite.views.gallery-view
- infinite/infinite.views.sticky-view
# - infinite/infinite.views.products-view
# - infinite/infinite.views.anchor-navigation-view
- infinite/infinite.views.marketing-view
- infinite/infinite.views.spinner
- infinite/infinite.views.newsletter.hmnewsletter-view
- infinite/infinite.views.newsletter.newsletter-modal-view

regions:
head_top: 'Head Top'
Expand Down
266 changes: 0 additions & 266 deletions infinite.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,279 +15,13 @@ blockadblock:
js:
/libraries/blockadblock/blockadblock.js: { }

swiper:
remote: https://github.com/nolimits4web/Swiper
version: 3.4.2
license:
name: MIT
gpl-compatible: true
js:
/libraries/swiper/dist/js/swiper.jquery.min.js: { }

infinite.social-apis:
js:
//assets.pinterest.com/js/pinit.js: { type: external, attributes: { async: true} }
//platform.twitter.com/widgets.js: { type: external, minified: true, attributes: { async: true} }
//platform.instagram.com/en_US/embeds.js: { type: external, minified: true, attributes: { async: true} }

infinite.libs:
js:
# js/infinite/libs/jquery.browser.js: {}
js/infinite/libs/jquery.waypoints.js: {}
js/infinite/libs/shortcuts/infinite_custom.js: {}
js/infinite/libs/shortcuts/sticky.js: {}
js/infinite/libs/shortcuts/inview.js: {}
js/infinite/libs/jquery.easing.1.3.js: {}
js/infinite/libs/jquery.timeago.js: {}
# js/infinite/libs/swiper.jquery.js: {}
js/infinite/libs/jquery.browser.min.js: {}
js/infinite/libs/jquery.sticky-kit.min.js: {}
js/infinite/libs/bootstrap/modal.js: {}
js/infinite/libs/bootstrap/transition.js: {}
js/infinite/libs/jquery.inview.js: {}

infinite.init:
css:
base:
css/infinite-global.css: {}

js:
js/infinite/backbone-manager.js: {}
js/infinite/burda-infinite.js: { }
js/infinite/utils/base-utils.js: { }
js/infinite/consts/app-config.js: {}
js/infinite/consts/view-ids.js: {}
js/infinite/consts/model-ids.js: {}
js/infinite/consts/manager-ids.js: {}

dependencies:
# - core/jquery
- core/backbone
- core/drupal
- core/drupal.ajax
- core/drupalSettings
- core/jquery.once
- core/picturefill
- core/jquery.cookie
- blazy/blazy


##### manager #####

infinite.manager.tracking-manager:
version: 1
js:
js/infinite/managers/tracking-manager.js: {}


infinite.manager.scroll-manager:
version: 1
js:
js/infinite/managers/scroll-manager.js: {}

infinite.manager.marketing-manager:
version: 1
js:
js/infinite/managers/marketing-manager.js: {}

##### base models #####

infinite.models.base.base-model:
version: 1
js:
js/infinite/models/base/base-model.js: { }


infinite.models.base.base-collection-model:
version: 1
js:
js/infinite/models/base/base-collection-model.js: {}


##### models #####

infinite.models.ajax-model:
version: 1
js:
js/infinite/models/ajax-model.js: {}


infinite.models.page-offsets-model:
version: 1
js:
js/infinite/models/page-offsets-model.js: {}


infinite.models.device-model:
version: 1
js:
js/infinite/models/device-model.js: {}


infinite.models.infinite-block-data-model:
version: 1
js:
js/infinite/models/infinite-block-data-model.js: {}

##### base views #####

infinite.views.base.base-view:
version: 1
js:
js/infinite/views/base/base-view.js: { }


infinite.views.base.base-inview-view:
version: 1
js:
js/infinite/views/base/base-inview-view.js: { }


infinite.views.base.base-dynamic-view:
version: 1
js:
js/infinite/views/base/base-dynamic-view.js: { }
js/infinite/models/base/base-dynamic-view-model.js: {}


infinite.views.base.base-feed-view:
version: 1
js:
js/infinite/views/base/base-feed-view.js: { }


infinite.views.base.base-sidebar-view:
version: 1
js:
js/infinite/views/base/base-sidebar-view.js: { }
js/infinite/models/base/base-sidebar-model.js: {}


infinite.views.base.base-newsletter-view:
version: 1
js:
js/infinite/views/base/base-newsletter-view.js: { }

infinite.views.base.base-list-swipeable-view:
version: 1
js:
js/infinite/views/base/base-list-swipeable-view.js: {}


##### views #####

infinite.views.main-view:
version: 1
js:
js/infinite/views/main-view.js: { }


infinite.views.infinite-block-view:
version: 1
js:
js/infinite/views/infinite-block-view.js: {}

infinite.views.menu-main-view:
version: 1
js:
js/infinite/views/menu-main-view.js: {}


infinite.views.menu-sidebar-view:
version: 1
js:
js/infinite/views/menu-sidebar-view.js: {}


infinite.views.modal-search-view:
version: 1
js:
js/infinite/views/modal-search-view.js: {}
js/infinite/models/modal-search-model.js: {}


infinite.views.article-view:
version: 1
js:
js/infinite/views/article-view.js: {}


infinite.views.gallery-view:
version: 1
js:
js/infinite/views/gallery-view.js: {}


infinite.views.sticky-view:
version: 1
js:
js/infinite/views/sticky-view.js: {}

infinite.views.teaser-feed-view:
version: 1
js:
js/infinite/views/teaser-feed-view.js: {}

infinite.views.product-view:
version: 1
js:
js/infinite/views/products/product-view.js: {}

infinite.views.product-slider-view:
version: 1
js:
js/infinite/views/products/product-slider-view.js: {}
dependencies:
- infinite/infinite.views.product-view

infinite.views.product-look-view:
version: 1
js:
js/infinite/views/products/product-look-view.js: {}
dependencies:
- infinite/infinite.views.product-view

infinite.views.look-view:
version: 1
js:
js/infinite/views/products/look-view.js: {}
dependencies:
- infinite/infinite.views.product-look-view


infinite.views.marketing-view:
version: 1
js:
js/infinite/views/marketing-view.js: {}

infinite.views.anchor-navigation-view:
version: 1
js:
js/infinite/views/anchor-navigation-view.js: {}


infinite.views.marketing-view:
version: 1
js:
js/infinite/views/marketing-view.js: {}


infinite.views.spinner:
version: 1
js:
js/infinite/views/components/spinner-cube-view.js: {}

infinite.views.newsletter.hmnewsletter-view:
version: 1
js:
js/infinite/views/newsletter/hmnewsletter-view.js: {}

infinite.views.newsletter.newsletter-modal-view:
version: 1
js:
js/infinite/views/newsletter/newsletter-modal-view.js: {}

infinite.views.ecommerce-slider-view:
version: 1
js:
js/infinite/views/products/ecommerce-slider-view.js: {}
14 changes: 14 additions & 0 deletions js/infinite/burda-infinite-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";

window.BurdaInfinite = {
views: {
base: {},
products: {},
newsletter: {}
},
utils: {},
managers: {},
models: {
base: {}
}
};
Loading