Closed
Bug 862055
Opened 12 years ago
Closed 12 years ago
[MakeAPI] Should be requireable via node
Categories
(Webmaker Graveyard :: MakeAPI, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mjschranz, Assigned: mjschranz)
Details
(Whiteboard: u=dev c=makeAPI p=1 s=2013w16)
Attachments
(1 file)
Currently we are just having it as a client-side script to flesh out the API bits. However we eventually want this also to be capable of running server side so our tools can connect in an use it for things such as adding project metadata to the makes when created etc.
Comment 1•12 years ago
|
||
Maybe the lib that interacts with the MakeAPI server [1] should be in a separate git repo that can be set as a dependency in other projects. They won't want all of the code that acts on the server side of things.
1. https://github.com/mozilla/MakeAPI/blob/2110133ccdff81b3bd1a691fe8b078e2de3da1ac/public/js/make-client.js
Comment 2•12 years ago
|
||
Nah, you don't need go that far. You can choose what files you want to publish on npm; you just need to figure out a good way to depend on browser code or npm code.
Updated•12 years ago
|
Whiteboard: [MakeAPI]
Updated•12 years ago
|
Whiteboard: [MakeAPI] → u=dev c=makeAPI p=1 s=2013w16
Assignee | ||
Comment 3•12 years ago
|
||
I can't say for sure that this is the best way to do it but it definitely is functional. Let me know if there's something glaring about this.
Attachment #738144 -
Flags: review?(david.humphrey)
Attachment #738144 -
Flags: feedback?(swex)
Comment 4•12 years ago
|
||
I'd have a look at: http://requirejs.org/. This specific use is one of the goals of require.js.
Comment 5•12 years ago
|
||
Comment on attachment 738144 [details] [review]
https://github.com/mozilla/MakeAPI/pull/7
I left a comment in the pull request.
Assignee | ||
Comment 6•12 years ago
|
||
Landed as:
https://github.com/mozilla/MakeAPI/commit/3dfa5f150dc21f0b3e58601b13d73e3f51352293
https://github.com/mozilla/MakeAPI/commit/572d5c87e61cd75d313163d6942f143c02d727d9
https://github.com/mozilla/MakeAPI/commit/5340450aa8357345d1e53b556053c723be4e3c4c
Chris, do you want to file a separate ticket to fix the comment you left?
Flags: needinfo?(chris)
Assignee | ||
Updated•12 years ago
|
Attachment #738144 -
Flags: review?(david.humphrey)
Attachment #738144 -
Flags: feedback?(swex)
Updated•12 years ago
|
Priority: -- → P1
Comment 8•12 years ago
|
||
Matt is this good to close?
Also, I filed Bug 862895
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•