diff --git a/docs/dgeni-package/services/tsParser.js b/docs/dgeni-package/services/tsParser.js index 8fc74596b3..32b6d29aa8 100644 --- a/docs/dgeni-package/services/tsParser.js +++ b/docs/dgeni-package/services/tsParser.js @@ -9,7 +9,7 @@ module.exports = function tsParser(createCompilerHost, log) { // During migration from Traceur, there is a mix of `.ts`, `.es6` and `.js` (atScript) // files in the project and the TypeScript compiler only looks for `.ts` files when trying // to load imports. - extensions: ['.ts', '.js', '.es6'], + extensions: ['.ts', '.js'], // The options for the TS compiler options: { diff --git a/gulpfile.js b/gulpfile.js index ee220cb7c3..6055d26c81 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -223,7 +223,7 @@ gulp.task('build/checkCircularDependencies', function (done) { var dependencyObject = madge(CONFIG.dest.js.dev.es6, { format: 'es6', paths: [CONFIG.dest.js.dev.es6], - extensions: ['.js', '.es6'], + extensions: ['.js'], onParseFile: function(data) { data.src = data.src.replace(/import \* as/g, "//import * as"); } @@ -708,7 +708,7 @@ gulp.task('!build.js.cjs', function() { var bundleConfig = { paths: { - "*": "dist/js/prod/es6/*.es6", + "*": "dist/js/prod/es6/*.js", "rx": "node_modules/rx/dist/rx.js" }, meta: { @@ -747,7 +747,7 @@ gulp.task('bundle.js.dev', ['build.js.dev'], function() { var devBundleConfig = merge(true, bundleConfig); devBundleConfig.paths = merge(true, devBundleConfig.paths, { - "*": "dist/js/dev/es6/*.es6" + "*": "dist/js/dev/es6/*.js" }); return bundler.bundle( devBundleConfig, @@ -760,7 +760,7 @@ gulp.task('router.bundle.js.dev', ['build.js.dev'], function() { var devBundleConfig = merge(true, bundleConfig); devBundleConfig.paths = merge(true, devBundleConfig.paths, { - "*": "dist/js/dev/es6/*.es6" + "*": "dist/js/dev/es6/*.js" }); return bundler.bundle( devBundleConfig, @@ -778,7 +778,7 @@ gulp.task('bundle.js.sfx.dev', ['build.js.dev'], function() { var devBundleConfig = merge(true, bundleConfig); devBundleConfig.paths = merge(true, devBundleConfig.paths, { - '*': 'dist/js/dev/es6/*.es6' + '*': 'dist/js/dev/es6/*.js' }); return bundler.bundle( devBundleConfig, diff --git a/modules/examples/e2e_test/sourcemap/sourcemap_spec.ts b/modules/examples/e2e_test/sourcemap/sourcemap_spec.ts index c29b2b2c50..8fc9f7bcc4 100644 --- a/modules/examples/e2e_test/sourcemap/sourcemap_spec.ts +++ b/modules/examples/e2e_test/sourcemap/sourcemap_spec.ts @@ -34,7 +34,7 @@ describe('sourcemaps', function() { var originalPosition = decoder.originalPositionFor({line: errorLine, column: errorColumn}); - var finalMapData = fs.readFileSync('dist/js/prod/es6/examples/src/sourcemap/index.es6.map'); + var finalMapData = fs.readFileSync('dist/js/prod/es6/examples/src/sourcemap/index.js.map'); var finalDecoder = new sourceMap.SourceMapConsumer(JSON.parse(finalMapData)); var finalPosition = finalDecoder.originalPositionFor(originalPosition); diff --git a/modules/rtts_assert/README.js.md b/modules/rtts_assert/README.js.md index bd2cecde29..88d2e3691f 100644 --- a/modules/rtts_assert/README.js.md +++ b/modules/rtts_assert/README.js.md @@ -3,7 +3,7 @@ A run-time type assertion library for JavaScript. Designed to be used with [Traceur](https://github.com/google/traceur-compiler). -All sources are in ES6 format and have the suffix `.es6`. They don't depend on any runtime +All sources are in ES6 format. They don't depend on any runtime and can be used by any modern ES6 -> ES5 transpiler. As a convenience, we provide you with `es5build.js`, a script to transpile the sources into es5 diff --git a/tools/broccoli/traceur/index.ts b/tools/broccoli/traceur/index.ts index 356d22886d..cc82a14d9d 100644 --- a/tools/broccoli/traceur/index.ts +++ b/tools/broccoli/traceur/index.ts @@ -13,7 +13,7 @@ let xtend = require('xtend'); class DiffingTraceurCompiler implements DiffingBroccoliPlugin { constructor(public inputPath: string, public cachePath: string, public options) {} - static includeExtensions = ['.js', '.es6', '.cjs']; + static includeExtensions = ['.js', '.cjs']; rebuild(treeDiff: DiffResult) { treeDiff.addedPaths.concat(treeDiff.changedPaths) diff --git a/tools/broccoli/trees/browser_tree.ts b/tools/broccoli/trees/browser_tree.ts index f81601265a..fba937b095 100644 --- a/tools/broccoli/trees/browser_tree.ts +++ b/tools/broccoli/trees/browser_tree.ts @@ -64,7 +64,7 @@ module.exports = function makeBrowserTree(options, destinationPath) { // Use Traceur to transpile *.js sources to ES6 var traceurTree = transpileWithTraceur(modulesTree, { - destExtension: '.es6', + destExtension: '.js', destSourceMapExtension: '.map', traceurOptions: { sourceMaps: true, @@ -93,7 +93,6 @@ module.exports = function makeBrowserTree(options, destinationPath) { sourceRoot: '.', target: 'ES6' }); - typescriptTree = stew.rename(typescriptTree, '.js', '.es6'); var es6Tree = mergeTrees([traceurTree, typescriptTree]); diff --git a/tools/build/es5build.js b/tools/build/es5build.js index b16f9d9e7a..2fae571953 100755 --- a/tools/build/es5build.js +++ b/tools/build/es5build.js @@ -46,11 +46,8 @@ if (!module.parent) { } function run(config) { - var src = ['!node_modules', '!node_modules/**', './**/*.es6']; + var src = ['!node_modules', '!node_modules/**', './**/*.js']; return gulp.src(src, {cwd: config.src}) - .pipe(rename(function(file) { - file.extname = file.extname.replace('.es6', '.js'); - })) // TODO(tbosch): Using sourcemaps.init({loadMaps:true}) does not combine // the sourcemaps correctly! .pipe(sourcemaps.init())