Skip to content

Commit

Permalink
Merge pull request #11269 from ncoden/chore/move-typescript-out-of-di…
Browse files Browse the repository at this point in the history
…st-folder

chore: move typescript definitions out of dist folder
  • Loading branch information
ncoden authored May 24, 2018
2 parents 61dbe4f + cac478c commit 88555e6
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ module.exports = {
'./_build/assets/css/foundation-rtl.css',
'./_build/assets/css/foundation-rtl.css.map',
'_build/assets/js/foundation.js',
'_build/assets/js/foundation.js.map'
'_build/assets/js/foundation.js.map',
'js/typescript/foundation.d.ts'
],

// Tests
Expand Down
8 changes: 8 additions & 0 deletions gulp/tasks/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ gulp.task('deploy:dist', function(done) {
var jsFilter = filter(['**/*.js'], { restore: true });
var cssSourcemapFilter = filter(['**/*.css.map'], { restore: true });
var jsSourcemapFilter = filter(['**/*.js.map'], { restore: true });
var tsFilter = filter(['**/*.ts'], { restore: true });

return gulp.src(CONFIG.DIST_FILES)
.pipe(plumber())
Expand Down Expand Up @@ -88,6 +89,13 @@ gulp.task('deploy:dist', function(done) {
.pipe(uglify())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist/js'))
.pipe(jsFilter.restore)

// --- TypeScript files ---
// * Copy typescript files to the dist folder
.pipe(tsFilter)
.pipe(gulp.dest('./dist/js'))
.pipe(tsFilter.restore)

.on('finish', done);
});
Expand Down
Loading

0 comments on commit 88555e6

Please sign in to comment.