/angular2-ts-bootstrap4-webpack-gulp

angular2 with typescript bootstrap4 webpack gulp & ui bootstrap

Primary LanguageJavaScript

##Angular 2.0b.9 Bootstrap 4a.2 Gulp Webpack Typescript Ui-Bootstrap

###Installation

Requirements:

  • NodeJS
  • Knowledge of gulp
  • Knowledge of webpack
  • Knowledge of angular2
  • Knowledge of Bootstrap
  • Knowledge of Sass

Installation:

npm install -g gulp typescript typings webpack
npm install
typings install

To run:

'gulp' or 'gulp list' to list available gulp tasks

###Usage

This starter kit should help you get started in learning angular 2 and bootstrap 4.

  • Gulp tasks are seperated in the ./gulp-tasks folder
  • typings are install to /typings
  • Server side rendering
  • Webpack hot-reload
  • Server side entry point for express is config/server/boot.ts
  • Client/Browser side entry point for express is config/browser/boot.ts
  • Add routes in config/routes.ts

###Current Version bootstrap and angular 2 installed

Angular 2.0 RC 2

Angular Universal for server side rendering

Bootstrap 4.0 Alpha 2

###Tips for working with angular2 and typescript

  1. If you have tsd installed, remove it.
  npm uninstall tsd -g
  1. You should only use typings as it successor to tsd much like npm is the successor to bower. As far as I can tell, the reason behind this is because when you install typings it seems you get a browser version and a node version of typings.
  npm install typings -g
  1. If you are using atom(if not you should be), use the (https://atom.io/packages/language-typescript-grammars-only)[Grammer Only] plugin as the other typescript plugins have some very weird uninteded issues such as auto compiling typescript or saying you haven't included tsd files when its not necessary.

  2. Don't use browserify with angular2, just don't. Its a nightmare and hard to get things into 1 file. Take it from experience. Learn how to use webpack, you will like it better in the end.

  3. Don't use angular2 without typescript. Everyone is using it that way and all the examples are that using it with typescript. You will have a hard time finding help with es5 angular2.