From 3fafab21f0b28f35c0ca2efb4342eab1c0a8411c Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Tue, 11 Aug 2015 10:35:23 -0500 Subject: [PATCH] copy typescript source files to dist in publish task --- gulpfile.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7edd1e2048..b2ea922779 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -79,7 +79,6 @@ gulp.task('watch', function(done) { 'serve', function() { watch([ - 'ionic/**/*.js', 'ionic/**/*.ts', '!ionic/components/*/test/**/*', '!ionic/util/test/*' @@ -146,7 +145,6 @@ gulp.task('clean', function(done) { function transpile(moduleType) { var stream = gulp.src([ 'ionic/**/*.ts', - 'ionic/**/*.js', '!ionic/components/*/test/**/*', '!ionic/util/test/*' ]) @@ -321,10 +319,19 @@ gulp.task('docs', function() { } }); +gulp.task('copy.ts', function() { + return gulp.src([ + 'ionic/**/*.ts', + '!ionic/components/*/test/**/*', + '!ionic/util/test/*' + ]) + .pipe(gulp.dest('dist/src/typescript')); +}) + gulp.task('publish', function(done) { runSequence( 'clean', - ['bundle', 'sass', 'fonts'], + ['bundle', 'sass', 'fonts', 'copy.ts'], 'transpile.common', function() { var packageJSONContents = '{\n "name": "ionic2",\n "version": "2.0.0-alpha.1",\n "license": "Apache-2.0",\n "repository": {\n "type": "git",\n "url": "https://github.com/driftyco/ionic2.git"\n }\n}\n';