Conversation
e8cefba to
e34f936
Compare
package.json
Outdated
| "babel-plugin-transform-es2015-computed-properties": "^6.22.0", | ||
| "babel-plugin-transform-es2015-destructuring": "^6.23.0", | ||
| "babel-plugin-transform-es2015-modules-amd": "^6.24.0", | ||
| "babel-plugin-transform-es2015-modules-commonjs": "^6.24.0", |
broccoli/addon.js
Outdated
| var tree = addon.treeFor('addon'); | ||
|
|
||
| return new Funnel(tree, { | ||
| srcDir: 'modules' |
There was a problem hiding this comment.
This changes in ember-cli@2.13. We no longer emit treeForAddon into modules/.
broccoli/ember-tests-es.js
Outdated
|
|
||
| module.exports = function emberTestES(name) { | ||
| return new Funnel(`packages/${name}/tests`, { | ||
| getDestinationPath(relativePath) { |
There was a problem hiding this comment.
I think this can be changed to avoid requiring us to stat and symlink all the files:
return new Funnel(`packages/${name}/tests`, {
destDir: `${name}/tests/`
});
broccoli/find-lib.js
Outdated
| function getLibPath(packagePath) { | ||
| let packageJson = require(packagePath); | ||
|
|
||
| return path.dirname(packageJson['module'] || packageJson['main'] || '.'); |
There was a problem hiding this comment.
The last || '.' seems odd, do we need that?
| GlimmerTemplatePrecompiler.prototype.processString = function(content, relativePath) { | ||
| var compiled = this.precompile(content, { meta: { moduleName: relativePath } }); | ||
| var template = 'import template from "../template";\n'; | ||
| template += 'export default template(' + compiled + ');'; |
There was a problem hiding this comment.
could probably use template strings nicely here:
const stripIndent = require('common-tags').stripIndent;
//...snip...
return stripIndent`
import template from '../template';
export default template(${compiled});
`;| } | ||
|
|
||
| injectNodeGlobals.baseDir = function() { | ||
| return 'babel-plugin-transform-es2015-modules-amd'; |
There was a problem hiding this comment.
This seems odd, it should return a path
There was a problem hiding this comment.
So it's going to do hash-for-dep. So __dirname is no good, this thing doesn't have any dependencies and deriving the cachkey from Ember's deps seems wrong.
There was a problem hiding this comment.
it does, it is dependent on babel and its own file, but it at least should be returning itself.
| emberFeaturesES, | ||
| packageManagerJSONs, | ||
| nodeTests | ||
| } = require('./broccoli/packages'); |
There was a problem hiding this comment.
Destructuring requires node 6 😢. I'm ok with requiring node@6 here, but when we ultimately have ember-cli apps building ember-source themselves (when not running a tagged version) we will need to downgrade to support node@4.
| 'ember-debug': { trees: null, requirements: [] }, | ||
| 'ember-runtime': { trees: null, vendorRequirements: ['rsvp'], requirements: ['container', 'ember-environment', 'ember-console', 'ember-metal'] }, | ||
| 'ember-views': { trees: null, requirements: ['ember-runtime'] }, | ||
| 'ember-views': { trees: null, requirements: ['ember-runtime'], skipTests: true }, |
There was a problem hiding this comment.
Are there no tests, or did you move them?
There was a problem hiding this comment.
There are no more tests in there.
| function ensureRunloop() { | ||
| if (!run) { | ||
| run = require('ember-metal/run_loop').default; | ||
| run = require('ember-metal').run; |
| } | ||
|
|
||
| function interopExportWildcard(obj, defaults) { | ||
| export function interopExportWildcard(obj, defaults) { |
There was a problem hiding this comment.
I think with noInterop and strict set for modules, this should not be needed?
e34f936 to
e4a9446
Compare
This also rolls up ember-metal
e4a9446 to
c845e80
Compare
This removes emberjs-build and introduces babel @ 6.0.0. Also sets things up Svelte and RFC#176.
Also this makes rebuilds about twice as fast.