diff --git a/.travis.yml b/.travis.yml index 2613de27e6..2b91593db7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,7 @@ before_script: - npm install -g bower gulp-cli@1 - bower install - gulp lint-eslint -- gulp generate-externs -- gulp generate-typescript +- gulp update-types - git diff --exit-code script: - xvfb-run wct -l chrome diff --git a/gulpfile.js b/gulpfile.js index 44a81fcc8a..614b9071bf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -260,6 +260,10 @@ gulp.task('lint', (done) => { runseq('lint-eslint', 'lint-closure', done); }); +gulp.task('update-types', (done) => { + runseq('generate-externs', 'generate-typescript', done); +}); + gulp.task('generate-externs', ['clean'], async () => { let genClosure = require('@polymer/gen-closure-declarations').generateDeclarations; const declarations = await genClosure(); diff --git a/package.json b/package.json index a1a6673d43..028fd45e4d 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "build": "gulp", "test": "npm run lint && wct", "lint": "gulp lint", - "version": "gulp update-version && git add lib/utils/boot.html" + "version": "gulp update-version && git add lib/utils/boot.html", + "update-types": "gulp update-types" }, "repository": { "type": "git",