Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2014 at 18:14 UTC
Updated:
29 Jul 2014 at 23:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
star-szrThere are about 70 instances currently.
Comment #2
sunThe easiest way to discover all instances is the kick-starting change in attached patch.
Comment #4
nod_Much more than 70 instances. That should be all of them. There was a problem in the comment module, not enough nesting. There are a couple of scripts in node module and another that need to be made into a library and function docs needs to be updated.
Comment #5
tim.plunkettNot that 'core/myspecial/snowflakelibrary' is valid, but this should be
list($module, $name) = explode('/', $library_name, 2);just to be safe.($module vs $extension here, plus we actually use $provider everywhere else in core)
Comment #6
star-szrI should have said 70 using the grep in the OP.
Comment #8
nod_addressing #5
Comment #10
nod_Comment #12
nod_attached interdiff with #4
Comment #14
nod_Just a reroll, no interdiff.
Patching without pulling first, been a while since I made that mistake :p
Oh yeah but one change I made earlier is in the library_alter hook,
Before
when I use it and when I see it used, it's always a check on both module and library so I just removed the module part and send the whole dep string:
Comment #15
nod_Comment #17
nod_All right, should be green.
Comment #19
nod_aww cmon :p
Reroll, caching patch broke it.
Comment #20
sunComment #21
wim leersI couldn't find anything broken in manual testing. I read the entire patch, and couldn't find any errors. This is pretty much RTBC, besides these nitpicks:
Does this still make sense? It's now a module-namespaced library name.
Nice :)
These are all for the same thing. Let's also create an issue for each @todo. Same for the few other analogous @todos you added.
Comment #22
sunLet's remove those @todos from this patch - I've created child issues for those conversions instead:
#2205155: Convert custom_block.js into a library
#2205157: Convert locale.admin.css into a library
#2205161: Convert node.js into a library [LOL]
Comment #23
wim leers:D :D :D
sun++
Comment #24
nod_Rerolled. And removed todos.
Comment #26
nod_reroll…
Comment #27
sunThanks, @nod_!
Comment #28
nod_BTW updated https://drupal.org/node/1764252 to reflect api change.
Comment #29
sun26: core-library-shorthand-2203407-26.patch queued for re-testing.
Comment #30
sunThe follow-up issues for converting straw individual files into libraries have patches now — but are blocked on this patch to get in first.
Would be great to move forward here.
Comment #31
sunMissed one: #2209115: Convert Simpletest CSS/JS into a library
Comment #32
alexpottcore-library-shorthand-2203407-26.patch no longer applies.
Comment #33
nod_Reroll, was because of #2203435: Move all external libraries from core modules into core.libraries.yml
Comment #34
sun33: core-library-shorthand-2203407-33.patch queued for re-testing.
Comment #35
alexpottcore-library-shorthand-2203407-33.patch no longer applies.
Comment #36
nod_Reroll
Comment #37
alexpottCommitted 01a3e19 and pushed to 8.x. Thanks!
Comment #38
sunAdded #2209115: Convert Simpletest CSS/JS into a library
Comment #40
penyaskitoAlso edited: https://drupal.org/node/2169605/revisions/view/6873153/7080183