Issue #2203435 by sun: Move all external libraries from core modules into core.libraries.yml.

8.0.x
webchick 2014-03-04 12:41:15 -08:00
parent afa38dc2e1
commit 029a18d7c1
7 changed files with 24 additions and 25 deletions

View File

@ -324,6 +324,18 @@ jquery.intrinsic:
dependencies:
- core/jquery
jquery.joyride:
remote: https://github.com/zurb/joyride
version: v2.0.3
js:
assets/vendor/jquery-joyride/jquery.joyride-2.0.3.js: {}
css:
component:
assets/vendor/jquery-joyride/joyride-2.0.3.css: { media: screen }
dependencies:
- core/jquery
- core/jquery.cookie
jquery.once:
remote: https://github.com/RobLoach/jquery-once
version: 1.2.3
@ -670,6 +682,16 @@ normalize:
base:
assets/vendor/normalize-css/normalize.css: { every_page: true, weight: -20 }
picturefill:
remote: https://github.com/scottjehl/picturefill
# @todo Contribute upstream and/or replace with upstream version.
# @see https://drupal.org/node/1775530
version: VERSION
js:
assets/vendor/picturefill/picturefill.js: { weight: -10 }
dependencies:
- core/matchmedia
underscore:
remote: https://github.com/jashkenas/underscore
version: 1.5.2

View File

@ -172,7 +172,7 @@ class PictureFormatter extends ImageFormatterBase {
$elements[$delta] = array(
'#theme' => 'picture_formatter',
'#attached' => array('library' => array(
array('picture', 'picturefill'),
array('core', 'picturefill'),
)),
'#item' => $item,
'#image_style' => $fallback_image_style,

View File

@ -1,10 +0,0 @@
# @todo Move into /core/assets and core.library.yml.
picturefill:
remote: https://github.com/scottjehl/picturefill
# @todo Contribute upstream and/or replace with upstream version.
# @see https://drupal.org/node/1775530
version: VERSION
js:
picturefill/picturefill.js: { weight: -10 }
dependencies:
- core/matchmedia

View File

@ -6,7 +6,7 @@ tour:
- core/jquery
- core/drupal
- core/backbone
- tour/jquery.joyride
- core/jquery.joyride
- tour/tour-styling
tour-styling:
@ -14,16 +14,3 @@ tour-styling:
css:
component:
css/tour.module.css: { media: screen }
# @todo Move into /core/assets and core.library.yml.
jquery.joyride:
remote: https://github.com/zurb/joyride
version: v2.0.3
js:
js/jquery.joyride-2.0.3.js: {}
css:
component:
css/joyride-2.0.3.css: { media: screen }
dependencies:
- core/jquery
- core/jquery.cookie