Closed Bug 862055 Opened 12 years ago Closed 12 years ago

[MakeAPI] Should be requireable via node

Categories

(Webmaker Graveyard :: MakeAPI, defect, P1)

x86
macOS
defect

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.
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
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.
Whiteboard: [MakeAPI]
Whiteboard: [MakeAPI] → u=dev c=makeAPI p=1 s=2013w16
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)
I'd have a look at: http://requirejs.org/. This specific use is one of the goals of require.js.
Attachment #738144 - Flags: review?(david.humphrey)
Attachment #738144 - Flags: feedback?(swex)
Priority: -- → P1
guess I'll have to.
Flags: needinfo?(chris)
Matt is this good to close? Also, I filed Bug 862895
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: