chore(compiler): Run compiler_cli tests in new CI.

Also update docs/peer deps, display errors from running jasmine, use the right location of cjs-jasmine
This commit is contained in:
Alex Eagle 2016-05-02 15:52:47 -06:00
parent ba62fe974b
commit de978229b2
5 changed files with 11 additions and 11 deletions

View File

@ -105,7 +105,7 @@ function runJasmineTests(globs, done) {
var fork = require('child_process').fork; var fork = require('child_process').fork;
var args = ['--'].concat(globs); var args = ['--'].concat(globs);
fork('./tools/cjs-jasmine', args, {stdio: 'inherit'}) fork('./dist/tools/cjs-jasmine', args, {stdio: 'inherit'})
.on('close', function jasmineCloseHandler(exitCode) { .on('close', function jasmineCloseHandler(exitCode) {
if (exitCode && treatTestErrorsAsFatal) { if (exitCode && treatTestErrorsAsFatal) {
var err = new Error('Jasmine tests failed'); var err = new Error('Jasmine tests failed');
@ -1068,7 +1068,7 @@ gulp.task('!test.compiler_cli.codegen', function(done) {
require('./dist/tools/compiler_cli/main') require('./dist/tools/compiler_cli/main')
.main("tools/compiler_cli/test") .main("tools/compiler_cli/test")
.then(done) .then(done)
.catch(function(rej) { done(new Error(rej)); }); .catch(function(rej) { done(rej); });
} catch (err) { } catch (err) {
done(err); done(err);
} }

View File

@ -10,8 +10,7 @@ source ./env.sh
cd ../.. cd ../..
$(npm bin)/tsc -p ./tools/tsconfig.json $(npm bin)/tsc -p ./tools/tsconfig.json
$(npm bin)/tsc -p ./modules/tsconfig.json $(npm bin)/ng2tc -p ./modules/tsconfig.json
$(npm bin)/tsc -p ./tools/compiler_cli/src/tsconfig.json
echo 'travis_fold:end:BUILD' echo 'travis_fold:end:BUILD'

View File

@ -16,6 +16,7 @@ cd ../..
echo 'travis_fold:start:test.unit.node' echo 'travis_fold:start:test.unit.node'
gulp test.compiler_cli
# Run unit tests in node # Run unit tests in node
node ./dist/tools/tsc-watch/ node node ./dist/tools/tsc-watch/ node

View File

@ -89,7 +89,7 @@ node ./dist/js/cjs/compiler_cli -p tools/compiler_cli/test
Release: Release:
``` ```
$ gulp test.compiler_cli $ gulp test.compiler_cli
$ cp tools/compiler_cli/README.md tools/compiler_cli/package.json dist/js/cjs/compiler_cli $ cp tools/compiler_cli/README.md tools/compiler_cli/package.json dist/tools/compiler_cli
# npm login as angularcore # npm login as angularcore
$ npm publish dist/js/cjs/compiler_cli $ npm publish dist/tools/compiler_cli
``` ```

View File

@ -1,6 +1,6 @@
{ {
"name": "angular2-template-compiler", "name": "angular2-template-compiler",
"version": "0.1.3", "version": "0.1.9",
"description": "Execute angular2 template compiler in nodejs.", "description": "Execute angular2 template compiler in nodejs.",
"main": "index.js", "main": "index.js",
"typings": "index.d.ts", "typings": "index.d.ts",
@ -15,9 +15,9 @@
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^1.8.0 || ^1.9.0-dev", "typescript": "^1.8.0 || ^1.9.0-dev",
"@angular/compiler": "0.0.0-5", "@angular/compiler": "^0.0.0-5",
"@angular/platform-server": "0.0.0-5", "@angular/platform-server": "^0.0.0-5",
"@angular/core": "0.0.0-5" "@angular/core": "^0.0.0-5"
}, },
"repository": { "repository": {
"type": "git", "type": "git",