Git Product home page Git Product logo

generator-angular2-ts's Introduction

Angular 2.x Generator + TypeScript/Babel (ES6/ES7)

Experimental Yeoman generator for your first Angular 2 project ... have fun

The generator enables you to write your Angular 2 application in plain JavaScript using ES6/ES7 features such as decorators and template strings. Along side the Babel flavor you can write your Angular 2 application using TypeScript. Both flavors are lived transpiled in the browser of your choice.

Features

  • Angular 2.0 RC3 using the new component router, and inline templates
  • Babel with ES6/ES7 features
  • SystemJS and SystemJS Builder
  • TypeScript + tslint (with Codelyzer)
  • Babel with SystemJS
  • Modular Grunt
  • Sass for CSS preprocessing
  • Uses BrowserSync to live code in the browser
  • Also does image compression via imagemin
  • There also is a docker provided for deployment

Todo

  • Smoke Testing & E2E (Nightwatch) _ ...

Requirements

Usage

Many things are still in the flow

Setup

use npm set progress=false as to dramatically improve the speed of npm

Install grunt-cli and typings, in the global scope -g:

npm i -g yo grunt-cli typings generator-angular2-ts

Create a new folder for your project, and cd into it:

mkdir my-new-app && cd $_

Run yo angular2-ts

yo angular2-ts [appname]

Develop in the Browser

Have fun with fun.

npm run start

or

grunt fun

Release

As to build the final app run

grunt build

Docker

As to build the docker image run

npm run docker

and have run

docker run -it --rm -p 80:8080 angular2-ts

in the deployment.

generator-angular2-ts's People

Contributors

katallaxie avatar

Watchers

James Cloos avatar LennyHu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.