Skip to content

Commit

Permalink
chore: make compiler_cli build again
Browse files Browse the repository at this point in the history
  • Loading branch information
tbosch committed May 2, 2016
1 parent 4352717 commit c386fc8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}/

Expand Down
7 changes: 3 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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)); });
Expand All @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion tools/compiler_cli/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions tools/compiler_cli/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand Down

0 comments on commit c386fc8

Please sign in to comment.