chore: make compiler_cli build again

This commit is contained in:
Tobias Bosch 2016-05-02 09:56:38 -07:00
parent 43527172ed
commit c386fc8379
4 changed files with 7 additions and 6 deletions

View File

@ -50,7 +50,7 @@ do
UMDES5PATH=${DESTDIR}/${PACKAGE}.umd.js
echo "====== COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig.json ====="
echo "====== COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json ====="
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json
cp ${SRCDIR}/package.json ${DESTDIR}/

View File

@ -1053,8 +1053,7 @@ gulp.task('!test.typings',
gulp.task('test.typings', ['build.js.cjs'],
function(done) { runSequence('!test.typings', sequenceComplete(done)); });
gulp.task('!build.compiler_cli', ['build.js.cjs'],
function(done) { runTsc('tools/compiler_cli/src', done); });
gulp.task('!build.compiler_cli', function(done) { runTsc('tools/compiler_cli/src', done); });
gulp.task('!clean.compiler_cli', function(done) {
fse.remove(path.join('dist', 'tools', 'compiler_cli', 'test'),
@ -1066,7 +1065,7 @@ gulp.task('!clean.compiler_cli', function(done) {
gulp.task('!test.compiler_cli.codegen', function(done) {
try {
require('./dist/js/cjs/compiler_cli/main')
require('./dist/tools/compiler_cli/main')
.main("tools/compiler_cli/test")
.then(done)
.catch(function(rej) { done(new Error(rej)); });
@ -1076,7 +1075,7 @@ gulp.task('!test.compiler_cli.codegen', function(done) {
});
gulp.task('!test.compiler_cli.unit',
function(done) { runJasmineTests(['dist/js/cjs/compiler_cli/**/*_spec.js'], done) });
function(done) { runJasmineTests(['dist/tools/compiler_cli/**/*_spec.js'], done) });
// This task overwrites our careful tsickle-lowered Decorators with normal .js emit.
// So it should only be run after asserting on the .js file content.

View File

@ -9,12 +9,13 @@
"paths": {
"@angular/*": ["dist/all/@angular/*"],
"@angular/core": ["dist/all/@angular/core/"],
"@angular/compiler": ["dist/all/@angular/compiler/"],
"ts-metadata-collector": ["dist/tools/metadata"]
},
"experimentalDecorators": true,
"rootDir": ".",
// Write to a directory that has the node_modules symlink in a parent
"outDir": "../../../dist/js/cjs/compiler_cli",
"outDir": "../../../dist/tools/compiler_cli",
"declaration": true
},
"exclude": ["test"]

View File

@ -23,6 +23,7 @@
"paths": {
"@angular/*": ["dist/all/@angular/*"],
"@angular/core": ["dist/all/@angular/core/"],
"@angular/compiler": ["dist/all/@angular/compiler/"],
"rxjs/*": ["node_modules/rxjs/*"],
"ts-metadata-collector": ["dist/tools/metadata"]
}