Skip to content

Commit

Permalink
chore(build): remove the es6 output
Browse files Browse the repository at this point in the history
We don't rely on it for anything, so we can speed up the build and simplify
  • Loading branch information
alexeagle committed Oct 1, 2015
1 parent e1853b3 commit 90fddbf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 102 deletions.
3 changes: 0 additions & 3 deletions modules/angular2/README.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ This package contains different sources for different users:
* `prod/`: a production version that does not include runtime type assertions
3. The files under `/ts` are the TypeScript source files.

As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
using [Google Traceur](https://github.com/google/traceur-compiler/).

License: Apache MIT 2.0
3 changes: 0 additions & 3 deletions modules/benchpress/README.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ This package contains different sources for different users:
* `prod/`: a production version that does not include runtime type assertions
3. The files under `/ts` are the Typescript source files

As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
using [Google Traceur](https://github.com/google/traceur-compiler/).

License: Apache MIT 2.0
22 changes: 1 addition & 21 deletions tools/broccoli/trees/browser_tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
patterns: [{match: /\$SCRIPTS\$/, replacement: jsReplace('SCRIPTS')}]
});

// Use TypeScript to transpile the *.ts files to ES6
var es6Tree = compileWithTypescript(modulesTree, {
allowNonTsExtensions: false,
declaration: false,
emitDecoratorMetadata: true,
mapRoot: '', // force sourcemaps to use relative path
noEmitOnError: false,
rootDir: '.',
sourceMap: true,
sourceRoot: '.',
target: 'ES6'
});

// Use TypeScript to transpile the *.ts files to ES5
var es5Tree = compileWithTypescript(es5ModulesTree, {
allowNonTsExtensions: false,
Expand All @@ -133,10 +120,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
target: 'ES5'
});

// Now we add a few more files to the es6 tree that the es5 tree should not see
var extras = new Funnel('tools/build', {files: ['es5build.js'], destDir: 'angular2'});
es6Tree = mergeTrees([es6Tree, extras]);

var vendorScriptsTree = flatten(new Funnel('.', {
files: [
'node_modules/es6-shim/es6-shim.js',
Expand Down Expand Up @@ -211,9 +194,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
htmlTree = mergeTrees([htmlTree, scripts, polymer, react]);

es5Tree = mergeTrees([es5Tree, htmlTree, assetsTree, rxJs]);
es6Tree = mergeTrees([es6Tree, htmlTree, assetsTree, rxJs]);

var mergedTree = mergeTrees([stew.mv(es6Tree, '/es6'), stew.mv(es5Tree, '/es5')]);

return destCopy(mergedTree, destinationPath);
return destCopy(stew.mv(es5Tree, '/es5'), destinationPath);
};
75 changes: 0 additions & 75 deletions tools/build/es5build.js

This file was deleted.

0 comments on commit 90fddbf

Please sign in to comment.