Open freewind opened 12 years ago
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:
greenscript.conf
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.
angular
Usually, the file names will be very long if we are using 3rd-party libraries. E.g.
So the
greenscript.conf
will be: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:
If I want to import all angular files, I just need to reference
angular
in the views.