8000 GitHub - happysky/angular2-demo: Angular2 + SASS + TypeScript + SystemJS + NPM Builds
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

happysky/angular2-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular2 Demo

A minimal Angular2 demo site using:

  • TypeScript
  • SystemJS
  • NPM Build
  • SASS

You can see the a running demo here.

Commands

command description
npm run setup installs globals/etc
npm run clean clean dist directory
npm run build clean, ts & sass build
npm run build:ts typescript build
npm run build:sass sass build
npm run build:css postcss build
npm run watch clean/watch ts & sass
npm run watch:ts watch typescript
npm run watch:sass watch sass
npm run dev build, watch, browsersync

Component Tree

Below outlines a tree of how the components are arranged in the Angular2 component tree.

component tree

File Structure

The folder structure is aimed to encapsulate components into their own modules. In each component folder, it contains all the html, css, js for that component. Components that are not coupled to this application are grouped into a common folder for reuse.

└── src
    ├── app           -- root     component
    │   ├── header    -- header   component
    │   └── rsvp      -- rsvp     component 
    └── common        -- root     utilities and components that are reusable
        ├── parallax  -- parallax component
        └── utils     -- misc     utilities

Credits

The demonstration was a project to learn Angular2 while teaching my beautiful fiancée how to code our wedding website; I hope you enjoy! The project was presented at SFL Code Conference, for slides click here.

About

Angular2 + SASS + TypeScript + SystemJS + NPM Builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 62.7%
  • TypeScript 23.8%
  • HTML 13.5%
0