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 30, 2015
1 parent 2782248 commit 151bbc1
Show file tree
Hide file tree
Showing 14 changed files with 688 additions and 434 deletions.
14 changes: 7 additions & 7 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"url": "http://github.com/aurelia/templating"
},
"dependencies": {
"aurelia-binding": "^0.8.0",
"aurelia-dependency-injection": "^0.9.0",
"aurelia-binding": "^0.8.3",
"aurelia-dependency-injection": "^0.9.1",
"aurelia-html-template-element": "^0.2.0",
"aurelia-loader": "^0.8.0",
"aurelia-logging": "^0.6.0",
"aurelia-metadata": "^0.7.0",
"aurelia-path": "^0.8.0",
"aurelia-task-queue": "^0.6.0",
"aurelia-loader": "^0.8.3",
"aurelia-logging": "^0.6.2",
"aurelia-metadata": "^0.7.1",
"aurelia-path": "^0.8.1",
"aurelia-task-queue": "^0.6.1",
"core-js": "zloirock/core-js"
}
}
14 changes: 8 additions & 6 deletions build/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var insert = require('gulp-insert');
var rename = require('gulp-rename');
var tools = require('aurelia-tools');

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

gulp.task('build-index', function(){
var importsToAdd = [];
var files = [
Expand Down Expand Up @@ -44,38 +46,38 @@ gulp.task('build-index', function(){
this.push(file);
return callback();
}))
.pipe(concat('index.js'))
.pipe(concat(jsName))
.pipe(insert.transform(function(contents) {
return tools.createImportBlock(importsToAdd) + contents;
}))
.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
56 changes: 18 additions & 38 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,36 @@ System.config({

System.config({
"map": {
"aurelia-binding": "github:aurelia/[email protected].0",
"aurelia-dependency-injection": "github:aurelia/[email protected].0",
"aurelia-binding": "github:aurelia/[email protected].3",
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-loader": "github:aurelia/[email protected].2",
"aurelia-logging": "github:aurelia/[email protected].0",
"aurelia-metadata": "github:aurelia/[email protected].0",
"aurelia-path": "github:aurelia/[email protected].0",
"aurelia-task-queue": "github:aurelia/[email protected].0",
"aurelia-loader": "github:aurelia/[email protected].3",
"aurelia-logging": "github:aurelia/[email protected].2",
"aurelia-metadata": "github:aurelia/[email protected].1",
"aurelia-path": "github:aurelia/[email protected].1",
"aurelia-task-queue": "github:aurelia/[email protected].1",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:[email protected]",
"github:aurelia/[email protected].0": {
"aurelia-dependency-injection": "github:aurelia/[email protected].0",
"aurelia-metadata": "github:aurelia/[email protected].0",
"aurelia-task-queue": "github:aurelia/[email protected].0",
"github:aurelia/[email protected].3": {
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
"aurelia-metadata": "github:aurelia/[email protected].1",
"aurelia-task-queue": "github:aurelia/[email protected].1",
"core-js": "npm:[email protected]"
},
"github:aurelia/dependency-injection@0.8.1": {
"aurelia-logging": "github:aurelia/logging@0.5.0",
"aurelia-metadata": "github:aurelia/metadata@0.6.0",
"github:aurelia/dependency-injection@0.9.1": {
"aurelia-logging": "github:aurelia/logging@0.6.2",
"aurelia-metadata": "github:aurelia/metadata@0.7.1",
"core-js": "npm:[email protected]"
},
"github:aurelia/[email protected]": {
"aurelia-logging": "github:aurelia/[email protected]",
"aurelia-metadata": "github:aurelia/[email protected]",
"core-js": "npm:[email protected]"
},
"github:aurelia/[email protected]": {
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-path": "github:aurelia/[email protected]",
"core-js": "npm:[email protected]",
"webcomponentsjs": "github:webcomponents/[email protected]"
},
"github:aurelia/[email protected]": {
"github:aurelia/[email protected]": {
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-path": "github:aurelia/[email protected]",
"aurelia-metadata": "github:aurelia/[email protected]",
"aurelia-path": "github:aurelia/[email protected]",
"core-js": "npm:[email protected]",
"webcomponentsjs": "github:webcomponents/[email protected]"
},
"github:aurelia/[email protected]": {
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-metadata": "github:aurelia/[email protected]",
"aurelia-path": "github:aurelia/[email protected]",
"core-js": "npm:[email protected]",
"webcomponentsjs": "github:webcomponents/[email protected]"
},
"github:aurelia/[email protected]": {
"core-js": "npm:[email protected]"
},
"github:aurelia/[email protected]": {
"github:aurelia/[email protected]": {
"core-js": "npm:[email protected]"
},
"github:jspm/[email protected]": {
Expand Down
8 changes: 6 additions & 2 deletions dist/amd/aurelia-templating.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ declare module 'aurelia-templating' {
import { bindingMode, ObserverLocator, BindingExpression, Binding, ValueConverterResource, EventManager } from 'aurelia-binding';
import { TaskQueue } from 'aurelia-task-queue';
import * as LogManager from 'aurelia-logging';
export let DOMBoundary: any;
export function createTemplateFromMarkup(markup: any): any;
export const animationEvent: any;
export class Animator {
Expand Down Expand Up @@ -186,7 +187,7 @@ declare module 'aurelia-templating' {
contentSelectorRemoveAll(): any;
}
export class BoundViewFactory {
constructor(parentContainer: any, viewFactory: any, executionContext: any);
constructor(parentContainer: any, viewFactory: any, executionContext: any, partReplacements: any);
create(executionContext: any): any;
}
export class ViewFactory {
Expand Down Expand Up @@ -245,7 +246,7 @@ declare module 'aurelia-templating' {
analyze(container: Container, target: Function): any;
load(container: Container, target: Function, viewStrategy?: ViewStrategy, transientView?: boolean, loadContext?: string[]): Promise<HtmlBehaviorResource>;
register(registry: ResourceRegistry, name?: string): any;
compile(compiler: ViewCompiler, resources: ResourceRegistry, node?: Node, instruction?: Object, parentNode?: Node): Node;
compile(compiler: ViewCompiler, resources: ResourceRegistry, node: Node, instruction: Object, parentNode?: Node): Node;
create(container: Container, instruction?: Object, element?: Element, bindings?: Binding[]): BehaviorInstance;
ensurePropertiesDefined(instance: Object, lookup: Object): any;
}
Expand Down Expand Up @@ -301,7 +302,10 @@ declare module 'aurelia-templating' {
export function dynamicOptions(target: any): any;
export function sync(selectorOrConfig: any): any;
export function useShadowDOM(target: any): any;

// this is now deprecated in favor of the processContent decorator
export function skipContentProcessing(target: any): any;
export function processContent(processor: any): any;
export function containerless(target: any): any;
export function viewStrategy(strategy: any): any;
export function useView(path: any): any;
Expand Down
Loading

0 comments on commit 151bbc1

Please sign in to comment.