This was an experiment to build Ionic with Visual Studio Code, TypeScript, BabelJS, and module support.
TypeScript (.ts
) and Javascript (.js
) file should go in the src
directory.
Additional gulp tasks are provided for building the project.
-
gulp compile
This task will transpile the TypeScript and ES6 code into ES5. For TypeScript, this is done by first targeting ES6 and then all of the code is then passed throughbabeljs
andngAnnotate
. The resulting ES5 files are place in thebuild
directory. -
gulp bundle
This task will bundle all of the modules into a single bundle using system.js[1]. The resulting bundle file (bundle.js
) will be placed inwww/js
.