I can't seem to get the tutorial to work: https://github.com/google/traceur-compiler/wiki/CompilingOffline
C:/xampp/htdocs/angular/laravel/app/script/controllers/home-controller.jsC:/xampp/htdocs/angular/laravel/public/scripts/controllers/home-controller.js I open up Node, and run the following command:
$ ./traceur --out C:/xampp/htdocs/angular/laravel/public/scripts/controllers/home-controller.js --script C:/xampp/htdocs/angular/laravel/app/script/controllers/home-controller.js
It puts "..." in the command line.
I close Node and re-open...
I then put it without the $ and it says:
Invalid REPL keyword
undefined
What am I doing wrong?
in fact you have to install traceur globally so you can use it from the command line. you need to install it like this
from the command line of a cmd prompt launch the following
your path>npm install traceur -g
see the "-g". then you must not start node but use traceur from the command prompt itself
your path>traceur --dir ./src ./ dest
where src contains your es6 files and dest will be the result