The current trend in Drupal core modules is to place CSS and JS files into their own subdirectories.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff.txt | 639 bytes | jessebeach |
| #3 | contextual-js-reorg-1913036-3.patch | 43.85 KB | jessebeach |
| #2 | contextual_js_reorg-1913036-2.patch | 1.83 KB | wim leers |
| #1 | contextual-asset-reorg-1913036-1.patch | 21.3 KB | jessebeach |
Comments
Comment #1
jessebeach commentedThis patch moves the .js file under a js/ directory and the css files under a css/ directory.
No code changes other than file reference paths were made.
Comment #2
wim leersThe CSS assets are already in their own directory.
This patch moves the JS assets into its own directory.
Comment #3
jessebeach commentedOnce small comment update to reflect the new location of
contextual.toolbar.js.Otherwise the patch looks good. I manually verified the changes on a fresh install.
Comment #4
wim leersGood catch!
Comment #5
alexpottCommitted 1454b2e and pushed to 8.x. Thanks!
This patch could have been tons smaller if git is configured with
renames = copiessee https://drupal.org/documentation/git/configurehere is the total patch for me :)
Comment #6
wim leersAlex: indeed :) I did that too in #2. Adding the
--find-renamesparameter when diffing works too :)Comment #7
jessebeach commentedNoted! I made the config changes to my setup.