refactor(compiler): rename /compiler_cli to /compiler-cli
This commit is contained in:
parent
01dd7dde24
commit
1090601e8b
4
build.sh
4
build.sh
|
@ -51,7 +51,7 @@ for PACKAGE in \
|
|||
router \
|
||||
router-deprecated \
|
||||
upgrade \
|
||||
compiler_cli
|
||||
compiler-cli
|
||||
do
|
||||
SRCDIR=./modules/@angular/${PACKAGE}
|
||||
DESTDIR=./dist/packages-dist/${PACKAGE}
|
||||
|
@ -80,7 +80,7 @@ do
|
|||
find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i '' -E 's/^( +)abstract ([[:alnum:]]+\:)/\1\2/g'
|
||||
fi
|
||||
|
||||
if [[ ${PACKAGE} != compiler_cli ]]; then
|
||||
if [[ ${PACKAGE} != compiler-cli ]]; then
|
||||
|
||||
if [[ ${PACKAGE} == "router-deprecated" ]]; then
|
||||
echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json ====="
|
||||
|
|
|
@ -39,7 +39,7 @@ module.exports = function(config) {
|
|||
exclude: [
|
||||
'dist/all/@angular/**/e2e_test/**',
|
||||
'dist/all/@angular/examples/**',
|
||||
'dist/all/@angular/compiler_cli/**',
|
||||
'dist/all/@angular/compiler-cli/**',
|
||||
'dist/all/angular1_router.js',
|
||||
'dist/all/@angular/platform-browser/testing/e2e_util.js'
|
||||
],
|
||||
|
|
|
@ -34,5 +34,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/angular/angular/issues"
|
||||
},
|
||||
"homepage": "https://github.com/angular/angular/tree/master/tools/compiler_cli"
|
||||
"homepage": "https://github.com/angular/angular/tree/master/tools/compiler-cli"
|
||||
}
|
|
@ -13,7 +13,7 @@ import {
|
|||
StaticReflector,
|
||||
StaticReflectorHost,
|
||||
StaticSymbol
|
||||
} from '@angular/compiler_cli/src/static_reflector';
|
||||
} from '@angular/compiler-cli/src/static_reflector';
|
||||
|
||||
describe('StaticReflector', () => {
|
||||
let noContext = new StaticSymbol('', '');
|
|
@ -20,7 +20,7 @@
|
|||
"experimentalDecorators": true,
|
||||
"rootDir": ".",
|
||||
"sourceRoot": ".",
|
||||
"outDir": "../../../dist/packages-dist/compiler_cli",
|
||||
"outDir": "../../../dist/packages-dist/compiler-cli",
|
||||
"declaration": true
|
||||
},
|
||||
"exclude": ["integrationtest"],
|
|
@ -31,6 +31,6 @@
|
|||
"rollup-test",
|
||||
"upgrade-ts2dart.d.ts",
|
||||
"zone-ts2dart.d.ts",
|
||||
"@angular/compiler_cli/integrationtest"
|
||||
"@angular/compiler-cli/integrationtest"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@ gulp check-format
|
|||
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all
|
||||
./build.sh;
|
||||
$(npm bin)/tsc -p tools
|
||||
$(npm bin)/tsc -p tools/compiler_cli/src
|
||||
# $(npm bin)/tsc -p tools/compiler_cli/test
|
||||
$(npm bin)/tsc -p tools/compiler-cli/src
|
||||
# $(npm bin)/tsc -p tools/compiler-cli/test
|
||||
node dist/tools/tsc-watch/ node
|
||||
|
||||
## rebuild since codegen has overwritten some files.
|
||||
|
|
|
@ -21,7 +21,7 @@ find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i ''
|
|||
for PACKAGE in \
|
||||
core \
|
||||
compiler \
|
||||
compiler_cli \
|
||||
compiler-cli \
|
||||
common \
|
||||
http \
|
||||
platform-browser \
|
||||
|
|
|
@ -3,7 +3,7 @@ set -ex -o pipefail
|
|||
|
||||
# These ones can be `npm link`ed for fast development
|
||||
LINKABLE_PKGS=(
|
||||
$(pwd)/dist/packages-dist/{common,core,compiler,compiler_cli,platform-{browser,server}}
|
||||
$(pwd)/dist/packages-dist/{common,core,compiler,compiler-cli,platform-{browser,server}}
|
||||
$(pwd)/dist/tools/@angular/tsc-wrapped
|
||||
)
|
||||
PKGS=(
|
||||
|
@ -18,7 +18,7 @@ PKGS=(
|
|||
TMPDIR=${TMPDIR:-.}
|
||||
readonly TMP=$TMPDIR/e2e_test.$(date +%s)
|
||||
mkdir -p $TMP
|
||||
cp -R -v modules/@angular/compiler_cli/integrationtest/* $TMP
|
||||
cp -R -v modules/@angular/compiler-cli/integrationtest/* $TMP
|
||||
# Try to use the same versions as angular, in particular, this will
|
||||
# cause us to install the same rxjs version.
|
||||
cp -v package.json $TMP
|
||||
|
@ -30,10 +30,10 @@ cp -v package.json $TMP
|
|||
# TODO(alexeagle): allow this to be npm link instead
|
||||
npm install ${LINKABLE_PKGS[*]}
|
||||
|
||||
# Compile the compiler_cli integration tests
|
||||
# Compile the compiler-cli integration tests
|
||||
./node_modules/.bin/ngc
|
||||
|
||||
./node_modules/.bin/jasmine init
|
||||
# Run compiler_cli integration tests in node
|
||||
# Run compiler-cli integration tests in node
|
||||
./node_modules/.bin/jasmine test/*_spec.js
|
||||
)
|
||||
|
|
|
@ -34,7 +34,7 @@ echo 'travis_fold:end:test.unit.node'
|
|||
echo 'travis_fold:start:test.unit.localChrome'
|
||||
|
||||
# rebuild to codegen files in @angular/compiler/test
|
||||
node dist/all/@angular/compiler_cli/src/main -p modules/tsconfig.json
|
||||
node dist/all/@angular/compiler-cli/src/main -p modules/tsconfig.json
|
||||
|
||||
# Run unit tests in local chrome
|
||||
if [[ ${TRAVIS} ]]; then
|
||||
|
|
|
@ -71,7 +71,7 @@ if (platform == 'node') {
|
|||
processOutputEmitterCodeGen,
|
||||
[
|
||||
'node', 'dist/tools/cjs-jasmine', '--', '{@angular,benchpress}/**/*_spec.js',
|
||||
'@angular/compiler_cli/test/**/*_spec.js'
|
||||
'@angular/compiler-cli/test/**/*_spec.js'
|
||||
]
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue