Skip to content

Short name for js/css files #51

@freewind

Description

@freewind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions