parent
430f367c2f
commit
85f3dc2fb5
@ -1093,10 +1093,13 @@ gulp.task('!build.tools', function() {
|
|||||||
.pipe(tsc({
|
.pipe(tsc({
|
||||||
target: 'ES5',
|
target: 'ES5',
|
||||||
module: 'commonjs',
|
module: 'commonjs',
|
||||||
|
declaration: true,
|
||||||
// Don't use the version of typescript that gulp-typescript depends on
|
// Don't use the version of typescript that gulp-typescript depends on
|
||||||
// see https://github.com/ivogabe/gulp-typescript#typescript-version
|
// see https://github.com/ivogabe/gulp-typescript#typescript-version
|
||||||
typescript: require('typescript')
|
typescript: require('typescript')
|
||||||
}))
|
}));
|
||||||
|
stream =
|
||||||
|
merge2([stream.js.pipe(gulp.dest('dist/tools')), stream.dts.pipe(gulp.dest('dist/tools'))])
|
||||||
.on('error',
|
.on('error',
|
||||||
function(error) {
|
function(error) {
|
||||||
// nodejs doesn't propagate errors from the src stream into the final
|
// nodejs doesn't propagate errors from the src stream into the final
|
||||||
@ -1105,10 +1108,8 @@ gulp.task('!build.tools', function() {
|
|||||||
stream.emit('error', error);
|
stream.emit('error', error);
|
||||||
})
|
})
|
||||||
.pipe(sourcemaps.write('.'))
|
.pipe(sourcemaps.write('.'))
|
||||||
.pipe(gulp.dest('dist/tools'))
|
|
||||||
.on('end', function() {
|
.on('end', function() {
|
||||||
var AngularBuilder =
|
var AngularBuilder = require('./dist/tools/broccoli/angular_builder').AngularBuilder;
|
||||||
require('./dist/tools/broccoli/angular_builder').AngularBuilder;
|
|
||||||
angularBuilder =
|
angularBuilder =
|
||||||
new AngularBuilder({outputPath: 'dist', dartSDK: DART_SDK, logs: logs});
|
new AngularBuilder({outputPath: 'dist', dartSDK: DART_SDK, logs: logs});
|
||||||
});
|
});
|
||||||
|
@ -6,17 +6,16 @@ var path = require('path');
|
|||||||
var printSlowTrees = require('broccoli-slow-trees');
|
var printSlowTrees = require('broccoli-slow-trees');
|
||||||
var Q = require('q');
|
var Q = require('q');
|
||||||
|
|
||||||
type ProjectMap = {
|
export type ProjectMap = {
|
||||||
[key: string]: boolean
|
[key: string]: boolean
|
||||||
};
|
};
|
||||||
|
|
||||||
type Options = {
|
export type Options = {
|
||||||
projects: ProjectMap;
|
projects: ProjectMap;
|
||||||
noTypeChecks: boolean;
|
noTypeChecks: boolean;
|
||||||
generateEs6: boolean;
|
generateEs6: boolean;
|
||||||
useBundles: boolean;
|
useBundles: boolean;
|
||||||
}
|
};
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BroccoliBuilder facade for all of our build pipelines.
|
* BroccoliBuilder facade for all of our build pipelines.
|
||||||
|
@ -4,7 +4,7 @@ import path = require('path');
|
|||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
|
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
|
||||||
|
|
||||||
interface LodashRendererOptions {
|
export interface LodashRendererOptions {
|
||||||
encoding?: string;
|
encoding?: string;
|
||||||
context?: any;
|
context?: any;
|
||||||
// files option unsupported --- use Funnel on inputTree instead.
|
// files option unsupported --- use Funnel on inputTree instead.
|
||||||
|
@ -6,9 +6,7 @@ import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-br
|
|||||||
|
|
||||||
var isWindows = process.platform === 'win32';
|
var isWindows = process.platform === 'win32';
|
||||||
|
|
||||||
interface MergeTreesOptions {
|
export interface MergeTreesOptions { overwrite?: boolean; }
|
||||||
overwrite?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
function outputFileSync(sourcePath, destPath) {
|
function outputFileSync(sourcePath, destPath) {
|
||||||
let dirname = path.dirname(destPath);
|
let dirname = path.dirname(destPath);
|
||||||
|
@ -40,6 +40,6 @@ class TreeStabilizer implements BroccoliTree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default function stabilizeTree(inputTree) {
|
export default function stabilizeTree(inputTree): BroccoliTree {
|
||||||
return new TreeStabilizer(inputTree);
|
return new TreeStabilizer(inputTree);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ export interface DiffingBroccoliPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type DiffingPluginWrapperFactory = (inputTrees: (BroccoliTree | BroccoliTree[]), options?) =>
|
export type DiffingPluginWrapperFactory = (inputTrees: (BroccoliTree | BroccoliTree[]), options?) =>
|
||||||
BroccoliTree;
|
BroccoliTree;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user