From eeab9aa6f655a350217a37e4973cf72fc64f9bab Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 20 Mar 2013 13:27:47 -0700 Subject: [PATCH] Support test-packages --production. --- tools/meteor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/meteor.js b/tools/meteor.js index 32e3c8c564..41f82e7c2d 100644 --- a/tools/meteor.js +++ b/tools/meteor.js @@ -793,6 +793,8 @@ Fiber(function () { .alias('port', 'p').default('port', 3000) .describe('port', 'Port to listen on. NOTE: Also uses port N+1 and N+2.') .describe('deploy', 'Optionally, specify a domain to deploy to, rather than running locally.') + .boolean('production') + .describe('production', 'Run in production mode. Minify and bundle CSS and JS files.') .boolean('once') // See #Once .describe('settings', 'Set optional data for Meteor.settings on the server') .usage( @@ -868,7 +870,7 @@ Fiber(function () { deploy.deployToServer(context.appDir, { nodeModulesMode: 'skip', testPackages: testPackages, - noMinify: true, // XXX provide a --production + noMinify: !new_argv.production, releaseStamp: context.releaseVersion, packageSearchOptions: context.packageSearchOptions }, { @@ -878,7 +880,7 @@ Fiber(function () { } else { runner.run(context, { port: new_argv.port, - noMinify: true, // XXX provide a --production + noMinify: !new_argv.production, once: new_argv.once, testPackages: testPackages, settingsFile: new_argv.settings