cleanup: cleanup tsconfig files
This commit is contained in:
parent
4b2740f270
commit
a5371bfb8a
|
@ -2,8 +2,8 @@
|
||||||
"name": "vladivostok",
|
"name": "vladivostok",
|
||||||
"version": "0.9.1",
|
"version": "0.9.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist/router.js",
|
"main": "./dist/src/index.js",
|
||||||
"jsnext:main": "./dist/es6/router.js",
|
"jsnext:main": "./dist/es6/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"karma": "karma start",
|
"karma": "karma start",
|
||||||
"test": "npm run build; karma start",
|
"test": "npm run build; karma start",
|
||||||
|
|
|
@ -37,7 +37,7 @@ function constructActivatedRoute(componentResolver: ComponentResolver, match: Ma
|
||||||
function recognizeMany(componentResolver: ComponentResolver, config: Route[], urls: TreeNode<UrlSegment>[],
|
function recognizeMany(componentResolver: ComponentResolver, config: Route[], urls: TreeNode<UrlSegment>[],
|
||||||
existingRoutes: TreeNode<ActivatedRoute>[]): Promise<TreeNode<ActivatedRoute>[]> {
|
existingRoutes: TreeNode<ActivatedRoute>[]): Promise<TreeNode<ActivatedRoute>[]> {
|
||||||
const recognized = urls.map(url => recognizeOne(componentResolver, config, url, existingRoutes));
|
const recognized = urls.map(url => recognizeOne(componentResolver, config, url, existingRoutes));
|
||||||
return Promise.all(<any>recognized).then(flatten);
|
return Promise.all(<any>recognized).then(<any>flatten);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createOrReuseRoute(match: MatchResult, factory: ComponentFactory<any>, existing: TreeNode<ActivatedRoute> | null): ActivatedRoute {
|
function createOrReuseRoute(match: MatchResult, factory: ComponentFactory<any>, existing: TreeNode<ActivatedRoute> | null): ActivatedRoute {
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
import {TestComponentBuilder, ComponentFixture} from '@angular/compiler/testing';
|
import {TestComponentBuilder, ComponentFixture} from '@angular/compiler/testing';
|
||||||
import { ComponentResolver } from '@angular/core';
|
import { ComponentResolver } from '@angular/core';
|
||||||
import { SpyLocation } from '@angular/common/testing';
|
import { SpyLocation } from '@angular/common/testing';
|
||||||
import { UrlSerializer, DefaultUrlSerializer, RouterOutletMap, Router, ActivatedRoute, ROUTER_DIRECTIVES } from '../index';
|
import { UrlSerializer, DefaultUrlSerializer, RouterOutletMap, Router, ActivatedRoute, ROUTER_DIRECTIVES } from '../src/index';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import 'rxjs/add/operator/map';
|
import 'rxjs/add/operator/map';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,19 @@
|
||||||
"removeComments": true
|
"removeComments": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
"src/index.ts",
|
||||||
"src/router.ts",
|
"src/router.ts",
|
||||||
|
"src/recognize.ts",
|
||||||
|
"src/router.ts",
|
||||||
|
"src/config.ts",
|
||||||
|
"src/router_outlet_map.ts",
|
||||||
|
"src/router_state.ts",
|
||||||
|
"src/url_serializer.ts",
|
||||||
|
"src/url_tree.ts",
|
||||||
|
"src/directives/router_outlet.ts",
|
||||||
|
"src/directives/router_link.ts",
|
||||||
|
"src/utils/tree.ts",
|
||||||
|
"src/utils/collection.ts",
|
||||||
"test/utils/tree.spec.ts",
|
"test/utils/tree.spec.ts",
|
||||||
"test/url_serializer.spec.ts",
|
"test/url_serializer.spec.ts",
|
||||||
"test/recognize.spec.ts",
|
"test/recognize.spec.ts",
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"strictNullChecks": true,
|
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
|
@ -14,7 +13,7 @@
|
||||||
"removeComments": true
|
"removeComments": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/router.ts",
|
"src/index.ts",
|
||||||
"typings/index.d.ts"
|
"typings/index.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"strictNullChecks": true,
|
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"outDir": "dist/es6",
|
"outDir": "dist/es6",
|
||||||
|
@ -14,6 +13,6 @@
|
||||||
"moduleResolution": "node"
|
"moduleResolution": "node"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/router.ts"
|
"src/index.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue