> As this compiler runs in pure JavaScript, the compiler cannot load or save files from your filesystem directly.
Why? Node.js has the fs library for that. Why do I have to use gulp?Closure Compiler in JavaScript
111–115 of 115 posts
Re: Closure Compiler in JavaScript
#112> As this compiler runs in pure JavaScript, the compiler cannot load or save files from your filesystem directly. Why? Node.js has the fs library for that. Why do I have to use gulp?
Re: Closure Compiler in JavaScript
#113> As this compiler runs in pure JavaScript, the compiler cannot load or save files from your filesystem directly. Why? Node.js has the fs library for that. Why do I have to use gulp?
They also support webpack out of the box. You can most likely add build tools by doing your own integration as well.
Would prefer a cli version like browserify. And then integrate it on other tools.
Re: Closure Compiler in JavaScript
#114Re: Closure Compiler in JavaScript
#115Earlier quoted context omitted.
What do you mean by Typescript Google closure integration? Typescript understands most of closure comment syntax. They should throw typechecking errors which they currently aren't doing.
TypeScript understands some of the comment syntax, but the type systems are different, the module systems are different, and a ton of other stuff is different. Look through the test cases in https://github.com/angular/tsickle/tree/master/test_files to see the difference between TypeScript-annotated code and Closure-annotated code.
In this case, I think closure should start to understand typescript syntax. Or typescript needs to borrow ideas from closure on minifying and dead code removal.