|
@@ -17,10 +17,8 @@ if (1 > parameters.length) {
|
|
|
// Get Amber root directory from the location of this script so that
|
|
|
// we can find the st and js directories etc.
|
|
|
var amber_dir = path.normalize(path.join(path.dirname(process.argv[1]), '..'));
|
|
|
-// Get default location of compiler.jar
|
|
|
-var closure_jar = path.resolve(path.join(process.env['HOME'], 'compiler.jar'));
|
|
|
|
|
|
-var compiler = new amberc.Compiler(amber_dir, closure_jar);
|
|
|
+var compiler = new amberc.Compiler(amber_dir);
|
|
|
|
|
|
var configuration = handle_options(parameters, amber_dir);
|
|
|
|
|
@@ -53,15 +51,6 @@ function handle_options(optionsArray, amber_dir) {
|
|
|
case '-n':
|
|
|
defaults.amd_namespace = optionsArray.shift();
|
|
|
break;
|
|
|
- case '-o':
|
|
|
- // leave this for compatibility
|
|
|
- case '-O':
|
|
|
- defaults.closure = true;
|
|
|
- break;
|
|
|
- case '-A':
|
|
|
- defaults.closure = true;
|
|
|
- defaults.closure_options = defaults.closure_options + ' --compilation_level ADVANCED_OPTIMIZATIONS';
|
|
|
- break;
|
|
|
case '-D':
|
|
|
defaults.output_dir = optionsArray.shift();
|
|
|
break;
|
|
@@ -149,12 +138,6 @@ function print_usage() {
|
|
|
console.log(' Export packages with <amd_namespace> as the require.js namespace.');
|
|
|
console.log(' Default value is "amber_core".');
|
|
|
console.log('');
|
|
|
- console.log(' -O');
|
|
|
- console.log(' Optimize final <Program>.js using the Google closure compiler.');
|
|
|
- console.log(' Using Closure compiler found at ~/compiler.jar');
|
|
|
- console.log('');
|
|
|
- console.log(' -A Same as -O but use --compilation_level ADVANCED_OPTIMIZATIONS');
|
|
|
- console.log('');
|
|
|
console.log(' -D');
|
|
|
console.log(' Specifies the output directory for all generated .js files.');
|
|
|
console.log(' The hierarchy of the input files is not maintaned.');
|