Skip to content

Commit 68a799a

Browse files
committed
tools: implement public api spec
Closes angular#6309
1 parent 16d9c60 commit 68a799a

File tree

5 files changed

+1099
-2
lines changed

5 files changed

+1099
-2
lines changed

gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function runKarma(configFile, done) {
463463

464464
gulp.task('test.js', function(done) {
465465
runSequence('test.unit.tools/ci', 'test.transpiler.unittest', 'test.unit.js/ci',
466-
'test.unit.cjs/ci', 'test.typings', sequenceComplete(done));
466+
'test.unit.cjs/ci', 'test.typings', 'check-public-api', sequenceComplete(done));
467467
});
468468

469469
gulp.task('test.dart', function(done) {
@@ -866,6 +866,8 @@ gulp.task('test.unit.cjs/ci', function(done) {
866866
runJasmineTests(['dist/js/cjs/{angular2,benchpress}/test/**/*_spec.js'], done);
867867
});
868868

869+
gulp.task('check-public-api',
870+
function(done) { runJasmineTests(['dist/tools/public_api_guard/**/*_spec.js'], done); });
869871

870872
gulp.task('test.unit.cjs', ['build/clean.js', 'build.tools'], function(neverDone) {
871873
var watch = require('./tools/build/watch');

npm-shrinkwrap.clean.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5336,6 +5336,9 @@
53365336
"trim-newlines": {
53375337
"version": "1.0.0"
53385338
},
5339+
"ts-api-guardian": {
5340+
"version": "0.0.2"
5341+
},
53395342
"ts2dart": {
53405343
"version": "0.7.19",
53415344
"dependencies": {

npm-shrinkwrap.json

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"systemjs-builder": "^0.10.3",
113113
"through2": "^0.6.5",
114114
"ts2dart": "^0.7.19",
115+
"ts-api-guardian": "0.0.2",
115116
"tsd": "^0.6.5-beta",
116117
"tslint": "^3.2.1",
117118
"typescript": "^1.7.3",

0 commit comments

Comments
 (0)