master 1507c30e8778 cached
25 files
15.1 KB
4.6k tokens
18 symbols
1 requests
Download .txt
Repository: kolorobot/angular2-typescript-gulp
Branch: master
Commit: 1507c30e8778
Files: 25
Total size: 15.1 KB

Directory structure:
gitextract_3__cv0ia/

├── .gitignore
├── LICENCE
├── README.md
├── bs-config.json
├── gulpfile.ts
├── package.json
├── src/
│   ├── app/
│   │   ├── about/
│   │   │   └── components/
│   │   │       ├── about.component.ts
│   │   │       └── about.html
│   │   ├── app.component.ts
│   │   ├── app.html
│   │   ├── app.module.ts
│   │   ├── app.routing.ts
│   │   ├── main.ts
│   │   └── todo/
│   │       ├── components/
│   │       │   ├── task-list.component.ts
│   │       │   ├── task-list.css
│   │       │   ├── task-list.html
│   │       │   ├── task.component.ts
│   │       │   └── task.html
│   │       ├── models/
│   │       │   └── task.ts
│   │       └── services/
│   │           └── task-service.ts
│   ├── index.html
│   └── systemjs.config.js
├── tsconfig.json
├── tslint.json
└── typings.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
.idea
build
node_modules
typings

================================================
FILE: LICENCE
================================================
MIT License

Copyright (c) 2016 Rafal Borowiec

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


================================================
FILE: README.md
================================================
Angular2 with TypeScript and Gulp
=================================

A basic Angular2 application with Gulp as build system.

#### 1. Prerequisites

*nodejs* must be installed on your system and the below global node packages must be installed:

- gulp

> npm i -g gulp

- gulp-cli

> npm i -g gulp-cli

- typings

> npm i -g typings@1.3.3

- typescript

> npm i -g typescript@2.0.2

- ts-node

> npm i -g ts-node@1.3.0

#### 2. Cloning the repository

Clone the repository:

> git clone https://github.com/kolorobot/angular2-typescript-gulp.git

Navigate to `angular2-typescript-gulp` directory:

> cd angular2-typescript-gulp

#### 3. Installing dependencies

Install dependencies by running the following command:

> npm install

`node_modules` and `typings` directories will be created during the install.

#### 4. Building the project

Build the project by running the following command:

> npm run clean & npm run build

`build` directory will be created during the build

#### 5. Starting the application

Start the application by running the following command:

> npm start

The application will be displayed in the browser.

Resources
---------

- [A step-by-step tutorial](http://blog.codeleak.pl/2016/03/quickstart-angular2-with-typescript-and.html)


================================================
FILE: bs-config.json
================================================
{
  "port": 8000,
  "files": [
    "build/**/*.{html,htm,css,js}"
  ],
  "server": {
    "baseDir": "build"
  }
}

================================================
FILE: gulpfile.ts
================================================
"use strict";

const gulp = require("gulp");
const del = require("del");
const tsc = require("gulp-typescript");
const sourcemaps = require('gulp-sourcemaps');
const tsProject = tsc.createProject("tsconfig.json");
const tslint = require('gulp-tslint');

/**
 * Remove build directory.
 */
gulp.task('clean', (cb) => {
    return del(["build"], cb);
});

/**
 * Lint all custom TypeScript files.
 */
gulp.task('tslint', () => {
    return gulp.src("src/**/*.ts")
        .pipe(tslint({
            formatter: 'prose'
        }))
        .pipe(tslint.report());
});

/**
 * Compile TypeScript sources and create sourcemaps in build directory.
 */
gulp.task("compile", ["tslint"], () => {
    let tsResult = gulp.src("src/**/*.ts")
        .pipe(sourcemaps.init())
        .pipe(tsProject());
    return tsResult.js
        .pipe(sourcemaps.write(".", {sourceRoot: '/src'}))
        .pipe(gulp.dest("build"));
});

/**
 * Copy all resources that are not TypeScript files into build directory.
 */
gulp.task("resources", () => {
    return gulp.src(["src/**/*", "!**/*.ts"])
        .pipe(gulp.dest("build"));
});

/**
 * Copy all required libraries into build directory.
 */
gulp.task("libs", () => {
    return gulp.src([
            'core-js/client/shim.min.js',
            'systemjs/dist/system-polyfills.js',
            'systemjs/dist/system.src.js',
            'reflect-metadata/Reflect.js',
            'rxjs/**/*.js',
            'zone.js/dist/**',
            '@angular/**/bundles/**'
        ], {cwd: "node_modules/**"}) /* Glob required here. */
        .pipe(gulp.dest("build/lib"));
});

/**
 * Watch for changes in TypeScript, HTML and CSS files.
 */
gulp.task('watch', function () {
    gulp.watch(["src/**/*.ts"], ['compile']).on('change', function (e) {
        console.log('TypeScript file ' + e.path + ' has been changed. Compiling.');
    });
    gulp.watch(["src/**/*.html", "src/**/*.css"], ['resources']).on('change', function (e) {
        console.log('Resource file ' + e.path + ' has been changed. Updating.');
    });
});

/**
 * Build the project.
 */
gulp.task("build", ['compile', 'resources', 'libs'], () => {
    console.log("Building the project ...");
});

================================================
FILE: package.json
================================================
{
  "name": "angular2-typescript-gulp",
  "version": "1.0.0",
  "description": "Angular2 with TypeScript and Gulp QuickStart",
  "scripts": {
    "clean": "gulp clean",
    "compile": "gulp compile",
    "build": "gulp build",
    "start": "concurrent --kill-others \"gulp watch\" \"lite-server\"",
    "postinstall": "typings install"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/kolorobot/angular2-typescript-gulp.git"
  },
  "author": "Rafał Borowiec",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/kolorobot/angular2-typescript-gulp/issues"
  },
  "dependencies": {
    "@angular/common": "~2.2.4",
    "@angular/compiler": "~2.2.4",
    "@angular/core": "~2.2.4",
    "@angular/forms": "~2.2.4",
    "@angular/http": "~2.2.4",
    "@angular/platform-browser": "~2.2.4",
    "@angular/platform-browser-dynamic": "~2.2.4",
    "@angular/router": "~3.2.4",
    "@angular/upgrade": "~2.2.4",

    "core-js": "^2.4.1",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.12",
    "systemjs": "0.19.27",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "concurrently": "^3.1.0",
    "del": "^2.2.0",
    "gulp": "^3.9.1",
    "gulp-sourcemaps": "^1.9.1",
    "gulp-tslint": "^7.0.1",
    "gulp-typescript": "^3.1.3",
    "lite-server": "^2.2.2",
    "tslint": "^4.0.2",
    "typescript": "^2.1.4",
    "typings": "^2.0.0",
    "ts-node": "^1.7.2"
  }
}


================================================
FILE: src/app/about/components/about.component.ts
================================================
import {Component} from "@angular/core";
import {OnInit} from "@angular/core";

@Component({
    templateUrl: './app/about/components/about.html'
})
export class AboutComponent implements OnInit {

    ngOnInit() {

    }
}

================================================
FILE: src/app/about/components/about.html
================================================
<h1>About</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

================================================
FILE: src/app/app.component.ts
================================================
import {Component, OnInit} from "@angular/core";

@Component({
    selector: "app",
    templateUrl: "./app/app.html"
})
export class AppComponent implements OnInit {
    ngOnInit() {
        console.log("Application component initialized ...");
    }
}

================================================
FILE: src/app/app.html
================================================
<section>
    <nav>
        <a routerLink="/tasks">Task List</a>
        <a routerLink="/about">About</a>
    </nav>
    <router-outlet></router-outlet>
</section>

================================================
FILE: src/app/app.module.ts
================================================
import {NgModule}      from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {AppComponent} from "./app.component";
import {TaskListComponent} from "./todo/components/task-list.component";
import {AboutComponent} from "./about/components/about.component";
import {TaskComponent} from "./todo/components/task.component";

import {routing, appRoutingProviders} from './app.routing';
import {FormsModule} from "@angular/forms";

@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        routing
    ],
    declarations: [
        AppComponent,
        TaskComponent,
        TaskListComponent,
        AboutComponent
    ],
    providers: [
        appRoutingProviders
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}

================================================
FILE: src/app/app.routing.ts
================================================
import {Routes, RouterModule} from "@angular/router";
import {TaskListComponent} from "./todo/components/task-list.component";
import {AboutComponent} from "./about/components/about.component";
import {ModuleWithProviders} from "@angular/core";

const appRoutes: Routes = [
    {path: '', redirectTo: 'tasks', pathMatch: 'full'},
    {path: 'tasks', component: TaskListComponent, data: {title: 'TaskList'}},
    {path: 'about', component: AboutComponent, data: {title: 'About'}}
];

export const appRoutingProviders: any[] = [];
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true });


================================================
FILE: src/app/main.ts
================================================
///<reference path="../../typings/index.d.ts"/>

import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {AppModule} from './app.module';

const platform = platformBrowserDynamic();

platform.bootstrapModule(AppModule);

================================================
FILE: src/app/todo/components/task-list.component.ts
================================================
import {Component} from "@angular/core";
import {Task} from "../models/task";
import {OnInit} from "@angular/core";
import {TaskService} from "../services/task-service";
import {TaskComponent} from "./task.component";

@Component({
    selector: 'task-list',
    templateUrl: './app/todo/components/task-list.html',
    styleUrls: ['./app/todo/components/task-list.css'],
    providers: [TaskService]
})
export class TaskListComponent implements OnInit {

    todoCount:number;
    selectedTask:Task;
    tasks:Array<Task>;

    constructor(private _taskService:TaskService) {
        this.tasks = _taskService.getTasks();
        this.calculateTodoCount();
    }

    ngOnInit() {
        console.log("Todo component initialized with " + this.tasks.length + " tasks.");
    }

    calculateTodoCount() {
        this.todoCount = this.tasks.filter(t => !t.done).length;
    }

    select(task:Task) {
        this.selectedTask = task;
    }
}

================================================
FILE: src/app/todo/components/task-list.css
================================================
li.selected {
    background-color: #8a8a8a;
}

================================================
FILE: src/app/todo/components/task-list.html
================================================
<h1>Todo tasks ({{todoCount}})</h1>
<ul>
    <li *ngFor="let task of tasks" [class.selected]="task == selectedTask">
        <a href="javascript:void(0)" (click)="select(task)">
            {{task.name}}
            <span [ngSwitch]="task.done">
                <template [ngSwitchCase]="true">[Done]</template>
                <template [ngSwitchCase]="false">[Todo]</template>
            </span>
        </a>
    </li>
</ul>

<task *ngIf="selectedTask" [task]="selectedTask" (statusChanged)="calculateTodoCount()"></task>

================================================
FILE: src/app/todo/components/task.component.ts
================================================
import {Component} from "@angular/core";
import {Input} from "@angular/core";

import {Task} from "../models/task";
import {Output} from "@angular/core";
import {EventEmitter} from "@angular/core";

@Component({
    selector: 'task',
    templateUrl: './app/todo/components/task.html'
})
export class TaskComponent {
    @Input() task:Task;
    @Output() statusChanged:any = new EventEmitter<any>();

    toggleDone() {
        this.task.toggleDone();
        this.statusChanged.emit(null);
    }
}


================================================
FILE: src/app/todo/components/task.html
================================================
<form role="form">
    <input title="Name" type="text" [(ngModel)]="task.name" name="name" [disabled]="task.done" />
    <input title="Done" type="checkbox" (click)="toggleDone()" [checked]="task.done" />
</form>


================================================
FILE: src/app/todo/models/task.ts
================================================
export class Task {

    constructor(public name:string, public done:boolean) {
    }

    toggleDone() {
        this.done = !this.done;
    }
}

================================================
FILE: src/app/todo/services/task-service.ts
================================================
import {Injectable} from "@angular/core";
import {Task} from "../models/task";

@Injectable()
export class TaskService {

    private tasks:Array<Task> = [
        new Task("Task 1", false),
        new Task("Task 2", false),
        new Task("Task 3", false),
        new Task("Task 4", false),
        new Task("Task 5", false)
    ];

    getTasks():Array<Task> {
        return this.tasks;
    }

    addTask(name:string) {
        this.tasks.push(new Task(name, false));
    }

}

================================================
FILE: src/index.html
================================================
<html>
<head>
    <title>Angular 2 TypeScript Gulp QuickStart</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 1. Load libraries -->
    <!-- Polyfill(s) for older browsers -->
    <script src="lib/core-js/client/shim.min.js"></script>

    <script src="lib/zone.js/dist/zone.js"></script>
    <script src="lib/reflect-metadata/Reflect.js"></script>
    <script src="lib/systemjs/dist/system.src.js"></script>

    <!-- 2. Configure SystemJS -->
    <script src="systemjs.config.js"></script>
    <script>
        System.import('app')
                .then(null, console.error.bind(console));
    </script>

</head>

<!-- 3. Display the application -->
<body>
<app>Loading...</app>
</body>

</html>


================================================
FILE: src/systemjs.config.js
================================================
(function (global) {
    System.config({
        paths: {
            // paths serve as alias
            'npm:': 'lib/'
        },
        // map tells the System loader where to look for things
        map: {
            // our app is within the app folder
            app: 'app',
            // angular bundles
            '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
            '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
            '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
            '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
            '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
            '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
            '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
            '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
            // other libraries
            'rxjs': 'npm:rxjs'
        },
        // packages tells the System loader how to load when no filename and/or no extension
        packages: {
            app: {
                main: './main.js',
                defaultExtension: 'js'
            },
            rxjs: {
                defaultExtension: 'js'
            }
        }
    });
})(this);


================================================
FILE: tsconfig.json
================================================
{
  "compilerOptions": {
    "outDir": "build/app",
    "target": "es5",
    "module": "system",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "gulpfile.ts",
    "node_modules"
  ]
}

================================================
FILE: tslint.json
================================================
{
  "rules": {
    "class-name": true,
    "curly": true,
    "eofline": false,
    "forin": true,
    "indent": [
      true,
      4
    ],
    "label-position": true,
    "max-line-length": [
      true,
      140
    ],
    "no-arg": true,
    "no-bitwise": true,
    "no-console": [
      true,
      "debug",
      "info",
      "time",
      "timeEnd",
      "trace"
    ],
    "no-construct": true,
    "no-debugger": true,
    "no-duplicate-variable": true,
    "no-empty": false,
    "no-eval": true,
    "no-string-literal": false,
    "no-trailing-whitespace": true,
    "no-use-before-declare": true,
    "one-line": [
      true,
      "check-open-brace",
      "check-catch",
      "check-else",
      "check-whitespace"
    ],
    "radix": true,
    "semicolon": true,
    "triple-equals": [
      true,
      "allow-null-check"
    ],
    "variable-name": false,
    "whitespace": [
      true,
      "check-branch",
      "check-decl",
      "check-operator",
      "check-separator"
    ]
  }
}


================================================
FILE: typings.json
================================================
{
  "globalDependencies": {
    "core-js": "registry:dt/core-js#0.0.0+20160725163759",
    "node": "registry:dt/node#6.0.0+20160909174046",
    "jasmine": "registry:dt/jasmine#2.2.0+20160621224255"
  }
}
Download .txt
gitextract_3__cv0ia/

├── .gitignore
├── LICENCE
├── README.md
├── bs-config.json
├── gulpfile.ts
├── package.json
├── src/
│   ├── app/
│   │   ├── about/
│   │   │   └── components/
│   │   │       ├── about.component.ts
│   │   │       └── about.html
│   │   ├── app.component.ts
│   │   ├── app.html
│   │   ├── app.module.ts
│   │   ├── app.routing.ts
│   │   ├── main.ts
│   │   └── todo/
│   │       ├── components/
│   │       │   ├── task-list.component.ts
│   │       │   ├── task-list.css
│   │       │   ├── task-list.html
│   │       │   ├── task.component.ts
│   │       │   └── task.html
│   │       ├── models/
│   │       │   └── task.ts
│   │       └── services/
│   │           └── task-service.ts
│   ├── index.html
│   └── systemjs.config.js
├── tsconfig.json
├── tslint.json
└── typings.json
Download .txt
SYMBOL INDEX (18 symbols across 7 files)

FILE: src/app/about/components/about.component.ts
  class AboutComponent (line 7) | class AboutComponent implements OnInit {
    method ngOnInit (line 9) | ngOnInit() {

FILE: src/app/app.component.ts
  class AppComponent (line 7) | class AppComponent implements OnInit {
    method ngOnInit (line 8) | ngOnInit() {

FILE: src/app/app.module.ts
  class AppModule (line 29) | class AppModule {

FILE: src/app/todo/components/task-list.component.ts
  class TaskListComponent (line 13) | class TaskListComponent implements OnInit {
    method constructor (line 19) | constructor(private _taskService:TaskService) {
    method ngOnInit (line 24) | ngOnInit() {
    method calculateTodoCount (line 28) | calculateTodoCount() {
    method select (line 32) | select(task:Task) {

FILE: src/app/todo/components/task.component.ts
  class TaskComponent (line 12) | class TaskComponent {
    method toggleDone (line 16) | toggleDone() {

FILE: src/app/todo/models/task.ts
  class Task (line 1) | class Task {
    method constructor (line 3) | constructor(public name:string, public done:boolean) {
    method toggleDone (line 6) | toggleDone() {

FILE: src/app/todo/services/task-service.ts
  class TaskService (line 5) | class TaskService {
    method getTasks (line 15) | getTasks():Array<Task> {
    method addTask (line 19) | addTask(name:string) {
Condensed preview — 25 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (18K chars).
[
  {
    "path": ".gitignore",
    "chars": 32,
    "preview": ".idea\nbuild\nnode_modules\ntypings"
  },
  {
    "path": "LICENCE",
    "chars": 1071,
    "preview": "MIT License\n\nCopyright (c) 2016 Rafal Borowiec\n\nPermission is hereby granted, free of charge, to any person obtaining a "
  },
  {
    "path": "README.md",
    "chars": 1261,
    "preview": "Angular2 with TypeScript and Gulp\n=================================\n\nA basic Angular2 application with Gulp as build sys"
  },
  {
    "path": "bs-config.json",
    "chars": 113,
    "preview": "{\n  \"port\": 8000,\n  \"files\": [\n    \"build/**/*.{html,htm,css,js}\"\n  ],\n  \"server\": {\n    \"baseDir\": \"build\"\n  }\n}"
  },
  {
    "path": "gulpfile.ts",
    "chars": 2188,
    "preview": "\"use strict\";\n\nconst gulp = require(\"gulp\");\nconst del = require(\"del\");\nconst tsc = require(\"gulp-typescript\");\nconst s"
  },
  {
    "path": "package.json",
    "chars": 1411,
    "preview": "{\n  \"name\": \"angular2-typescript-gulp\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Angular2 with TypeScript and Gulp QuickS"
  },
  {
    "path": "src/app/about/components/about.component.ts",
    "chars": 223,
    "preview": "import {Component} from \"@angular/core\";\nimport {OnInit} from \"@angular/core\";\n\n@Component({\n    templateUrl: './app/abo"
  },
  {
    "path": "src/app/about/components/about.html",
    "chars": 596,
    "preview": "<h1>About</h1>\n<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the in"
  },
  {
    "path": "src/app/app.component.ts",
    "chars": 253,
    "preview": "import {Component, OnInit} from \"@angular/core\";\n\n@Component({\n    selector: \"app\",\n    templateUrl: \"./app/app.html\"\n})"
  },
  {
    "path": "src/app/app.html",
    "chars": 163,
    "preview": "<section>\n    <nav>\n        <a routerLink=\"/tasks\">Task List</a>\n        <a routerLink=\"/about\">About</a>\n    </nav>\n   "
  },
  {
    "path": "src/app/app.module.ts",
    "chars": 786,
    "preview": "import {NgModule}      from '@angular/core';\nimport {BrowserModule} from '@angular/platform-browser';\n\nimport {AppCompon"
  },
  {
    "path": "src/app/app.routing.ts",
    "chars": 625,
    "preview": "import {Routes, RouterModule} from \"@angular/router\";\nimport {TaskListComponent} from \"./todo/components/task-list.compo"
  },
  {
    "path": "src/app/main.ts",
    "chars": 244,
    "preview": "///<reference path=\"../../typings/index.d.ts\"/>\n\nimport {platformBrowserDynamic} from '@angular/platform-browser-dynamic"
  },
  {
    "path": "src/app/todo/components/task-list.component.ts",
    "chars": 942,
    "preview": "import {Component} from \"@angular/core\";\nimport {Task} from \"../models/task\";\nimport {OnInit} from \"@angular/core\";\nimpo"
  },
  {
    "path": "src/app/todo/components/task-list.css",
    "chars": 46,
    "preview": "li.selected {\n    background-color: #8a8a8a;\n}"
  },
  {
    "path": "src/app/todo/components/task-list.html",
    "chars": 524,
    "preview": "<h1>Todo tasks ({{todoCount}})</h1>\n<ul>\n    <li *ngFor=\"let task of tasks\" [class.selected]=\"task == selectedTask\">\n   "
  },
  {
    "path": "src/app/todo/components/task.component.ts",
    "chars": 499,
    "preview": "import {Component} from \"@angular/core\";\nimport {Input} from \"@angular/core\";\n\nimport {Task} from \"../models/task\";\nimpo"
  },
  {
    "path": "src/app/todo/components/task.html",
    "chars": 213,
    "preview": "<form role=\"form\">\n    <input title=\"Name\" type=\"text\" [(ngModel)]=\"task.name\" name=\"name\" [disabled]=\"task.done\" />\n   "
  },
  {
    "path": "src/app/todo/models/task.ts",
    "chars": 145,
    "preview": "export class Task {\n\n    constructor(public name:string, public done:boolean) {\n    }\n\n    toggleDone() {\n        this.d"
  },
  {
    "path": "src/app/todo/services/task-service.ts",
    "chars": 484,
    "preview": "import {Injectable} from \"@angular/core\";\nimport {Task} from \"../models/task\";\n\n@Injectable()\nexport class TaskService {"
  },
  {
    "path": "src/index.html",
    "chars": 741,
    "preview": "<html>\n<head>\n    <title>Angular 2 TypeScript Gulp QuickStart</title>\n    <meta name=\"viewport\" content=\"width=device-wi"
  },
  {
    "path": "src/systemjs.config.js",
    "chars": 1392,
    "preview": "(function (global) {\n    System.config({\n        paths: {\n            // paths serve as alias\n            'npm:': 'lib/'"
  },
  {
    "path": "tsconfig.json",
    "chars": 342,
    "preview": "{\n  \"compilerOptions\": {\n    \"outDir\": \"build/app\",\n    \"target\": \"es5\",\n    \"module\": \"system\",\n    \"moduleResolution\":"
  },
  {
    "path": "tslint.json",
    "chars": 1014,
    "preview": "{\n  \"rules\": {\n    \"class-name\": true,\n    \"curly\": true,\n    \"eofline\": false,\n    \"forin\": true,\n    \"indent\": [\n     "
  },
  {
    "path": "typings.json",
    "chars": 203,
    "preview": "{\n  \"globalDependencies\": {\n    \"core-js\": \"registry:dt/core-js#0.0.0+20160725163759\",\n    \"node\": \"registry:dt/node#6.0"
  }
]

About this extraction

This page contains the full source code of the kolorobot/angular2-typescript-gulp GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 25 files (15.1 KB), approximately 4.6k tokens, and a symbol index with 18 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!