tools: implement public api spec

Closes #6309
This commit is contained in:
vsavkin 2016-01-27 08:47:04 -08:00 committed by Victor Savkin
parent 16d9c60a0e
commit 68a799af2e
5 changed files with 1099 additions and 2 deletions

View File

@ -463,7 +463,7 @@ function runKarma(configFile, done) {
gulp.task('test.js', function(done) {
runSequence('test.unit.tools/ci', 'test.transpiler.unittest', 'test.unit.js/ci',
'test.unit.cjs/ci', 'test.typings', sequenceComplete(done));
'test.unit.cjs/ci', 'test.typings', 'check-public-api', sequenceComplete(done));
});
gulp.task('test.dart', function(done) {
@ -866,6 +866,8 @@ gulp.task('test.unit.cjs/ci', function(done) {
runJasmineTests(['dist/js/cjs/{angular2,benchpress}/test/**/*_spec.js'], done);
});
gulp.task('check-public-api',
function(done) { runJasmineTests(['dist/tools/public_api_guard/**/*_spec.js'], done); });
gulp.task('test.unit.cjs', ['build/clean.js', 'build.tools'], function(neverDone) {
var watch = require('./tools/build/watch');

View File

@ -5336,6 +5336,9 @@
"trim-newlines": {
"version": "1.0.0"
},
"ts-api-guardian": {
"version": "0.0.2"
},
"ts2dart": {
"version": "0.7.19",
"dependencies": {

6
npm-shrinkwrap.json generated
View File

@ -7667,7 +7667,7 @@
},
"rxjs": {
"version": "5.0.0-beta.0",
"from": "rxjs@5.0.0-beta.0",
"from": "https://registry.npmjs.org/rxjs/-/rxjs-5.0.0-beta.0.tgz",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.0.0-beta.0.tgz"
},
"sass-graph": {
@ -8503,6 +8503,10 @@
"from": "trim-newlines@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz"
},
"ts-api-guardian": {
"version": "0.0.2",
"from": "ts-api-guardian@0.0.2"
},
"ts2dart": {
"version": "0.7.19",
"from": "ts2dart@>=0.7.18 <0.8.0",

View File

@ -112,6 +112,7 @@
"systemjs-builder": "^0.10.3",
"through2": "^0.6.5",
"ts2dart": "^0.7.19",
"ts-api-guardian": "0.0.2",
"tsd": "^0.6.5-beta",
"tslint": "^3.2.1",
"typescript": "^1.7.3",

File diff suppressed because it is too large Load Diff