Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore(tsconfig): include typings
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed Jan 23, 2016
1 parent 7fbe6f4 commit a063a66
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"main": "index.js",
"scripts": {
"test": "karma start",
"start_universal": "node dist/app/main-server.js"
"start_universal": "node dist/app/main-server.js",
"clean-ng2": "rimraf node_modules/angular2/manual_typings",
"postinstall": "npm run clean-ng2"
},
"author": "",
"license": "MIT",
"dependencies": {
"angular2": "^2.0.0-beta.1",
"angular2-universal-preview": "^0.32.0",
"angular2-universal-preview": "^0.32.1",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.13",
"express": "^4.13.3",
Expand All @@ -34,10 +36,12 @@
"karma-firefox-launcher": "^0.1.7",
"karma-jasmine": "^0.3.6",
"karma-systemjs": "^0.10.0",
"rimraf": "^2.5.1",
"systemjs": "^0.19.6",
"systemjs-builder": "^0.14.11",
"ts-node": "^0.5.4",
"typescript": "^1.7.3",
"typescript-node": "^0.1.3"
"typescript-node": "^0.1.3",
"typings": "^0.6.2"
}
}
2 changes: 0 additions & 2 deletions src/main-server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../typings/tsd.d.ts" />

import * as path from 'path';
import * as express from 'express';
import {SERVER_LOCATION_PROVIDERS, ng2engine} from 'angular2-universal-preview/dist/server';
Expand Down
4 changes: 1 addition & 3 deletions src/services/Backend.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../typings/tsd.d.ts" />

import * as Firebase from 'firebase';
import {Injectable} from 'angular2/core';
import {Observable} from 'rxjs/Observable';
Expand Down Expand Up @@ -37,4 +35,4 @@ export class Backend {
authRequest.subscribe(this.authState);

}
}
}
13 changes: 4 additions & 9 deletions tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ var Builder = require('systemjs-builder');
var util = require('gulp-util');
var ts = require('gulp-typescript');

var tsProject = ts.createProject('tsconfig.json');

export const compile = (gulp, config) => {
gulp.task('compile:main-server', () => {
return gulp.src('src/**/*.ts')
.pipe(ts({
noImplicitAny: false,
typescript: require('typescript'),
module: 'commonjs',
emitDecoratorMetadata: true,
experimentalDecorators: true,
moduleResolution: 'node'
}))
return tsProject.src()
.pipe(ts(tsProject))
.pipe(gulp.dest('dist/app'));
});

Expand Down
11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
"noResolve": false
},
"files": [
"src/main.ts",
"src/main-server.ts"
],
"exclude": [
"node_modules/"
"typings/main.d.ts",
"src/main.ts",
"src/main-server.ts",
"src/ng2-service-worker.ts"
]
}
}

0 comments on commit a063a66

Please sign in to comment.