Created
October 6, 2011 08:55
-
-
Save ArnaudD/1266886 to your computer and use it in GitHub Desktop.
Affiche la liste des scripts yui3 à mettre dans notre assests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var dependencies = []; | |
| Y.all('script').each (function(s) { | |
| var src = this.get('src').match(/\/javascripts\/lib\/yui-3.*\.js/); | |
| if (src != null) | |
| dependencies.push(' - public'+src[0]); | |
| }); | |
| console.log(dependencies.sort().join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment