Closed
Bug 614712
Opened 14 years ago
Closed 13 years ago
spell tests/ and docs/ according to CommonJS rules (i.e. test/ and doc/)
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b5
People
(Reporter: warner, Assigned: warner)
References
Details
(Keywords: relnote)
Attachments
(1 file, 2 obsolete files)
1.90 KB,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
One additional thing to implement in our CommonJS-handling code is the correct spelling of directory names (the specs in http://wiki.commonjs.org/wiki/Packages/1.1#Package_Directory_Layout). This says that tests should be in test/*.js and docs should be in doc/* (whereas our current scheme uses plural names: tests/*.js and docs/*). Obviously we should continue to support existing addons which put them in the old places. So the task is to look for tests and docs under both names, and to udpate the "cfx init" skeleton (and the sample addons) to use the correct (singular) directory names.
Comment 1•14 years ago
|
||
I'll take this on, as it's an easy fix and not having it in-place means we have to put annoying caveats in wbamberg's docs for bug 613579. :)
Assignee: nobody → avarma
Status: NEW → ASSIGNED
Comment 2•13 years ago
|
||
Attachment #522814 -
Flags: review?
Comment 3•13 years ago
|
||
Attachment #522815 -
Flags: review?
Updated•13 years ago
|
Attachment #522814 -
Attachment is obsolete: true
Attachment #522814 -
Flags: review?
Comment 4•13 years ago
|
||
Hmm, it might be easier to split this into two bugs, one for 'test' support and another for 'doc' support. Adding 'test' support was easy, but adding 'doc' support will be harder because the 'docs' directory is hard-coded in a number of different places in the code, and not handled at all the way the 'test' code is. This is really my fault, as the addition of the 'docs' directory was done as a quick hack on my part over a year ago. :(
Updated•13 years ago
|
Attachment #522815 -
Attachment is obsolete: true
Attachment #522815 -
Flags: review?
Comment 5•13 years ago
|
||
Ok, I just split the ticket into two parts, and hopefully we'll resolve the 'test/tests' directory one soon.
Updated•13 years ago
|
Priority: -- → P1
Target Milestone: --- → 1.0b5
Comment 6•13 years ago
|
||
Brian has expressed a willingness to take this on, so assigning this to him.
Assignee: avarma → warner-bugzilla
Assignee | ||
Comment 7•13 years ago
|
||
Oops, looks like we forgot a tiny piece of bug 646280: the "cfx init" command ought to use the correct spelling too, instead of encouraging developers to use the old spelling.
Attachment #527893 -
Flags: review?(myk)
Updated•13 years ago
|
Attachment #527893 -
Flags: review?(myk) → review+
Assignee | ||
Comment 8•13 years ago
|
||
"cfx init" patch landed in https://github.com/mozilla/addon-sdk/commit/305e7678dde4b270fe9dbd2c94197e56f70067a6 Still working on the docs/ side.
Assignee | ||
Comment 9•13 years ago
|
||
Docs are done.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•