Introduction
A seed project for Angular 2 apps.
It is something similar to the AngularJS Quick Start but does the entire build with gulp.
Note: Angular 2.0 is not production ready yet! This seed project is perfect for playing around with the latest versions but do not start new projects with it since a lot of new changes are going to be introduced until the framework is officially released.
How to start
git clone https://github.com/mgechev/angular2-seed.git
cd angular2-seed
npm install
# dev
npm run serve.devDoes not rely on any global dependencies.
Directory Structure
.
βββ app
β βββ components
β β βββ about
β β β βββ about.html
β β β βββ about.ts
β β β βββ about_spec.ts
β β βββ home
β β βββ home.html
β β βββ home.ts
β β βββ home_spec.ts
β βββ services
β β βββ name_list.ts
β β βββ name_list_spec.ts
β βββ typings
β βββ app.css
β βββ app.html
β βββ app.ts
β βββ index.html
β βββ init.ts
βββ dist
β βββ dev
β βββ prod
βββ tools
β βββ tasks
β βββ utils.js
β βββ workflow.config.js
βββ tsd_typings
βββ gulpfile.js
βββ karma.conf.js
βββ package.json
βββ test-main.js
βββ tsconfig.json
βββ tsd.json
Configuration
Default application server configuration
var PORT = 5555;
var LIVE_RELOAD_PORT = 4002;
var APP_BASE = '/';Configure at runtime
npm run serve.dev -- --port 8080 --reload-port 4000 --base /my-app/Now to extend?
If you want to use your custom libraries:
npm install my-library --save
vim gulpfile.jsAdd reference to the installed library in PATH.src.lib into ./tools/workflow.config.js.
Running test
# In a single bash window
npm run test
# Debug - In two bash windows
npm run karma # 1st window
npm run test-dev # 2nd windowContributors
| mgechev | ludohenin | NathanWalker | aboeglin | jerryorta-dev | TuiKiken |
| mjwwit | ultrasonicsoft | philipooo | redian | robertpenner | jgolla |
| dstockhammer |
Change Log
You can follow the Angular 2 change log here.
License
MIT