couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-658) Add CommonJS style modules to the view server
Date Thu, 18 Feb 2010 21:43:27 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835421#action_12835421
] 

Chris Anderson commented on COUCHDB-658:
----------------------------------------

That won't do as couchapp will import a filesystem tree in modules as:

{
"modules": {
  "vendor" : {
     "crypto" : {
        "sha" : "code"
    }
  }
}
}

So while you could do the thing you described above it'd be unlikely to be used unless couchapp
adopts special behavior for the treatment of the modules directory, which I'd like to avoid.

Adding the tree traversal stuff shouldn't be hard and we should get the ability to stick modules
anywhere (the ddoc/vendor/foo/commonjs/bar location will be popular)

> Add CommonJS style modules to the view server
> ---------------------------------------------
>
>                 Key: COUCHDB-658
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-658
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>         Environment: CouchDB
>            Reporter: mikeal
>         Attachments: require.patch
>
>
> I have a patch that adds CommonJS module support to all ddoc aware view server functions
(everything except map/reduce/rereduce).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message