Created
June 29, 2014 19:08
-
-
Save lukas-vlcek/c8cd42be64eaca454bcd to your computer and use it in GitHub Desktop.
Trying to transpile (ng2) di.js to ES5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trying to follow | |
// https://github.com/angular/di.js#transpiling-es6 | |
[lukas di.js]$ sudo npm install -g gulp | |
Password: | |
/usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js | |
gulp@3.8.5 /usr/local/lib/node_modules/gulp | |
├── tildify@0.2.0 | |
├── interpret@0.3.4 | |
├── pretty-hrtime@0.2.1 | |
├── deprecated@0.0.1 | |
├── archy@0.0.2 | |
├── minimist@0.1.0 | |
├── semver@2.3.1 | |
├── chalk@0.4.0 (has-color@0.1.7, ansi-styles@1.0.0, strip-ansi@0.1.1) | |
├── orchestrator@0.3.3 (sequencify@0.0.7) | |
├── gulp-util@2.2.19 (lodash._reinterpolate@2.4.1, dateformat@1.0.8-1.2.3, minimist@0.2.0, vinyl@0.2.3, through2@0.5.1, multipipe@0.1.1, lodash.template@2.4.1) | |
├── liftoff@0.11.3 (extend@1.2.1, resolve@0.7.1, findup-sync@0.1.3) | |
└── vinyl-fs@0.3.4 (graceful-fs@3.0.2, strip-bom@0.3.1, vinyl@0.2.3, mkdirp@0.5.0, lodash.defaults@2.4.1, through2@0.5.1, glob-watcher@0.0.6, glob-stream@3.1.12) | |
[lukas di.js]$ gulp build | |
[20:52:51] Using gulpfile ~/projects/di.js/gulpfile.js | |
[20:52:51] Starting 'build_source_cjs'... | |
[20:52:51] Finished 'build_source_cjs' after 9.85 ms | |
[20:52:51] Starting 'build_source_amd'... | |
[20:52:51] Finished 'build_source_amd' after 1.85 ms | |
[20:52:51] Starting 'build_dist'... | |
[20:52:51] Finished 'build_dist' after 10 μs | |
[20:52:51] Starting 'build_examples'... | |
[20:52:51] Finished 'build_examples' after 1.34 ms | |
[20:52:51] Starting 'build'... | |
[20:52:51] Finished 'build' after 7.99 μs | |
events.js:72 | |
throw er; // Unhandled 'error' event | |
^ | |
Error in plugin 'gulp-traceur' | |
coffee_maker.js:6:1: Unexpected token @ | |
coffee_maker.js:6:2: Semi-colon expected | |
at Transform._transform (/Users/lukas/projects/di.js/node_modules/gulp-traceur/index.js:44:23) | |
at Transform._read (/Users/lukas/projects/di.js/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10) | |
at Transform._write (/Users/lukas/projects/di.js/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12) | |
at doWrite (/Users/lukas/projects/di.js/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:238:10) | |
at writeOrBuffer (/Users/lukas/projects/di.js/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:228:5) | |
at Transform.Writable.write (/Users/lukas/projects/di.js/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:195:11) | |
at write (/Users/lukas/projects/di.js/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:605:24) | |
at flow (/Users/lukas/projects/di.js/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:614:7) | |
at Transform.pipeOnReadable (/Users/lukas/projects/di.js/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:646:5) | |
at Transform.emit (events.js:92:17) | |
[lukas di.js]$ node --version | |
v0.10.29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment