agrc/atlas

single package definition file

Closed this issue · 9 comments

We should manage our package definitions in a single file rather that split out between run.js and test pages. Maybe pulling them out into a .json file would work?

One possible solution: agrc/ugs-chemistry@3f5b051

Only drawback that I can see is that it is not in a json file.

Explain why that is a drawback?

Because it wouldn't work with: agrc/atom-amdbutler#19

Could you return a property on that object that is stringified?

I don't think so. amdbutler isn't executing the js. It's just parsing the file as text expecting a JSON formatted string.

What about... create the json file and require it into this package with dojo!text.

Can't use dojo/text without a package definition for dojo.

what about without dojo/text and require the file with the extension and use JSON to deal with it.

Not sure how require would deal with a .json file. Sounds like it's worth a try.