├── .gitignore
├── assets
└── scss
│ └── app.scss
├── dev
├── boot.ts
└── app.component.ts
├── .editorconfig
├── tsconfig.json
├── README.md
├── package.json
├── LICENSE.md
├── index.html
└── gulpfile.js
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /app
3 | /src
4 |
--------------------------------------------------------------------------------
/assets/scss/app.scss:
--------------------------------------------------------------------------------
1 | body {
2 | padding: 32px;
3 | margin: 32px;
4 | font-family: "Roboto", Arial, sans-serif;
5 | font-size: 16px;
6 | }
7 |
--------------------------------------------------------------------------------
/dev/boot.ts:
--------------------------------------------------------------------------------
1 | ///
Hello World!
8 | `, 9 | }) 10 | export class AppComponent { 11 | 12 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES5", 4 | "module": "system", 5 | "moduleResolution": "node", 6 | "sourceMap": true, 7 | "emitDecoratorMetadata": true, 8 | "experimentalDecorators": true, 9 | "removeComments": false, 10 | "noImplicitAny": false, 11 | "outDir": "./app" 12 | }, 13 | "filesGlob": [ 14 | "./dev/**/*.ts", 15 | "!./node_modules/**/*.ts" 16 | ], 17 | "exclude": [ 18 | "node_modules", 19 | "typings/main", 20 | "typings/main.d.ts" 21 | ], 22 | "atom": { 23 | "rewriteTsconfig": true 24 | } 25 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular 2 Beta Boilerplate 2 | 3 | ## Description 4 | This repository acts as a very simple Angular 2 Beta Boilerplate with which you can get started developing Angular 2 immediately. 5 | It is derived from the official Angular 2 Documentation which can be found [here](https://angular.io/docs/ts/latest/quickstart.html). 6 | ## Usage 7 | Follow the following steps and you're good to go! Important: Typescript and npm has to be installed on your machine! 8 | 9 | 1: Clone repo 10 | ``` 11 | git clone https://github.com/mschwarzmueller/angular-2-beta-boilerplate.git 12 | ``` 13 | 2: Install packages 14 | ``` 15 | npm install 16 | ``` 17 | 3: Start server (includes auto refreshing) and gulp watcher 18 | ``` 19 | npm start 20 | ``` 21 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular2-boilerplate", 3 | "version": "1.0.0", 4 | "scripts": { 5 | "lite": "lite-server", 6 | "gulp": "gulp", 7 | "start": "concurrent \"npm run gulp\" \"npm run lite\" " 8 | }, 9 | "license": "ISC", 10 | "dependencies": { 11 | "angular2": "2.0.0-beta.14", 12 | "systemjs": "0.19.25", 13 | "es6-shim": "^0.35.0", 14 | "reflect-metadata": "0.1.2", 15 | "rxjs": "5.0.0-beta.2", 16 | "zone.js": "0.6.6" 17 | }, 18 | "devDependencies": { 19 | "autoprefixer": "^6.3.5", 20 | "cssnano": "^3.4.0", 21 | "concurrently": "^2.0.0", 22 | "gulp": "^3.9.0", 23 | "gulp-ext-replace": "^0.2.0", 24 | "gulp-imagemin": "^2.4.0", 25 | "gulp-postcss": "^6.0.1", 26 | "gulp-sourcemaps": "^1.6.0", 27 | "gulp-typescript": "^2.10.0", 28 | "gulp-uglify": "^1.5.1", 29 | "lite-server": "^2.1.0", 30 | "postcss": "^5.0.13", 31 | "postcss-scss": "^0.1.3", 32 | "precss": "^1.3.0" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Maximilian Schwarzmüller 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |