[
https://issues.apache.org/jira/browse/CB-4871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843909#comment-13843909
]
Andrew Grieve commented on CB-4871:
-----------------------------------
There is actually an undocumented-in-help.txt "cordova ripple" command. Seems
broken for me though:
{code}
agrieve@agrieve-macbookpro ~/git/cordova/mobilespec$ cordova ripple
/Users/agrieve/git/cordova/cordova-cli/src/ripple.js:26
serve.config(platform, port, function (cfg) {
^
TypeError: Object function server(port) {
var projectRoot = cordova_util.cdProjectRoot();
port = +port || 8000;
var hooks = new hooker(projectRoot);
return hooks.fire('before_serve')
.then(function() {
// Run a prepare first!
return require('../cordova').raw.prepare([]);
}).then(function() {
launchServer(projectRoot, port);
return hooks.fire('after_serve');
});
} has no method 'config'
at CLI.module.exports
(/Users/agrieve/git/cordova/cordova-cli/src/ripple.js:26:11)
at new CLI (/Users/agrieve/git/cordova/cordova-cli/src/cli.js:109:30)
at Object.<anonymous>
(/Users/agrieve/git/cordova/cordova-cli/bin/cordova:41:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
{code}
If it cuts down on the node_modules size, I'd like to see the command removed,
or at least work with ripple as an optional dependency.
> CLI's node_modules take up almost 50 meg!
> -----------------------------------------
>
> Key: CB-4871
> URL: https://issues.apache.org/jira/browse/CB-4871
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Reporter: Andrew Grieve
> Assignee: Braden Shepherdson
> Priority: Minor
>
> This fails the sanity check for me. I'm sure there must be some low-hanging
> fruit to reduce the payload.
> {quote}
> 15M plist
> 10M ripple-emulator
> 7.2M npm
> 5.4M plugman
> 1.6M request
> 1.4M prompt
> 1.4M express
> {quote}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)