A project seed for angular 1.x with angular 2 in mind. [ Work in progress ]
During the ng-europe Q&A session one of the questions was "What can we do to avoid rewriting an application entirely when angular 2 will be released?". The angular team proposed that we could start writing angular 1.x application in ES6. So, I told myself: why not in atScript?
In that same conference two other projects have also been announced : Angular Material and the new angular router. As a very-early-adopter I wanted to try everything... Now!
When I discovered the angular 2 code example, I tried to make it work with angular 1.x. It is still experimental but it works.
- Angular injection support by Annotations.
- Basic support of Angular 2 Component Directives. (Annotations)
- Asynchronous angular bootstap.
- atScript transpilation with traceur
- New Angular Router
- Angular Material Design
Dgenifor documentation generation.(coming soon, WIP)- AMD modules with requireJS
- Gulp to build everything fast.
- BrowserSync synchronize your browser with your code.
- Sass for CSS with superpowers.
- amd-optimize and almond for AMD module in a single file (prod).
- Protractor and Karma for e2e and unit tests
(*) Code coverage is partially supported. Because sources are generated by traceur, it is not possible to browse them in coveralls.io. The code cannot be 100% covered because of traceur. At least you can verify that coverage does not decrease.
There is 3 types of build : Dev, Prod ES5 & Prod ES6 (WIP)
npm install
bower install
- Assertion library.
- Dynamic AMD module load.
- Auto-build with browser synchronisation
gulp serve
(build, start server, and watch file changes)gulp test
(continuous unit tests)
- No assertion library
- All libraries and modules are in a single JS file with a revision number (for cache busting).
- HTML, CSS ans JS are minified.
gulp serve:prod
(build and start server)
or
gulp build:prod
(build)gulp serve:prod:only
(start server)
Contact me if you want to contribute.