build: move typings_test to new integration test fixture (#14149)
PR Close #14149
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
import * as compiler from '@angular/compiler';
|
||||
import * as compilerTesting from '@angular/compiler/testing';
|
||||
import * as coreTesting from '@angular/core';
|
||||
import * as core from '@angular/core/testing';
|
||||
import * as httpTesting from '@angular/http';
|
||||
import * as http from '@angular/http/testing';
|
||||
import * as platformBrowserTesting from '@angular/platform-browser';
|
||||
import * as platformBrowserDynmic from '@angular/platform-browser-dynamic';
|
||||
import * as platformBrowser from '@angular/platform-browser/testing';
|
||||
import * as platfomrServerTesting from '@angular/platform-server';
|
||||
import * as platfomrServer from '@angular/platform-server/testing';
|
||||
import * as routerTesting from '@angular/router';
|
||||
import * as router from '@angular/router/testing';
|
||||
import * as upgrade from '@angular/upgrade';
|
||||
|
||||
export default {
|
||||
compiler,
|
||||
compilerTesting,
|
||||
core,
|
||||
coreTesting,
|
||||
http,
|
||||
httpTesting,
|
||||
platformBrowser,
|
||||
platformBrowserTesting,
|
||||
platformBrowserDynmic,
|
||||
platfomrServer,
|
||||
platfomrServerTesting,
|
||||
router,
|
||||
routerTesting,
|
||||
upgrade
|
||||
};
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex -o pipefail
|
||||
|
||||
# These ones can be `npm link`ed for fast development
|
||||
# Note that compiler-cli does not support TS 1.8 because tsc-wrapped uses 1.9 features
|
||||
LINKABLE_PKGS=(
|
||||
$(pwd)/dist/packages-dist/{common,core,compiler,http,router,upgrade,platform-{browser,browser-dynamic,server}}
|
||||
)
|
||||
|
||||
TMPDIR=${TMPDIR:-/tmp/angular-build/}
|
||||
readonly TMP=$TMPDIR/typings-test.$(date +%s)
|
||||
mkdir -p $TMP
|
||||
cp -R -v tools/typings-test/* $TMP
|
||||
|
||||
# run in subshell to avoid polluting cwd
|
||||
(
|
||||
cd $TMP
|
||||
# create package.json so that npm install doesn't pollute any parent node_modules's directory
|
||||
npm init --yes
|
||||
npm install ${LINKABLE_PKGS[*]} @types/jasmine rxjs@5.0 zone.js@0.7 typescript@2.0.2
|
||||
$(npm bin)/tsc --version
|
||||
$(npm bin)/tsc -p tsconfig.json
|
||||
)
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../dist/typing-test/",
|
||||
"rootDir": ".",
|
||||
"target": "es5",
|
||||
"lib": ["es5", "dom", "es2015.collection", "es2015.iterable", "es2015.promise"]
|
||||
},
|
||||
"files": [
|
||||
"include-all.ts",
|
||||
"node_modules/@types/jasmine/index.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user