refactor: update paths from modules/@angular to packages
This commit is contained in:
parent
da8ea350b2
commit
b74ab83d2c
|
@ -87,7 +87,7 @@ groups:
|
||||||
core:
|
core:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/core/*"
|
- "packages/core/*"
|
||||||
users:
|
users:
|
||||||
- tbosch #primary
|
- tbosch #primary
|
||||||
- mhevery
|
- mhevery
|
||||||
|
@ -97,7 +97,7 @@ groups:
|
||||||
compiler/animations:
|
compiler/animations:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/compiler/src/animation/*"
|
- "packages/compiler/src/animation/*"
|
||||||
users:
|
users:
|
||||||
- matsko #primary
|
- matsko #primary
|
||||||
- tbosch
|
- tbosch
|
||||||
|
@ -107,7 +107,7 @@ groups:
|
||||||
compiler/i18n:
|
compiler/i18n:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/compiler/src/i18n/*"
|
- "packages/compiler/src/i18n/*"
|
||||||
users:
|
users:
|
||||||
- vicb #primary
|
- vicb #primary
|
||||||
- tbosch
|
- tbosch
|
||||||
|
@ -117,7 +117,7 @@ groups:
|
||||||
compiler:
|
compiler:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/compiler/*"
|
- "packages/compiler/*"
|
||||||
users:
|
users:
|
||||||
- tbosch #primary
|
- tbosch #primary
|
||||||
- vicb
|
- vicb
|
||||||
|
@ -129,7 +129,7 @@ groups:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "tools/@angular/tsc-wrapped/*"
|
- "tools/@angular/tsc-wrapped/*"
|
||||||
- "modules/@angular/compiler-cli/*"
|
- "packages/compiler-cli/*"
|
||||||
users:
|
users:
|
||||||
- alexeagle
|
- alexeagle
|
||||||
- chuckjaz
|
- chuckjaz
|
||||||
|
@ -140,7 +140,7 @@ groups:
|
||||||
common:
|
common:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/common/*"
|
- "packages/common/*"
|
||||||
users:
|
users:
|
||||||
- pkozlowski-opensource #primary
|
- pkozlowski-opensource #primary
|
||||||
- vicb
|
- vicb
|
||||||
|
@ -150,7 +150,7 @@ groups:
|
||||||
forms:
|
forms:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/forms/*"
|
- "packages/forms/*"
|
||||||
users:
|
users:
|
||||||
- kara #primary
|
- kara #primary
|
||||||
# needs secondary
|
# needs secondary
|
||||||
|
@ -160,7 +160,7 @@ groups:
|
||||||
http:
|
http:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/http/*"
|
- "packages/http/*"
|
||||||
users:
|
users:
|
||||||
- vikerman #primary
|
- vikerman #primary
|
||||||
- alxhub
|
- alxhub
|
||||||
|
@ -170,7 +170,7 @@ groups:
|
||||||
language-service:
|
language-service:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/language-service/*"
|
- "packages/language-service/*"
|
||||||
users:
|
users:
|
||||||
- chuckjaz #primary
|
- chuckjaz #primary
|
||||||
# needs secondary
|
# needs secondary
|
||||||
|
@ -180,7 +180,7 @@ groups:
|
||||||
router:
|
router:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/router/*"
|
- "packages/router/*"
|
||||||
users:
|
users:
|
||||||
- vicb #primary
|
- vicb #primary
|
||||||
# needs secondary
|
# needs secondary
|
||||||
|
@ -190,7 +190,7 @@ groups:
|
||||||
upgrade:
|
upgrade:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/upgrade/*"
|
- "packages/upgrade/*"
|
||||||
users:
|
users:
|
||||||
- petebacondarwin #primary
|
- petebacondarwin #primary
|
||||||
- gkalpak
|
- gkalpak
|
||||||
|
@ -200,7 +200,7 @@ groups:
|
||||||
platform-browser:
|
platform-browser:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/platform-browser/*"
|
- "packages/platform-browser/*"
|
||||||
users:
|
users:
|
||||||
- tbosch #primary
|
- tbosch #primary
|
||||||
- vicb #secondary
|
- vicb #secondary
|
||||||
|
@ -210,7 +210,7 @@ groups:
|
||||||
platform-server:
|
platform-server:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/platform-server/*"
|
- "packages/platform-server/*"
|
||||||
users:
|
users:
|
||||||
- vikerman #primary
|
- vikerman #primary
|
||||||
- alxhub
|
- alxhub
|
||||||
|
@ -222,7 +222,7 @@ groups:
|
||||||
platform-webworker:
|
platform-webworker:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/platform-webworker/*"
|
- "packages/platform-webworker/*"
|
||||||
users:
|
users:
|
||||||
- vicb #primary
|
- vicb #primary
|
||||||
- tbosch #secondary
|
- tbosch #secondary
|
||||||
|
@ -234,7 +234,7 @@ groups:
|
||||||
benchpress:
|
benchpress:
|
||||||
conditions:
|
conditions:
|
||||||
files:
|
files:
|
||||||
- "modules/@angular/benchpress/*"
|
- "packages/benchpress/*"
|
||||||
users:
|
users:
|
||||||
- tbosch #primary
|
- tbosch #primary
|
||||||
# needs secondary
|
# needs secondary
|
||||||
|
|
|
@ -2020,7 +2020,7 @@ prefix using `animate-` must now be preixed using `bind-animate-`.
|
||||||
|
|
||||||
### ROUTER CHANGE LOG
|
### ROUTER CHANGE LOG
|
||||||
|
|
||||||
[You can find the router changelog here.](https://github.com/angular/angular/blob/master/modules/@angular/router/CHANGELOG.md)
|
[You can find the router changelog here.](https://github.com/angular/angular/blob/master/packages/router/CHANGELOG.md)
|
||||||
|
|
||||||
<a name="2.0.0-rc.4"></a>
|
<a name="2.0.0-rc.4"></a>
|
||||||
# [2.0.0-rc.4](https://github.com/angular/angular/compare/2.0.0-rc.3...2.0.0-rc.4) (2016-06-30)
|
# [2.0.0-rc.4](https://github.com/angular/angular/compare/2.0.0-rc.3...2.0.0-rc.4) (2016-06-30)
|
||||||
|
|
|
@ -548,7 +548,7 @@ Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
Use of this source code is governed by an MIT-style license that
|
Use of this source code is governed by an MIT-style license that
|
||||||
can be found in the LICENSE file at http://angular.io/license
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
*/"><input type="hidden" name="files[app/app.component.router.spec.ts]" value="// For more examples:
|
*/"><input type="hidden" name="files[app/app.component.router.spec.ts]" value="// For more examples:
|
||||||
// https://github.com/angular/angular/blob/master/modules/@angular/router/test/integration.spec.ts
|
// https://github.com/angular/angular/blob/master/packages/router/test/integration.spec.ts
|
||||||
|
|
||||||
import { async, ComponentFixture, fakeAsync, TestBed, tick,
|
import { async, ComponentFixture, fakeAsync, TestBed, tick,
|
||||||
} from '@angular/core/testing';
|
} from '@angular/core/testing';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// For more examples:
|
// For more examples:
|
||||||
// https://github.com/angular/angular/blob/master/modules/@angular/router/test/integration.spec.ts
|
// https://github.com/angular/angular/blob/master/packages/router/test/integration.spec.ts
|
||||||
|
|
||||||
import { async, ComponentFixture, fakeAsync, TestBed, tick,
|
import { async, ComponentFixture, fakeAsync, TestBed, tick,
|
||||||
} from '@angular/core/testing';
|
} from '@angular/core/testing';
|
||||||
|
|
|
@ -43,7 +43,7 @@ See the `package.json` of the test(s) you're debugging, to see which dist/ folde
|
||||||
Then run the right `tsc --watch` command to keep those dist folders up-to-date, for example:
|
Then run the right `tsc --watch` command to keep those dist folders up-to-date, for example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./node_modules/.bin/tsc -p modules/@angular/core/tsconfig-build.json --watch
|
$ ./node_modules/.bin/tsc -p packages/core/tsconfig-build.json --watch
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can run the integration test, it will re-install from the dist/ folder on each run.
|
Now you can run the integration test, it will re-install from the dist/ folder on each run.
|
||||||
|
|
|
@ -42,13 +42,9 @@ module.exports = function(config) {
|
||||||
'tools/build/file2modulename.js',
|
'tools/build/file2modulename.js',
|
||||||
'test-main.js',
|
'test-main.js',
|
||||||
{pattern: 'dist/all/empty.*', included: false, watched: false},
|
{pattern: 'dist/all/empty.*', included: false, watched: false},
|
||||||
|
{pattern: 'packages/platform-browser/test/static_assets/**', included: false, watched: false},
|
||||||
{
|
{
|
||||||
pattern: 'modules/@angular/platform-browser/test/static_assets/**',
|
pattern: 'packages/platform-browser/test/browser/static_assets/**',
|
||||||
included: false,
|
|
||||||
watched: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
pattern: 'modules/@angular/platform-browser/test/browser/static_assets/**',
|
|
||||||
included: false,
|
included: false,
|
||||||
watched: false,
|
watched: false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.io/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file intentionally left blank. It is used to load nothing in some cases.
|
||||||
|
// Such as parse5/index is redirected here instead of loading into browser.
|
||||||
|
|
||||||
|
export let __empty__: any;
|
|
@ -0,0 +1,65 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subset of lib.es2015.core.d.ts typings.
|
||||||
|
* Angular should not require use of ES6 runtime but some API usages are already present.
|
||||||
|
* See https://github.com/angular/angular/issues/5242
|
||||||
|
* TODO(alexeagle): remove methods below which may not be present in targeted browser
|
||||||
|
*/
|
||||||
|
|
||||||
|
interface String {
|
||||||
|
/**
|
||||||
|
* Returns true if the sequence of elements of searchString converted to a String is the
|
||||||
|
* same as the corresponding elements of this object (converted to a String) starting at
|
||||||
|
* position. Otherwise returns false.
|
||||||
|
*/
|
||||||
|
startsWith(searchString: string, position?: number): boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the sequence of elements of searchString converted to a String is the
|
||||||
|
* same as the corresponding elements of this object (converted to a String) starting at
|
||||||
|
* endPosition – length(this). Otherwise returns false.
|
||||||
|
*/
|
||||||
|
endsWith(searchString: string, endPosition?: number): boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Array<T> {
|
||||||
|
/**
|
||||||
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
||||||
|
* otherwise.
|
||||||
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
||||||
|
* immediately returns that element value. Otherwise, find returns undefined.
|
||||||
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
*/
|
||||||
|
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
|
||||||
|
/**
|
||||||
|
* Returns the this object after filling the section identified by start and end with value
|
||||||
|
* @param value value to fill array section with
|
||||||
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
||||||
|
* length+start where length is the length of the array.
|
||||||
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
||||||
|
* length+end.
|
||||||
|
*/
|
||||||
|
fill(value: T, start?: number, end?: number): T[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberConstructor {
|
||||||
|
/**
|
||||||
|
* Returns true if the value passed is an integer, false otherwise.
|
||||||
|
* @param number A numeric value.
|
||||||
|
*/
|
||||||
|
isInteger(number: number): boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Workaround https://github.com/Microsoft/TypeScript/issues/9193
|
||||||
|
interface PromiseConstructor {
|
||||||
|
all<T>(values: (T|PromiseLike<T>)[]): Promise<T[]>;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Function {
|
||||||
|
/**
|
||||||
|
* Returns the name of the function. Function names are read-only and can not be changed.
|
||||||
|
*/
|
||||||
|
readonly name: string;
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
/**
|
||||||
|
* Dummy typings for systemjs.
|
||||||
|
*/
|
||||||
|
declare var System: any;
|
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"declaration": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"module": "commonjs",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"outDir": "../dist/all/",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"paths": {
|
||||||
|
"selenium-webdriver": ["../node_modules/@types/selenium-webdriver/index.d.ts"],
|
||||||
|
"rxjs/*": ["../node_modules/rxjs/*"],
|
||||||
|
"@angular/*": ["../dist/all/@angular/*"],
|
||||||
|
"@angular/tsc-wrapped": ["../dist/tools/@angular/tsc-wrapped"],
|
||||||
|
"@angular/tsc-wrapped/*": ["../dist/tools/@angular/tsc-wrapped/*"]
|
||||||
|
},
|
||||||
|
"rootDir": ".",
|
||||||
|
"inlineSourceMap": true,
|
||||||
|
"lib": ["es5", "dom", "es2015.promise", "es2015.collection", "es2015.iterable"],
|
||||||
|
"skipDefaultLibCheck": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"target": "es5",
|
||||||
|
"types": ["angularjs"]
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"angular1_router",
|
||||||
|
"benchmarks/e2e_test/old",
|
||||||
|
"benchmarks/src/old",
|
||||||
|
"benchmarks/src/**/index_aot.ts",
|
||||||
|
"benchmarks_external",
|
||||||
|
"payload_tests",
|
||||||
|
"rollup-test"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.io/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file contains all ambient imports needed to compile the modules/ source code
|
||||||
|
|
||||||
|
/// <reference path="../node_modules/zone.js/dist/zone.js.d.ts" />
|
||||||
|
/// <reference path="../node_modules/@types/hammerjs/index.d.ts" />
|
||||||
|
/// <reference path="../node_modules/@types/jasmine/index.d.ts" />
|
||||||
|
/// <reference path="../node_modules/@types/node/index.d.ts" />
|
||||||
|
/// <reference path="../node_modules/@types/selenium-webdriver/index.d.ts" />
|
||||||
|
/// <reference path="./es6-subset.d.ts" />
|
||||||
|
/// <reference path="./system.d.ts" />
|
|
@ -27,5 +27,5 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/angular/angular/issues"
|
"url": "https://github.com/angular/angular/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/angular/angular/tree/master/modules/@angular/compiler-cli"
|
"homepage": "https://github.com/angular/angular/tree/master/packages/compiler-cli"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -ex
|
||||||
|
|
||||||
cd $(dirname $0)/../../..
|
cd $(dirname $0)/../../..
|
||||||
ROOTDIR=$(pwd)
|
ROOTDIR=$(pwd)
|
||||||
SRCDIR=${ROOTDIR}/modules/@angular/benchpress
|
SRCDIR=${ROOTDIR}/packages/benchpress
|
||||||
DESTDIR=${ROOTDIR}/dist/packages-dist/benchpress
|
DESTDIR=${ROOTDIR}/dist/packages-dist/benchpress
|
||||||
|
|
||||||
rm -fr ${DESTDIR}
|
rm -fr ${DESTDIR}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/common-testing.umd.js",
|
"main": "../bundles/common-testing.umd.js",
|
||||||
"module": "../@angular/common/testing.es5.js",
|
"module": "../@angular/common/testing.es5.js",
|
||||||
"es2015": "../@angular/common/testing.js"
|
"es2015": "../@angular/common/testing.js"
|
||||||
|
|
|
@ -128,11 +128,11 @@ $ cp tools/@angular/tsc-wrapped/package.json dist/tools/@angular/tsc-wrapped
|
||||||
$ ./scripts/ci/offline_compiler_test.sh
|
$ ./scripts/ci/offline_compiler_test.sh
|
||||||
|
|
||||||
# Keep a package fresh in watch mode
|
# Keep a package fresh in watch mode
|
||||||
./node_modules/.bin/tsc -p modules/@angular/compiler/tsconfig-es5.json -w
|
./node_modules/.bin/tsc -p packages/compiler/tsconfig-build.json -w
|
||||||
|
|
||||||
# Recompile @angular/core module (needs to use tsc-ext to keep the metadata)
|
# Recompile @angular/core module (needs to use tsc-ext to keep the metadata)
|
||||||
$ export NODE_PATH=${NODE_PATH}:$(pwd)/dist/all:$(pwd)/dist/tools
|
$ export NODE_PATH=${NODE_PATH}:$(pwd)/dist/all:$(pwd)/dist/tools
|
||||||
$ node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/core/tsconfig-es5.json
|
$ node dist/tools/@angular/tsc-wrapped/src/main -p packages/core/tsconfig-build.json
|
||||||
|
|
||||||
# Iterate on the test
|
# Iterate on the test
|
||||||
$ cd /tmp/wherever/e2e_test.1464388257/
|
$ cd /tmp/wherever/e2e_test.1464388257/
|
||||||
|
|
|
@ -34,5 +34,5 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/angular/angular/issues"
|
"url": "https://github.com/angular/angular/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/angular/angular/tree/master/modules/@angular/compiler-cli"
|
"homepage": "https://github.com/angular/angular/tree/master/packages/compiler-cli"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/compiler-testing.umd.js",
|
"main": "../bundles/compiler-testing.umd.js",
|
||||||
"module": "../@angular/compiler/testing.es5.js",
|
"module": "../@angular/compiler/testing.es5.js",
|
||||||
"es2015": "../@angular/compiler/testing.js"
|
"es2015": "../@angular/compiler/testing.js"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/core-testing.umd.js",
|
"main": "../bundles/core-testing.umd.js",
|
||||||
"module": "../@angular/core/testing.es5.js",
|
"module": "../@angular/core/testing.es5.js",
|
||||||
"es2015": "../@angular/core/testing.js"
|
"es2015": "../@angular/core/testing.js"
|
||||||
|
|
|
@ -54,7 +54,7 @@ interface NumberConstructor {
|
||||||
|
|
||||||
// Workaround https://github.com/Microsoft/TypeScript/issues/9193
|
// Workaround https://github.com/Microsoft/TypeScript/issues/9193
|
||||||
interface PromiseConstructor {
|
interface PromiseConstructor {
|
||||||
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
|
all<T>(values: (T|PromiseLike<T>)[]): Promise<T[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Function {
|
interface Function {
|
||||||
|
|
|
@ -11,7 +11,7 @@ behavior) just like an Angular application developer would write.
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
# run when test change
|
# run when test change
|
||||||
./modules/@angular/examples/build.sh
|
./packages/examples/build.sh
|
||||||
|
|
||||||
# start server
|
# start server
|
||||||
$(npm bin)/gulp serve-examples
|
$(npm bin)/gulp serve-examples
|
||||||
|
@ -26,7 +26,7 @@ navigate to [http://localhost:8001](http://localhost:8001)
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
# run to compile tests and run them
|
# run to compile tests and run them
|
||||||
./modules/@angular/examples/test.sh
|
./packages/examples/test.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: sometimes the http server does not exit properly and it retains the `8001` port.
|
NOTE: sometimes the http server does not exit properly and it retains the `8001` port.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/http-testing.umd.js",
|
"main": "../bundles/http-testing.umd.js",
|
||||||
"module": "../@angular/http/testing.es5.js",
|
"module": "../@angular/http/testing.es5.js",
|
||||||
"es2015": "../@angular/http/testing.js"
|
"es2015": "../@angular/http/testing.js"
|
||||||
|
|
|
@ -24,7 +24,7 @@ var esm_suffixes = {};
|
||||||
function normalize(fileName) {
|
function normalize(fileName) {
|
||||||
return path.resolve(__dirname, fileName);
|
return path.resolve(__dirname, fileName);
|
||||||
}
|
}
|
||||||
console.log('running')
|
|
||||||
function resolve(id, from) {
|
function resolve(id, from) {
|
||||||
// console.log('Resolve id:', id, 'from', from)
|
// console.log('Resolve id:', id, 'from', from)
|
||||||
if (id == '@angular/tsc-wrapped') {
|
if (id == '@angular/tsc-wrapped') {
|
||||||
|
@ -37,7 +37,8 @@ function resolve(id, from) {
|
||||||
var packageName = match[1];
|
var packageName = match[1];
|
||||||
var esm_suffix = esm_suffixes[packageName] || '';
|
var esm_suffix = esm_suffixes[packageName] || '';
|
||||||
var loc = locations[packageName] || location;
|
var loc = locations[packageName] || location;
|
||||||
var r = loc !== location && (loc + esm_suffix + packageName + (match[3] || '/index') + '.js') || loc + packageName + '/@angular/' + packageName + '.es5.js';
|
var r = loc !== location && (loc + esm_suffix + packageName + (match[3] || '/index') + '.js') ||
|
||||||
|
loc + packageName + '/@angular/' + packageName + '.es5.js';
|
||||||
// console.log('** ANGULAR MAPPED **: ', r);
|
// console.log('** ANGULAR MAPPED **: ', r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/// <reference path="../../../node_modules/@types/node/index.d.ts" />
|
|
||||||
/// <reference path="../../../node_modules/@types/jasmine/index.d.ts" />
|
|
||||||
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js',
|
entry:
|
||||||
|
'../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js',
|
||||||
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowserDynamic',
|
moduleName: 'ng.platformBrowserDynamic',
|
||||||
|
|
|
@ -19,7 +19,7 @@ export function main() {
|
||||||
// will be relative to here, so url200 should look like
|
// will be relative to here, so url200 should look like
|
||||||
// static_assets/200.html.
|
// static_assets/200.html.
|
||||||
// We currently have no way of detecting this.
|
// We currently have no way of detecting this.
|
||||||
const url200 = '/base/modules/@angular/platform-browser/test/browser/static_assets/200.html';
|
const url200 = '/base/packages/platform-browser/test/browser/static_assets/200.html';
|
||||||
const url404 = '/bad/path/404.html';
|
const url404 = '/bad/path/404.html';
|
||||||
|
|
||||||
beforeEach(() => { resourceLoader = new ResourceLoaderImpl(); });
|
beforeEach(() => { resourceLoader = new ResourceLoaderImpl(); });
|
||||||
|
|
|
@ -26,7 +26,7 @@ class FancyService {
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'external-template-comp',
|
selector: 'external-template-comp',
|
||||||
templateUrl: '/base/modules/@angular/platform-browser/test/static_assets/test.html'
|
templateUrl: '/base/packages/platform-browser/test/static_assets/test.html'
|
||||||
})
|
})
|
||||||
class ExternalTemplateComp {
|
class ExternalTemplateComp {
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,7 @@ export function main() {
|
||||||
|
|
||||||
it('should run async tests with ResourceLoaders', async(() => {
|
it('should run async tests with ResourceLoaders', async(() => {
|
||||||
const resourceLoader = new ResourceLoaderImpl();
|
const resourceLoader = new ResourceLoaderImpl();
|
||||||
resourceLoader
|
resourceLoader.get('/base/packages/platform-browser/test/static_assets/test.html')
|
||||||
.get('/base/modules/@angular/platform-browser/test/static_assets/test.html')
|
|
||||||
.then(() => { actuallyDone = true; });
|
.then(() => { actuallyDone = true; });
|
||||||
}),
|
}),
|
||||||
10000); // Long timeout here because this test makes an actual ResourceLoader.
|
10000); // Long timeout here because this test makes an actual ResourceLoader.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/platform-browser-dynamic-testing.umd.js",
|
"main": "../bundles/platform-browser-dynamic-testing.umd.js",
|
||||||
"module": "../@angular/platform-browser-dynamic/testing.es5.js",
|
"module": "../@angular/platform-browser-dynamic/testing.es5.js",
|
||||||
"es2015": "../@angular/platform-browser-dynamic/testing.js"
|
"es2015": "../@angular/platform-browser-dynamic/testing.js"
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic/testing.es5.js',
|
entry:
|
||||||
|
'../../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic/testing.es5.js',
|
||||||
dest:
|
dest:
|
||||||
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/animations.d.ts",
|
"typings": "../typings/animations/index.d.ts",
|
||||||
"main": "../bundles/platform-browser-animations.umd.js",
|
"main": "../bundles/platform-browser-animations.umd.js",
|
||||||
"module": "../@angular/platform-browser/animations.es5.js",
|
"module": "../@angular/platform-browser/animations.es5.js",
|
||||||
"es2015": "../@angular/platform-browser/animations.js"
|
"es2015": "../@angular/platform-browser/animations.js"
|
||||||
|
|
|
@ -7,8 +7,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations/testing.es5.js',
|
entry:
|
||||||
dest: '../../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations-testing.umd.js',
|
'../../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations/testing.es5.js',
|
||||||
|
dest:
|
||||||
|
'../../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowser.testing',
|
moduleName: 'ng.platformBrowser.testing',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -103,10 +103,8 @@ class CompUsingModuleDirectiveAndPipe {
|
||||||
class SomeLibModule {
|
class SomeLibModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component(
|
||||||
selector: 'comp',
|
{selector: 'comp', templateUrl: '/base/packages/platform-browser/test/static_assets/test.html'})
|
||||||
templateUrl: '/base/modules/@angular/platform-browser/test/static_assets/test.html'
|
|
||||||
})
|
|
||||||
class CompWithUrlTemplate {
|
class CompWithUrlTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/platform-browser-testing.umd.js",
|
"main": "../bundles/platform-browser-testing.umd.js",
|
||||||
"module": "../@angular/platform-browser/testing.es5.js",
|
"module": "../@angular/platform-browser/testing.es5.js",
|
||||||
"es2015": "../@angular/platform-browser/testing.js"
|
"es2015": "../@angular/platform-browser/testing.js"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/platform-server-testing.umd.js",
|
"main": "../bundles/platform-server-testing.umd.js",
|
||||||
"module": "../@angular/platform-server/testing.es5.js",
|
"module": "../@angular/platform-server/testing.es5.js",
|
||||||
"es2015": "../@angular/platform-server/testing.js"
|
"es2015": "../@angular/platform-server/testing.js"
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../dist/packages-dist/platform-webworker-dynamic/@angular/platform-webworker-dynamic.es5.js',
|
entry:
|
||||||
|
'../../dist/packages-dist/platform-webworker-dynamic/@angular/platform-webworker-dynamic.es5.js',
|
||||||
dest:
|
dest:
|
||||||
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -40,7 +40,7 @@ module.exports = function(config) {
|
||||||
{pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false},
|
{pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false},
|
||||||
|
|
||||||
// shim
|
// shim
|
||||||
{pattern: 'modules/@angular/router/karma-test-shim.js', included: true, watched: true},
|
{pattern: 'packages/router/karma-test-shim.js', included: true, watched: true},
|
||||||
|
|
||||||
// Angular modules
|
// Angular modules
|
||||||
{pattern: 'dist/all/@angular/core/*.js', included: false, watched: false},
|
{pattern: 'dist/all/@angular/core/*.js', included: false, watched: false},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/testing.d.ts",
|
"typings": "../typings/testing/index.d.ts",
|
||||||
"main": "../bundles/router-testing.umd.js",
|
"main": "../bundles/router-testing.umd.js",
|
||||||
"module": "../@angular/router/testing.es5.js",
|
"module": "../@angular/router/testing.es5.js",
|
||||||
"es2015": "../@angular/router/testing.js"
|
"es2015": "../@angular/router/testing.js"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/upgrade.d.ts",
|
"typings": "../typings/upgrade/index.d.ts",
|
||||||
"main": "../bundles/router-upgrade.umd.js",
|
"main": "../bundles/router-upgrade.umd.js",
|
||||||
"module": "../@angular/router/upgrade.es5.js",
|
"module": "../@angular/router/upgrade.es5.js",
|
||||||
"es2015": "../@angular/router/upgrade.js"
|
"es2015": "../@angular/router/upgrade.js"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "../dist/all/",
|
"outDir": "../dist/all/@angular",
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
@ -26,13 +26,6 @@
|
||||||
"types": ["angularjs"]
|
"types": ["angularjs"]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"angular1_router",
|
|
||||||
"benchmarks/e2e_test/old",
|
|
||||||
"benchmarks/src/old",
|
|
||||||
"benchmarks/src/**/index_aot.ts",
|
|
||||||
"benchmarks_external",
|
|
||||||
"payload_tests",
|
|
||||||
"rollup-test",
|
|
||||||
"compiler-cli/integrationtest"
|
"compiler-cli/integrationtest"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"typings": "../typings/static.d.ts",
|
"typings": "../typings/static/index.d.ts",
|
||||||
"main": "../bundles/upgrade-static.umd.js",
|
"main": "../bundles/upgrade-static.umd.js",
|
||||||
"module": "../@angular/upgrade/static.es5.js",
|
"module": "../@angular/upgrade/static.es5.js",
|
||||||
"es2015": "../@angular/upgrade/static.js"
|
"es2015": "../@angular/upgrade/static.js"
|
||||||
|
|
|
@ -22,17 +22,17 @@ travisFoldEnd "tsc tools"
|
||||||
|
|
||||||
|
|
||||||
travisFoldStart "tsc all"
|
travisFoldStart "tsc all"
|
||||||
node --max-old-space-size=3000 dist/tools/@angular/tsc-wrapped/src/main -p modules
|
node --max-old-space-size=3000 dist/tools/@angular/tsc-wrapped/src/main -p packages
|
||||||
travisFoldEnd "tsc all"
|
travisFoldEnd "tsc all"
|
||||||
|
|
||||||
|
|
||||||
# TODO(i): what are these compilations here for?
|
# TODO(i): what are these compilations here for?
|
||||||
travisFoldStart "tsc a bunch of useless stuff"
|
travisFoldStart "tsc a bunch of useless stuff"
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/core/tsconfig-build.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/core/tsconfig-build.json
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/common/tsconfig-build.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/common/tsconfig-build.json
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/platform-browser/tsconfig-build.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/platform-browser/tsconfig-build.json
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/router/tsconfig-build.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/router/tsconfig-build.json
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/@angular/forms/tsconfig-build.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/forms/tsconfig-build.json
|
||||||
travisFoldEnd "tsc a bunch of useless stuff"
|
travisFoldEnd "tsc a bunch of useless stuff"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
set -u -e -o pipefail
|
set -u -e -o pipefail
|
||||||
|
|
||||||
|
TRAVIS=${TRAVIS:-}
|
||||||
|
CI_MODE=${CI_MODE:-}
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||||
source ${thisDir}/_travis-fold.sh
|
source ${thisDir}/_travis-fold.sh
|
||||||
|
|
|
@ -23,7 +23,7 @@ PKGS=(
|
||||||
TMPDIR=${TMPDIR:-.}
|
TMPDIR=${TMPDIR:-.}
|
||||||
readonly TMP=$TMPDIR/e2e_test.$(date +%s)
|
readonly TMP=$TMPDIR/e2e_test.$(date +%s)
|
||||||
mkdir -p $TMP
|
mkdir -p $TMP
|
||||||
cp -R -v modules/@angular/compiler-cli/integrationtest/* $TMP
|
cp -R -v packages/compiler-cli/integrationtest/* $TMP
|
||||||
cp -R -v modules/benchmarks $TMP
|
cp -R -v modules/benchmarks $TMP
|
||||||
# Try to use the same versions as angular, in particular, this will
|
# Try to use the same versions as angular, in particular, this will
|
||||||
# cause us to install the same rxjs version.
|
# cause us to install the same rxjs version.
|
||||||
|
|
|
@ -12,7 +12,7 @@ travisFoldStart "test.e2e.buildPackages"
|
||||||
travisFoldEnd "test.e2e.buildPackages"
|
travisFoldEnd "test.e2e.buildPackages"
|
||||||
|
|
||||||
|
|
||||||
if [[ ${TRAVIS} ]]; then
|
if [[ ${TRAVIS:-} ]]; then
|
||||||
travisFoldStart "test.e2e.xvfb-start"
|
travisFoldStart "test.e2e.xvfb-start"
|
||||||
sh -e /etc/init.d/xvfb start
|
sh -e /etc/init.d/xvfb start
|
||||||
travisFoldEnd "test.e2e.xvfb-start"
|
travisFoldEnd "test.e2e.xvfb-start"
|
||||||
|
|
|
@ -30,7 +30,7 @@ travisFoldEnd "test.unit.node"
|
||||||
# rebuild to revert files in @angular/compiler/test
|
# rebuild to revert files in @angular/compiler/test
|
||||||
# TODO(tbosch): remove this and teach karma to serve the right files
|
# TODO(tbosch): remove this and teach karma to serve the right files
|
||||||
travisFoldStart "test.unit.rebuildHack"
|
travisFoldStart "test.unit.rebuildHack"
|
||||||
node dist/tools/@angular/tsc-wrapped/src/main -p modules/tsconfig.json
|
node dist/tools/@angular/tsc-wrapped/src/main -p packages/tsconfig.json
|
||||||
travisFoldStart "test.unit.rebuildHack"
|
travisFoldStart "test.unit.rebuildHack"
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,5 +47,5 @@ travisFoldEnd "test.unit.localChrome"
|
||||||
|
|
||||||
|
|
||||||
travisFoldStart "test.unit.localChrome.router"
|
travisFoldStart "test.unit.localChrome.router"
|
||||||
$(npm bin)/karma start ./modules/@angular/router/karma.conf.js --single-run --browsers=${KARMA_JS_BROWSERS}
|
$(npm bin)/karma start ./packages/router/karma.conf.js --single-run --browsers=${KARMA_JS_BROWSERS}
|
||||||
travisFoldEnd "test.unit.localChrome.router"
|
travisFoldEnd "test.unit.localChrome.router"
|
||||||
|
|
|
@ -46,6 +46,7 @@ System.config({
|
||||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||||
'@angular/http/testing': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/http/testing': {main: 'index.js', defaultExtension: 'js'},
|
||||||
'@angular/http': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/http': {main: 'index.js', defaultExtension: 'js'},
|
||||||
|
'@angular/upgrade/static': {main: 'index.js', defaultExtension: 'js'},
|
||||||
'@angular/upgrade': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/upgrade': {main: 'index.js', defaultExtension: 'js'},
|
||||||
'@angular/platform-browser/animations/testing': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/platform-browser/animations/testing': {main: 'index.js', defaultExtension: 'js'},
|
||||||
'@angular/platform-browser/animations': {main: 'index.js', defaultExtension: 'js'},
|
'@angular/platform-browser/animations': {main: 'index.js', defaultExtension: 'js'},
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const testingPlatformServer = require('../../all/@angular/platform-server/testing/server.js');
|
const testingPlatformServer = require('../../all/@angular/platform-server/testing/src/server.js');
|
||||||
const coreTesting = require('../../all/@angular/core/testing');
|
const coreTesting = require('../../all/@angular/core/testing');
|
||||||
|
|
||||||
coreTesting.TestBed.initTestEnvironment(
|
coreTesting.TestBed.initTestEnvironment(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// clang-format entry points
|
// clang-format entry points
|
||||||
const srcsToFmt = [
|
const srcsToFmt = [
|
||||||
'modules/@angular/**/*.{js,ts}',
|
'packages/**/*.{js,ts}',
|
||||||
'modules/benchmarks/**/*.{js,ts}',
|
'modules/benchmarks/**/*.{js,ts}',
|
||||||
'modules/e2e_util/**/*.{js,ts}',
|
'modules/e2e_util/**/*.{js,ts}',
|
||||||
'modules/playground/**/*.{js,ts}',
|
'modules/playground/**/*.{js,ts}',
|
||||||
|
|
|
@ -7,7 +7,7 @@ const entrypoints = [
|
||||||
//'dist/packages-dist/compiler/index.d.ts',
|
//'dist/packages-dist/compiler/index.d.ts',
|
||||||
//'dist/packages-dist/compiler/testing.d.ts',
|
//'dist/packages-dist/compiler/testing.d.ts',
|
||||||
'dist/packages-dist/upgrade/typings/upgrade.d.ts',
|
'dist/packages-dist/upgrade/typings/upgrade.d.ts',
|
||||||
'dist/packages-dist/upgrade/typings/static/static.d.ts',
|
'dist/packages-dist/upgrade/typings/static/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/platform-browser.d.ts',
|
'dist/packages-dist/platform-browser/typings/platform-browser.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/testing/index.d.ts',
|
'dist/packages-dist/platform-browser/typings/testing/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser-dynamic/typings/platform-browser-dynamic.d.ts',
|
'dist/packages-dist/platform-browser-dynamic/typings/platform-browser-dynamic.d.ts',
|
||||||
|
@ -19,7 +19,7 @@ const entrypoints = [
|
||||||
'dist/packages-dist/http/typings/http.d.ts', 'dist/packages-dist/http/typings/testing/index.d.ts',
|
'dist/packages-dist/http/typings/http.d.ts', 'dist/packages-dist/http/typings/testing/index.d.ts',
|
||||||
'dist/packages-dist/forms/typings/forms.d.ts', 'dist/packages-dist/router/typings/router.d.ts',
|
'dist/packages-dist/forms/typings/forms.d.ts', 'dist/packages-dist/router/typings/router.d.ts',
|
||||||
'dist/packages-dist/animations/typings/animations.d.ts',
|
'dist/packages-dist/animations/typings/animations.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/animations/animations.d.ts',
|
'dist/packages-dist/platform-browser/typings/animations/index.d.ts',
|
||||||
'dist/packages-dist/platform-browser/typings/animations/testing/index.d.ts'
|
'dist/packages-dist/platform-browser/typings/animations/testing/index.d.ts'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
class RollupNG2 {
|
class RollupNG2 {
|
||||||
resolveId(id, from) {
|
resolveId(id, from) {
|
||||||
if (id.startsWith('@angular/')) {
|
if (id.startsWith('@angular/')) {
|
||||||
return `${__dirname}/../../packages-dist/${id.split('/')[1]}/esm/index.js`;
|
const packageName = id.split('/')[1];
|
||||||
|
return `${__dirname}/../../packages-dist/${packageName}/@angular/packageName.es5.js`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(id.startsWith('rxjs/')){
|
// if(id.startsWith('rxjs/')){
|
||||||
|
|
|
@ -38,7 +38,7 @@ const BaseConfig = {
|
||||||
if (platform == 'node') {
|
if (platform == 'node') {
|
||||||
tscWatch = new TscWatch(Object.assign(
|
tscWatch = new TscWatch(Object.assign(
|
||||||
{
|
{
|
||||||
tsconfig: 'modules/tsconfig.json',
|
tsconfig: 'packages/tsconfig.json',
|
||||||
onChangeCmds: [[
|
onChangeCmds: [[
|
||||||
'node', 'dist/tools/cjs-jasmine', '--', '@angular/**/*_spec.js',
|
'node', 'dist/tools/cjs-jasmine', '--', '@angular/**/*_spec.js',
|
||||||
'@angular/compiler-cli/test/**/*_spec.js', '@angular/benchpress/test/**/*_spec.js'
|
'@angular/compiler-cli/test/**/*_spec.js', '@angular/benchpress/test/**/*_spec.js'
|
||||||
|
@ -48,7 +48,7 @@ if (platform == 'node') {
|
||||||
} else if (platform == 'browser') {
|
} else if (platform == 'browser') {
|
||||||
tscWatch = new TscWatch(Object.assign(
|
tscWatch = new TscWatch(Object.assign(
|
||||||
{
|
{
|
||||||
tsconfig: 'modules/tsconfig.json',
|
tsconfig: 'packages/tsconfig.json',
|
||||||
onStartCmds: [
|
onStartCmds: [
|
||||||
[
|
[
|
||||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9876',
|
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9876',
|
||||||
|
@ -56,7 +56,7 @@ if (platform == 'node') {
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9877',
|
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9877',
|
||||||
'modules/@angular/router/karma.conf.js'
|
'packages/router/karma.conf.js'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
onChangeCmds: [
|
onChangeCmds: [
|
||||||
|
@ -68,11 +68,11 @@ if (platform == 'node') {
|
||||||
} else if (platform == 'router') {
|
} else if (platform == 'router') {
|
||||||
tscWatch = new TscWatch(Object.assign(
|
tscWatch = new TscWatch(Object.assign(
|
||||||
{
|
{
|
||||||
tsconfig: 'modules/tsconfig.json',
|
tsconfig: 'packages/tsconfig.json',
|
||||||
onStartCmds: [
|
onStartCmds: [
|
||||||
[
|
[
|
||||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9877',
|
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9877',
|
||||||
'modules/@angular/router/karma.conf.js'
|
'packages/router/karma.conf.js'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
onChangeCmds: [
|
onChangeCmds: [
|
||||||
|
@ -83,7 +83,7 @@ if (platform == 'node') {
|
||||||
} else if (platform == 'browserNoRouter') {
|
} else if (platform == 'browserNoRouter') {
|
||||||
tscWatch = new TscWatch(Object.assign(
|
tscWatch = new TscWatch(Object.assign(
|
||||||
{
|
{
|
||||||
tsconfig: 'modules/tsconfig.json',
|
tsconfig: 'packages/tsconfig.json',
|
||||||
onStartCmds: [[
|
onStartCmds: [[
|
||||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9876',
|
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9876',
|
||||||
'karma-js.conf.js'
|
'karma-js.conf.js'
|
||||||
|
|
Loading…
Reference in New Issue