FredAGVdd / angular2-starter

:star: Angular 2 Starter using TypeScript, with extensions option https://github.com/ngstarter (Updated to 2.0.0-rc.1!)

Home Page:https://antonybudianto.github.io/angular2-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular 2 Starter

Build Status Build status Coverage Status Dependency Status devDependency Status

Angular 2 is still in Release Candidate stage, please don't use this in production

Follow Angular 2 Changelog here

Live Production Build Demo

Table of Content

Introduction

Welcome to Angular 2 Starter! This starter contains almost everything you need to start developing Angular 2:

Please visit the wiki for more details.

Installation

Firstly, you need to have Node.js

  • For v4, please use v4.3.x (LTS) or higher (highly recommended)
  • For v5, please use v5.6.x or higher, here is why
  • Ready for v6

You need v4.x or higher for Protractor

Get the starter from releases page

Then, install these packages globally:

npm install -g gulp

After that, just run:

npm install

Start

Let's start up the server, run: gulp or gulp serve-dev

and done! The browser will popup and you can start trying Angular 2! Every changes to the file will refresh the browser automatically and it'll also compile your changed TypeScripts files to Javascript files.

Testing

This starter comes with testing gulp workflow

Unit testing

Just run

gulp test

and it'll compile all TypeScript files, start Karma, then remap Istanbul coverage so that it shows TypeScript coverage, not the transpiled Javascript coverage.

Coverage result

E2E testing

Firstly start the server:

gulp serve-dev

To begin testing, run:

gulp e2e

and it'll compile all E2E spec files in /src/test/e2e/*.spec.ts, boot up Selenium server then launches Chrome browser.

Production

All build tasks will run the gulp test, the bundle will only be created if the test passed.

You can create production build by running:

gulp build

or you can create production build and then serve it using Browsersync by running:

gulp serve-build

The starter defaults to bundle using SystemJS Builder extension. There is Webpack extension available too, feel free to swap it as you like.

Extension

You can extend this starter with many extensions built by the community. Browse the extensions here

Contributing

Feel free to submit a PR if there are any issues or new features, read this before

Special thanks

License

MIT

About

:star: Angular 2 Starter using TypeScript, with extensions option https://github.com/ngstarter (Updated to 2.0.0-rc.1!)

https://antonybudianto.github.io/angular2-starter/

License:MIT License


Languages

Language:JavaScript 47.3%Language:TypeScript 32.2%Language:HTML 16.9%Language:SCSS 3.6%Language:CSS 0.1%