Skip to content

Commit

Permalink
chore(build): improve output file name
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 29, 2015
1 parent 6d4c68f commit 8f3f6f7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "http://github.com/aurelia/history-browser"
},
"dependencies": {
"aurelia-history": "^0.6.0",
"aurelia-history": "^0.6.1",
"core-js": "zloirock/core-js"
}
}
13 changes: 8 additions & 5 deletions build/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,39 @@ var compilerOptions = require('../babel-options');
var assign = Object.assign || require('object.assign');
var rename = require('gulp-rename');

var jsName = paths.packageName + '.js';

gulp.task('build-index', function(){
return gulp.src(paths.root + 'index.js')
.pipe(rename(jsName))
.pipe(gulp.dest(paths.output));
});

gulp.task('build-es6', function () {
return gulp.src(paths.output + 'index.js')
return gulp.src(paths.output + jsName)
.pipe(gulp.dest(paths.output + 'es6'));
});

gulp.task('build-commonjs', function () {
return gulp.src(paths.output + 'index.js')
return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'common'})))
.pipe(gulp.dest(paths.output + 'commonjs'));
});

gulp.task('build-amd', function () {
return gulp.src(paths.output + 'index.js')
return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'amd'})))
.pipe(gulp.dest(paths.output + 'amd'));
});

gulp.task('build-system', function () {
return gulp.src(paths.output + 'index.js')
return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'system'})))
.pipe(gulp.dest(paths.output + 'system'));
});

gulp.task('build-dts', function(){
return gulp.src(paths.output + 'index.d.ts')
return gulp.src(paths.output + paths.packageName + '.d.ts')
.pipe(rename(paths.packageName + '.d.ts'))
.pipe(gulp.dest(paths.output + 'es6'))
.pipe(gulp.dest(paths.output + 'commonjs'))
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ System.config({

System.config({
"map": {
"aurelia-history": "github:aurelia/[email protected].0",
"aurelia-history": "github:aurelia/[email protected].1",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:[email protected]",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
},
"license": "MIT",
"author": "Rob Eisenberg <[email protected]> (http://robeisenberg.com/)",
"main": "dist/commonjs/index.js",
"main": "dist/commonjs/aurelia-history-browser.js",
"repository": {
"type": "git",
"url": "http://github.com/aurelia/history-browser"
},
"jspm": {
"main": "index",
"main": "aurelia-history-browser",
"format": "amd",
"directories": {
"lib": "dist/amd"
},
"dependencies": {
"aurelia-history": "github:aurelia/history@^0.6.0",
"aurelia-history": "github:aurelia/history@^0.6.1",
"core-js": "npm:core-js@^0.9.5"
},
"devDependencies": {
Expand Down

0 comments on commit 8f3f6f7

Please sign in to comment.