incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-280) Improve layout of cordova-js scripts
Date Mon, 19 Mar 2012 15:30:37 GMT


Patrick Mueller commented on CB-280:

See note in callback-dev subject: "Plan for device specific APIs?".  I mention allow the build
script allow platform-specific overrides for, in this case, the notification module by blackberry.

This implies the build script will actually collect just the module names first, before writing
the source, which would allow platforms to 'override' a common module, without having to write
the wasted bytes out in for the never-used common module.
> Improve layout of cordova-js scripts
> ------------------------------------
>                 Key: CB-280
>                 URL:
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>            Reporter: Filip Maj
>            Assignee: Filip Maj
>            Priority: Minor
>             Fix For: 1.6.0
> Originally proposed by Pat on the mailing list. Reorganize the directory names and conventions
used in the builder to make the association between javascript files and modules (and their
ids) clearer.
> From Pat's e-mail:
> - rename `~/lib` to `~/cordova`; there is no more `~/lib`.
> - mkdir ~/platform
> - mkdir ~/platform/android
> - mkdir ~/platform/...
> - move platform-specific stuff in ~/cordova (was ~/lib), in such a way as
> each module exists in a path associated with it's eventual module id,
> prefixed by `~/platform/[whicheverPlatform]`
> - move non-modules into a 'new' `~/lib` directory; it's more than just
> require.js - bootstrap, etc
> Now, to do a build for a platform:
> - collect as modules all files from ~/cordova
> - collect as modules all files from ~/platform/[whicheverPlatform]/cordova
> - collect as scripts all files from ~/lib
> bonusi:
> - the files are laid out exactly as the modules will be named, modulo
> platform-specific prefix directories for platform-specific files; no more
> in-head conversion when I'm looking at directory listings of modules.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message