Skip to content

mlb6/angular2One-seed

Repository files navigation

AngularJS Seed for Futuristic Developers

A project seed for angular 1.x with angular 2 in mind. [ Work in progress ]

Build Status Coverage Status Dependency Status devDependency Status Sauce Test Status

Motivation

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.

Features

  • Angular injection support by Annotations.
  • Basic support of Angular 2 Component Directives. (Annotations)
  • Asynchronous angular bootstap.

Tools and librairies

Continuous Integration

(*) 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.

Build

There is 3 types of build : Dev, Prod ES5 & Prod ES6 (WIP)

Install

  1. npm install
  2. bower install

Development

  • Assertion library.
  • Dynamic AMD module load.
  • Auto-build with browser synchronisation
  1. gulp serve (build, start server, and watch file changes)
  2. gulp test (continuous unit tests)

Production (ES5)

  • 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.
  1. gulp serve:prod (build and start server)

or

  1. gulp build:prod (build)
  2. gulp serve:prod:only (start server)

Contributing

Contact me if you want to contribute.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors