Skip to content

Commit

Permalink
chore(all): prepare release 0.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 23, 2016
1 parent 4d04f6f commit 0a7a57f
Show file tree
Hide file tree
Showing 12 changed files with 22,992 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-validation",
"version": "0.6.5",
"version": "0.6.6",
"description": "A validation plugin for Aurelia.",
"keywords": [
"aurelia",
Expand Down
20 changes: 9 additions & 11 deletions build/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ gulp.task('build-index', function(){
.pipe(insert.transform(function(contents) {
return tools.createImportBlock(importsToAdd) + contents;
}))
.pipe(to5(assign({}, compilerOptions.commonjs())));
.pipe(gulp.dest(paths.output));
});

gulp.task('build-es2015-temp', function () {
return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions.commonjs())))
.pipe(gulp.dest(paths.output + 'temp'));
});

gulp.task('build-es2015', function () {
Expand Down Expand Up @@ -69,28 +75,20 @@ gulp.task('build-system', function () {
});

gulp.task('build-dts', function(){
var tdsPath = paths.output + paths.packageName + '/' + paths.packageName + '.d.ts';
return gulp.src(tdsPath)
return gulp.src(paths.output + paths.packageName + '.d.ts')
.pipe(rename(paths.packageName + '.d.ts'))
.pipe(gulp.dest(paths.output + 'es2015'))
.pipe(gulp.dest(paths.output + 'commonjs'))
.pipe(gulp.dest(paths.output + 'amd'))
.pipe(gulp.dest(paths.output + 'system'));
});

gulp.task('remove-dts-folder', function() {
var tdsFolder = paths.output + paths.packageName;
return gulp.src([tdsFolder])
.pipe(vinylPaths(del));
});

gulp.task('build', function(callback) {
return runSequence(
'clean',
['build-es2015', 'build-commonjs', 'build-amd', 'build-system'],
'build-index',
['build-es2015-temp', 'build-es2015', 'build-commonjs', 'build-amd', 'build-system'],
'build-dts',
'remove-dts-folder',
callback
);
});
File renamed without changes.
Loading

0 comments on commit 0a7a57f

Please sign in to comment.