Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short name for js/css files #51

Open
freewind opened this issue Jun 10, 2012 · 0 comments
Open

Short name for js/css files #51

freewind opened this issue Jun 10, 2012 · 0 comments

Comments

@freewind
Copy link

Usually, the file names will be very long if we are using 3rd-party libraries. E.g.

jquery-1.7.1.min.js
angular-1.0.0rc10.min.js
angular-cookies-1.0.0rc10.min.js
angular-resource-1.0.0rc10.min.js

So the greenscript.conf will be:

js.default=jquery-1.7.1.min
js.angular-1.0.0rc10.min=jquery-1.7.1.min
js.angular-cookies-1.0.0rc10.min=angular-1.0.0rc10.min
js.angular-resource-1.0.0rc10.min=angular-1.0.0rc10.min

This is not easy to read or write. I hope we can define short names for js/css files.

And I hope to use = to define short names, and > or < to define relations.

So the sample configuration will be:

js.jquery=jquery-1.7.1.min
js.angular-core=angular-1.0.0rc10.min
js.angular-cookie=angular-cookies-1.0.0rc10.min
js.angular-resource=angular-resource-1.0.0rc10.min

js.angular-core < jquery
js.angular-cookie < angular-core
js.angular-resource < angular-core
js.angular < angular-cookie, angular-resource

If I want to import all angular files, I just need to reference angular in the views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant