refactor(compiler): rename /compiler_cli to /compiler-cli

This commit is contained in:
Victor Berchet 2016-06-02 11:33:53 -07:00
parent 01dd7dde24
commit 1090601e8b
33 changed files with 16 additions and 16 deletions

View File

@ -51,7 +51,7 @@ for PACKAGE in \
router \ router \
router-deprecated \ router-deprecated \
upgrade \ upgrade \
compiler_cli compiler-cli
do do
SRCDIR=./modules/@angular/${PACKAGE} SRCDIR=./modules/@angular/${PACKAGE}
DESTDIR=./dist/packages-dist/${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' find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i '' -E 's/^( +)abstract ([[:alnum:]]+\:)/\1\2/g'
fi fi
if [[ ${PACKAGE} != compiler_cli ]]; then if [[ ${PACKAGE} != compiler-cli ]]; then
if [[ ${PACKAGE} == "router-deprecated" ]]; then if [[ ${PACKAGE} == "router-deprecated" ]]; then
echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json =====" echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json ====="

View File

@ -39,7 +39,7 @@ module.exports = function(config) {
exclude: [ exclude: [
'dist/all/@angular/**/e2e_test/**', 'dist/all/@angular/**/e2e_test/**',
'dist/all/@angular/examples/**', 'dist/all/@angular/examples/**',
'dist/all/@angular/compiler_cli/**', 'dist/all/@angular/compiler-cli/**',
'dist/all/angular1_router.js', 'dist/all/angular1_router.js',
'dist/all/@angular/platform-browser/testing/e2e_util.js' 'dist/all/@angular/platform-browser/testing/e2e_util.js'
], ],

View File

@ -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/tools/compiler_cli" "homepage": "https://github.com/angular/angular/tree/master/tools/compiler-cli"
} }

View File

@ -13,7 +13,7 @@ import {
StaticReflector, StaticReflector,
StaticReflectorHost, StaticReflectorHost,
StaticSymbol StaticSymbol
} from '@angular/compiler_cli/src/static_reflector'; } from '@angular/compiler-cli/src/static_reflector';
describe('StaticReflector', () => { describe('StaticReflector', () => {
let noContext = new StaticSymbol('', ''); let noContext = new StaticSymbol('', '');

View File

@ -20,7 +20,7 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"rootDir": ".", "rootDir": ".",
"sourceRoot": ".", "sourceRoot": ".",
"outDir": "../../../dist/packages-dist/compiler_cli", "outDir": "../../../dist/packages-dist/compiler-cli",
"declaration": true "declaration": true
}, },
"exclude": ["integrationtest"], "exclude": ["integrationtest"],

View File

@ -31,6 +31,6 @@
"rollup-test", "rollup-test",
"upgrade-ts2dart.d.ts", "upgrade-ts2dart.d.ts",
"zone-ts2dart.d.ts", "zone-ts2dart.d.ts",
"@angular/compiler_cli/integrationtest" "@angular/compiler-cli/integrationtest"
] ]
} }

View File

@ -8,8 +8,8 @@ gulp check-format
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all export NODE_PATH=$NODE_PATH:$(pwd)/dist/all
./build.sh; ./build.sh;
$(npm bin)/tsc -p tools $(npm bin)/tsc -p tools
$(npm bin)/tsc -p tools/compiler_cli/src $(npm bin)/tsc -p tools/compiler-cli/src
# $(npm bin)/tsc -p tools/compiler_cli/test # $(npm bin)/tsc -p tools/compiler-cli/test
node dist/tools/tsc-watch/ node node dist/tools/tsc-watch/ node
## rebuild since codegen has overwritten some files. ## rebuild since codegen has overwritten some files.

View File

@ -21,7 +21,7 @@ find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i ''
for PACKAGE in \ for PACKAGE in \
core \ core \
compiler \ compiler \
compiler_cli \ compiler-cli \
common \ common \
http \ http \
platform-browser \ platform-browser \

View File

@ -3,7 +3,7 @@ set -ex -o pipefail
# These ones can be `npm link`ed for fast development # These ones can be `npm link`ed for fast development
LINKABLE_PKGS=( 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 $(pwd)/dist/tools/@angular/tsc-wrapped
) )
PKGS=( PKGS=(
@ -18,7 +18,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 modules/@angular/compiler-cli/integrationtest/* $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.
cp -v package.json $TMP cp -v package.json $TMP
@ -30,10 +30,10 @@ cp -v package.json $TMP
# TODO(alexeagle): allow this to be npm link instead # TODO(alexeagle): allow this to be npm link instead
npm install ${LINKABLE_PKGS[*]} npm install ${LINKABLE_PKGS[*]}
# Compile the compiler_cli integration tests # Compile the compiler-cli integration tests
./node_modules/.bin/ngc ./node_modules/.bin/ngc
./node_modules/.bin/jasmine init ./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 ./node_modules/.bin/jasmine test/*_spec.js
) )

View File

@ -34,7 +34,7 @@ echo 'travis_fold:end:test.unit.node'
echo 'travis_fold:start:test.unit.localChrome' echo 'travis_fold:start:test.unit.localChrome'
# rebuild to codegen files in @angular/compiler/test # 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 # Run unit tests in local chrome
if [[ ${TRAVIS} ]]; then if [[ ${TRAVIS} ]]; then

View File

@ -71,7 +71,7 @@ if (platform == 'node') {
processOutputEmitterCodeGen, processOutputEmitterCodeGen,
[ [
'node', 'dist/tools/cjs-jasmine', '--', '{@angular,benchpress}/**/*_spec.js', 'node', 'dist/tools/cjs-jasmine', '--', '{@angular,benchpress}/**/*_spec.js',
'@angular/compiler_cli/test/**/*_spec.js' '@angular/compiler-cli/test/**/*_spec.js'
] ]
] ]
}); });