From 71c682994941274358f9bdd6cf0f91516766c567 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 24 Jan 2017 23:09:35 +0100 Subject: [PATCH] build: exclude system-config-spec.ts for releases (#2754) * No longer publishes the `system-config-spec.ts` file in releases. Extending the glob to also remove the `-spec.ts` files. In the future it's planned to not build spec files for releases at all.. --- tools/gulp/tasks/release.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/gulp/tasks/release.ts b/tools/gulp/tasks/release.ts index 542d4eaebac..3e089c45770 100644 --- a/tools/gulp/tasks/release.ts +++ b/tools/gulp/tasks/release.ts @@ -10,8 +10,9 @@ import {DIST_COMPONENTS_ROOT} from '../constants'; const argv = minimist(process.argv.slice(3)); - -task(':build:release:clean-spec', cleanTask('dist/**/*.spec.*')); +/** Removes redundant spec files from the release. TypeScript creates definition files for specs. */ +// TODO(devversion): tsconfig files should share code and don't generate spec files for releases. +task(':build:release:clean-spec', cleanTask('dist/**/*(-|.)spec.*')); task('build:release', function(done: () => void) {