Fixes #630
@@ -98,7 +98,7 @@ module.exports = function(grunt) {
'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', '@parser'
],
main_class: 'AmberCli',
- output_name: 'amber-cli',
+ output_name: '../../bin/amber-cli',
amd_namespace: 'amber_cli'
}
},
@@ -1,3 +1,2 @@
#!/bin/bash
-cd `dirname $0`/..
-node ./cli/js/amber-cli.js repl
+node `dirname $0`/amber-cli.js $@
@@ -1,3 +1,4 @@
+#!/usr/bin/env node
var define = (function amdefine(module, requireFn) {
'use strict';
var defineCache = {},
@@ -0,0 +1 @@
+@node "%~dp0\amber-cli.js" %*
+@node "%~dp0\amberc" %*
@@ -608,6 +608,7 @@ AmberC.prototype.compose_js_files = function() {
});
var builder = createConcatenator();
+ builder.add('#!/usr/bin/env node');
builder.start();
program_files.forEach(function(file) {
@@ -1,3 +0,0 @@
-#!/bin/bash
-node ./cli/js/amber-cli.js serve $@
-@cd "%~dp0\.."
-@node .\cli\js\amber-cli.js serve %*
-
@@ -26,9 +26,8 @@
"node": ">=0.8.0"
"bin": {
- "amber": "./bin/amber",
- "amberc": "./bin/amberc",
- "ambers": "./bin/server"
+ "amber": "./bin/amber-cli.js",
+ "amberc": "./bin/amberc"
"scripts": {
"test": "grunt amberc:amber_test_runner && node ./test/amber_test_runner.js"