Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 2.28 KB

README.md

File metadata and controls

42 lines (28 loc) · 2.28 KB

angular2-seed

A simple Angular 2/Typescript seed with some extra goodies.

Setup/Tooling

  • Install Node.js. I recommend installing Node using n, a version manager that makes it easy to keep your Node version up to date and switch between versions (https://github.com/tj/n). npm install -g n && n latest

  • This project is provided with an .editorconfig file (http://editorconfig.org/). Editor config allows us to keep certain editor-dependent style choices consistent between our development machines. Check out http://editorconfig.org/#download and download the corresponding plugin for your editor of choice (support for Sublime, Atom, Brackets, VS Code, etc).

Quickstart

  1. npm install: Installs dependencies and typings.

  2. npm run build: Cleans out /build and rebuilds project into /build.

  3. npm start: Recompiles the project and starts web server.

NOTE: Gulp will watch for changes to your files and automatically update /build. If you are having issues, you can try to rerun run npm run build.

Styleguide

NOTE: This styleguide section is incomplete and will be fleshed out in the future.

Other Notes

  • Currently BrowserSync does not support injecting Angular2 component CSS since it is embedded. From the lite-server docs:
CSS with Angular 2 is embedded thus even though BrowserSync detects the file change to CSS, it does not inject the file via sockets. As a workaround, injectChanges defaults to false.