Skip to content

Instantly share code, notes, and snippets.

@Mehuge
Last active August 29, 2015 14:28
Show Gist options
  • Save Mehuge/750abc028531835aa238 to your computer and use it in GitHub Desktop.
Save Mehuge/750abc028531835aa238 to your computer and use it in GitHub Desktop.
"imports": {
"resources": [
/* all unitframe related resources from the cu-components module */
{ resource: "cu-components/unitframe/images", dest: "images/unitframe" },
{ resource: "cu-components/unitframe/styles", dest: "styles" },
/* just the portrait resources required */
{ resource: "cu-components/unitframe/portrait/images", dest: "images/unitframe/portrait" }
]
}
"resources": {
"$base": "lib/classes",
"unitframe": {
"images": [ "lib/classes/unitframe/images/*.png" ],
"styles": [ "lib/classes/unitframe.css" ],
"portrait": {
"images": [ "lib/classes/unitframe/images/portrait/*.png" ],
"styles": [ "lib/classes/unitframe/portrait.css"]
},
"$refs": [ "shared "]
}
}
@Mehuge
Copy link
Author

Mehuge commented Aug 25, 2015

I think after the chat with csejb we just had, I think this whole gist is obsolete!!

Stock UIs won't need to copy resources, they will simply reference them from lib//...

Custom UIs can either reference the stock resources lib//... in the same way or provide their own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment