language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | emberjs | ember.js | c32446792cee3f1006c00b2aa546438693a6cae5.json | Remove usage of `LOOKUP_FACTORY`.
This was added as a "backdoor" to use `container.lookupFactory`
(and its double extend semantics) without triggering a deprecation. | packages/container/tests/container_test.js | @@ -3,7 +3,6 @@ import { ENV } from 'ember-environment';
import { get } from 'ember-metal';
import { Registry } from '..';
import { factory } from 'internal-test-helpers';
-import { LOOKUP_FACTORY } from 'container';
let originalModelInjections;
@@ -17,7 +16,12 @@ QUnit.module('Container', {
});
function lo... | true |
Other | emberjs | ember.js | c32446792cee3f1006c00b2aa546438693a6cae5.json | Remove usage of `LOOKUP_FACTORY`.
This was added as a "backdoor" to use `container.lookupFactory`
(and its double extend semantics) without triggering a deprecation. | packages/ember-application/lib/system/engine-instance.js | @@ -12,7 +12,7 @@ import {
} from 'ember-runtime';
import { assert, Error as EmberError } from 'ember-debug';
import { run } from 'ember-metal';
-import { Registry, LOOKUP_FACTORY, privatize as P } from 'container';
+import { Registry, privatize as P } from 'container';
import { getEngineParent, setEngineParent } f... | true |
Other | emberjs | ember.js | c32446792cee3f1006c00b2aa546438693a6cae5.json | Remove usage of `LOOKUP_FACTORY`.
This was added as a "backdoor" to use `container.lookupFactory`
(and its double extend semantics) without triggering a deprecation. | packages/ember-runtime/lib/mixins/container_proxy.js | @@ -6,9 +6,6 @@ import {
Mixin,
run
} from 'ember-metal';
-import {
- LOOKUP_FACTORY
-} from 'container';
/**
ContainerProxyMixin is used to provide public access to specific
@@ -110,10 +107,6 @@ let containerProxyMixin = {
return this.__container__.lookupFactory(fullName, options);
},
- [LOOKU... | true |
Other | emberjs | ember.js | c32446792cee3f1006c00b2aa546438693a6cae5.json | Remove usage of `LOOKUP_FACTORY`.
This was added as a "backdoor" to use `container.lookupFactory`
(and its double extend semantics) without triggering a deprecation. | packages/internal-test-helpers/lib/build-owner.js | @@ -1,4 +1,4 @@
-import { Registry, LOOKUP_FACTORY } from 'container';
+import { Registry } from 'container';
import { Router } from 'ember-routing';
import {
Application,
@@ -15,17 +15,7 @@ export default function buildOwner(options = {}) {
let resolver = options.resolver;
let bootOptions = options.bootOpti... | true |
Other | emberjs | ember.js | a97f8c5c5181c776896591db34216697f199d7a1.json | add test for binding in input type=checkbox | packages/ember-glimmer/lib/components/checkbox.js | @@ -51,7 +51,6 @@ export default EmberComponent.extend({
],
type: 'checkbox',
- checked: false,
disabled: false,
indeterminate: false,
@@ -61,6 +60,6 @@ export default EmberComponent.extend({
},
change() {
- set(this, 'checked', this.$().prop('checked'));
+ set(this, 'checked', this.$().pr... | true |
Other | emberjs | ember.js | a97f8c5c5181c776896591db34216697f199d7a1.json | add test for binding in input type=checkbox | packages/ember-glimmer/tests/integration/helpers/input-test.js | @@ -535,6 +535,17 @@ moduleFor(`Helpers test: {{input type='checkbox'}}`, class extends InputRenderin
this.assertCheckboxIsChecked();
}
+ ['@test native click changes check property'](assert) {
+ this.render(`{{input type="checkbox"}}`);
+
+ this.assertSingleCheckbox();
+ this.assertCheckboxIsNotChe... | true |
Other | emberjs | ember.js | a1e3a9fbf2560ca77a4956780971d83b71eacb14.json | remove old deprecation flag in Map/OrderedSet | packages/ember-metal/lib/map.js | @@ -65,7 +65,6 @@ function copyMap(original, newObject) {
function OrderedSet() {
if (this instanceof OrderedSet) {
this.clear();
- this._silenceRemoveDeprecation = false;
} else {
missingNew('OrderedSet');
}
@@ -209,7 +208,6 @@ OrderedSet.prototype = {
let Constructor = this.constructor;
... | false |
Other | emberjs | ember.js | fe59f2cafbc53b737b5542edbe7549c1e0a4dab0.json | Improve test names | packages/ember-routing/tests/system/controller_for_test.js | @@ -27,23 +27,22 @@ moduleFor('Ember.generateController', class extends ApplicationTestCase {
});
}
- ['@test generateController should return App.Controller if provided'](assert) {
- let MainController = Controller.extend();
- this.add('controller:basic', MainController);
+ ['@test generateController... | false |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-application/lib/utils/validate-type.js | @@ -21,20 +21,9 @@ export default function validateType(resolvedType, parsedName) {
let [action, factoryFlag, expectedType] = validationAttributes;
- if (action === 'deprecate') {
- deprecate(
- `In Ember 2.0 ${parsedName.type} factories must have an \`${factoryFlag}\` ` +
- `property set to true. ... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-application/tests/system/dependency_injection/default_resolver_test.js | @@ -20,7 +20,6 @@ import {
setTemplate,
Helper,
helper as makeHelper,
- makeBoundHelper as makeHTMLBarsBoundHelper
} from 'ember-glimmer';
import { compile } from 'ember-template-compiler';
@@ -157,21 +156,14 @@ QUnit.test('the default resolver resolves helpers on the namespace', function()
let Complet... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-glimmer/lib/index.js | @@ -204,7 +204,6 @@ export { default as LinkComponent } from './components/link-to';
export { default as Component } from './component';
export { default as Helper, helper } from './helper';
export { default as Environment } from './environment';
-export { default as makeBoundHelper } from './make-bound-helper';
ex... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-glimmer/lib/make-bound-helper.js | @@ -1,58 +0,0 @@
-/**
-@module ember
-@submodule ember-glimmer
-*/
-import { deprecate } from 'ember-debug';
-import { helper } from './helper';
-
-/**
- Create a bound helper. Accepts a function that receives the ordered and hash parameters
- from the template. If a bound property was provided in the template, it wi... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-glimmer/tests/integration/helpers/custom-helper-test.js | @@ -1,6 +1,5 @@
/* globals EmberDev */
import { RenderingTest, moduleFor } from '../../utils/test-case';
-import { makeBoundHelper } from '../../utils/helpers';
import { runDestroy } from 'internal-test-helpers';
import { set } from 'ember-metal';
import { HAS_NATIVE_WEAKMAP } from 'ember-utils';
@@ -57,24 +56,6 @... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-glimmer/tests/utils/helpers.js | @@ -13,7 +13,6 @@ export {
TextField,
InteractiveRender,
InertRenderer,
- makeBoundHelper,
htmlSafe,
SafeString,
DOMChanges, | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember-metal/tests/main_test.js | @@ -32,18 +32,6 @@ QUnit.test('SEMVER_REGEX properly validates and invalidates version numbers', fu
validateVersionString('1.11', false);
});
-QUnit.test('Ember.keys is deprecated', function() {
- expectDeprecation(function() {
- Ember.keys({});
- }, 'Ember.keys is deprecated in favor of Object.keys');
-});
... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember/lib/index.js | @@ -482,7 +482,6 @@ import {
template,
escapeExpression,
isHTMLSafe,
- makeBoundHelper,
getTemplates,
setTemplates,
_getSafeString
@@ -515,7 +514,6 @@ EmberHandleBarsUtils.escapeExpression = escapeExpression;
EmberString.htmlSafe = htmlSafe;
EmberString.isHTMLSafe = isHTMLSafe;
-EmberHTMLBars.mak... | true |
Other | emberjs | ember.js | f97fae97ef1ead675d26812a1ba610586d7dacc2.json | Remove 1.13 deprecations | packages/ember/tests/reexports_test.js | @@ -143,7 +143,6 @@ QUnit.module('ember reexports');
['Handlebars.SafeString', 'ember-glimmer', { get: '_getSafeString' }],
['Handlebars.Utils.escapeExpression', 'ember-glimmer', 'escapeExpression'],
['String.htmlSafe', 'ember-glimmer', 'htmlSafe'],
- ['HTMLBars.makeBoundHelper', 'ember-glimmer', 'makeBoundHe... | true |
Other | emberjs | ember.js | 7b7e20e2297f63b26dd1dbd3455b63e06b6c591e.json | Implement feedback from merge party | packages/ember-glimmer/lib/environment.js | @@ -151,16 +151,12 @@ export default class Environment extends GlimmerEnvironment {
getComponentDefinition(path, symbolTable) {
let name = path[0];
- let finalizer = _instrumentStart('render.compile', instrumentationPayload, name);
+ let finalizer = _instrumentStart('render.getComponentDefinition', inst... | true |
Other | emberjs | ember.js | 7b7e20e2297f63b26dd1dbd3455b63e06b6c591e.json | Implement feedback from merge party | packages/ember-glimmer/lib/syntax/curly-component.js | @@ -175,8 +175,6 @@ class CurlyComponentManager extends AbstractManager {
}
create(environment, definition, args, dynamicScope, callerSelfRef, hasBlock) {
- definition.finalizer();
-
if (DEBUG) {
this._pushToDebugStack(`component:${definition.name}`, environment)
}
@@ -423,7 +421,6 @@ export... | true |
Other | emberjs | ember.js | 7b7e20e2297f63b26dd1dbd3455b63e06b6c591e.json | Implement feedback from merge party | packages/ember-glimmer/tests/integration/components/instrumentation-compile-test.js | @@ -12,7 +12,7 @@ moduleFor('Components compile instrumentation', class extends RenderingTest {
this.resetEvents();
- instrumentationSubscribe('render.compile', {
+ instrumentationSubscribe('render.getComponentDefinition', {
before: (name, timestamp, payload) => {
if (payload.view !== thi... | true |
Other | emberjs | ember.js | 0f1db78ce5ed9370482331b8668aa7057384935c.json | Add test coverage to Object.assign polyfill | packages/ember-utils/tests/assign_test.js | @@ -2,16 +2,37 @@ import { assignPolyfill as assign } from '..';
QUnit.module('Ember.assign');
-QUnit.test('Ember.assign', function() {
- let a = { a: 1 };
- let b = { b: 2 };
- let c = { c: 3 };
- let a2 = { a: 4 };
-
- assign(a, b, c, a2);
-
- deepEqual(a, { a: 4, b: 2, c: 3 });
- deepEqual(b, { b: 2 });
... | false |
Other | emberjs | ember.js | 6a017c01ac54c81b31896b2b79f6558c2dc6dc89.json | Use Object.assign instead of polyfill if available
- Use `Object.assign` instead of polyfill if available
- Expose `assignPolyfill` for direct testing | packages/ember-utils/lib/assign.js | @@ -15,7 +15,7 @@
@return {Object}
@public
*/
-export default function assign(original) {
+export function assign(original) {
for (let i = 1; i < arguments.length; i++) {
let arg = arguments[i];
if (!arg) { continue; }
@@ -30,3 +30,5 @@ export default function assign(original) {
return original... | true |
Other | emberjs | ember.js | 6a017c01ac54c81b31896b2b79f6558c2dc6dc89.json | Use Object.assign instead of polyfill if available
- Use `Object.assign` instead of polyfill if available
- Expose `assignPolyfill` for direct testing | packages/ember-utils/lib/index.js | @@ -10,7 +10,10 @@
*/
export { default as symbol } from './symbol';
export { getOwner, setOwner, OWNER } from './owner';
-export { default as assign } from './assign';
+
+// Export `assignPolyfill` for testing
+export { default as assign, assign as assignPolyfill } from './assign';
+
export { default as dictionary ... | true |
Other | emberjs | ember.js | 6a017c01ac54c81b31896b2b79f6558c2dc6dc89.json | Use Object.assign instead of polyfill if available
- Use `Object.assign` instead of polyfill if available
- Expose `assignPolyfill` for direct testing | packages/ember-utils/tests/assign_test.js | @@ -1,4 +1,4 @@
-import { assign } from '..';
+import { assignPolyfill as assign } from '..';
QUnit.module('Ember.assign');
| true |
Other | emberjs | ember.js | 6a017c01ac54c81b31896b2b79f6558c2dc6dc89.json | Use Object.assign instead of polyfill if available
- Use `Object.assign` instead of polyfill if available
- Expose `assignPolyfill` for direct testing | packages/ember/lib/index.js | @@ -25,7 +25,7 @@ Ember.tryInvoke = utils.tryInvoke;
Ember.wrap = utils.wrap;
Ember.applyStr = utils.applyStr;
Ember.uuid = utils.uuid;
-Ember.assign = Object.assign || utils.assign;
+Ember.assign = utils.assign;
// container exports
Ember.Container = Container; | true |
Other | emberjs | ember.js | 6a017c01ac54c81b31896b2b79f6558c2dc6dc89.json | Use Object.assign instead of polyfill if available
- Use `Object.assign` instead of polyfill if available
- Expose `assignPolyfill` for direct testing | packages/ember/tests/reexports_test.js | @@ -8,7 +8,7 @@ QUnit.module('ember reexports');
// ember-utils
['getOwner', 'ember-utils', 'getOwner'],
['setOwner', 'ember-utils', 'setOwner'],
- // ['assign', 'ember-metal'], TODO: fix this test, we use `Object.assign` if present
+ ['assign', 'ember-utils'],
['GUID_KEY', 'ember-utils'],
['uuid', 'em... | true |
Other | emberjs | ember.js | ceea31a86e38e16f1d5775cefabc2fa092dd192a.json | Remove use of private method makeArray in examples | packages/ember-runtime/lib/utils.js | @@ -89,7 +89,7 @@ export function isArray(obj) {
Ember.typeOf(new Number(101)); // 'number'
Ember.typeOf(true); // 'boolean'
Ember.typeOf(new Boolean(true)); // 'boolean'
- Ember.typeOf(Ember.makeArray); // 'function'
+ Ember.typeOf(Ember.A); // 'function'
... | false |
Other | emberjs | ember.js | 99cca3ea366ac20ebbba830bcd261b25e420272d.json | Add test case for render.compile instrumentation | packages/ember-glimmer/lib/environment.js | @@ -57,7 +57,7 @@ import { FACTORY_FOR } from 'container';
import { default as ActionModifierManager } from './modifiers/action';
function instrumentationPayload(name) {
- return { object: name };
+ return { object: `component:${name}` };
}
export default class Environment extends GlimmerEnvironment { | true |
Other | emberjs | ember.js | 99cca3ea366ac20ebbba830bcd261b25e420272d.json | Add test case for render.compile instrumentation | packages/ember-glimmer/tests/integration/components/instrumentation-compile-test.js | @@ -0,0 +1,97 @@
+import { moduleFor, RenderingTest } from '../../utils/test-case';
+import { Component } from '../../utils/helpers';
+import {
+ instrumentationSubscribe,
+ instrumentationReset,
+ set
+} from 'ember-metal';
+
+moduleFor('Components compile instrumentation', class extends RenderingTest {
+ construc... | true |
Other | emberjs | ember.js | 3bac3e88ebcaa95f0ac5757f6b8b1b669d9cdd4a.json | Add failing tests for ember-cli/6026 | node-tests/blueprints/route-test.js | @@ -85,6 +85,54 @@ describe('Acceptance: ember generate and destroy route', function() {
.to.not.contain('path: \':foo_id/show\''));
});
+ it('route --reset-namespace', function() {
+ var args = ['route', 'parent/child', '--reset-namespace'];
+
+ return emberNew()
+ .then(() => emberGenerateDe... | false |
Other | emberjs | ember.js | c5ec6debf53c183f2c259a2c1dda6180c0f44f1c.json | drop the replaceIn API | packages/ember-views/lib/mixins/view_support.js | @@ -329,31 +329,6 @@ export default Mixin.create({
return element;
},
- /**
- Replaces the content of the specified parent element with this view's
- element. If the view does not have an HTML representation yet,
- the element will be generated automatically.
-
- Note that this method just schedu... | false |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | broccoli/packages.js | @@ -237,8 +237,11 @@ module.exports.emberLicense = function _emberLicense() {
module.exports.emberFeaturesES = function _emberFeaturesES(production = false) {
let FEATURES = production ? RELEASE : DEBUG;
let content = stripIndent`
- const FEATURES = ${JSON.stringify(FEATURES)};
- export default FEATURES;
+... | true |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | packages/ember-debug/lib/features.js | @@ -1,6 +1,6 @@
-import { assign } from 'ember-utils';
import { ENV } from 'ember-environment';
-import DEFAULT_FEATURES from 'ember/features';
+import * as FLAGS from 'ember/features';
+let { FEATURES } = FLAGS;
/**
The hash of enabled Canary features. Add to this, any canary features
@@ -15,7 +15,8 @@ import D... | true |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | packages/ember-debug/lib/index.js | @@ -1,15 +1,16 @@
-import DEFAULT_FEATURES from 'ember/features';
import { ENV, environment } from 'ember-environment';
import Logger from 'ember-console';
import { isTesting } from './testing';
import EmberError from './error';
-import { default as isFeatureEnabled, FEATURES } from './features';
+import { default ... | true |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | packages/ember-template-compiler/lib/index.js | @@ -1,11 +1,11 @@
import _Ember from 'ember-metal';
-import { FEATURES } from 'ember-debug';
+import * as FLAGS from 'ember/features';
import { ENV } from 'ember-environment';
import VERSION from 'ember/version';
// private API used by ember-cli-htmlbars to setup ENV and FEATURES
if (!_Ember.ENV) { _Ember.ENV = ... | true |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | packages/ember/lib/index.js | @@ -9,7 +9,8 @@ import { Registry, Container } from 'container';
// ****ember-metal****
import Ember, * as metal from 'ember-metal';
-import { EMBER_METAL_WEAKMAP } from 'ember/features'
+import { EMBER_METAL_WEAKMAP } from 'ember/features';
+import * as FLAGS from 'ember/features'
// ember-utils exports
Ember.... | true |
Other | emberjs | ember.js | 84ff4a84994716a4bf9d6764b0dc0f7d1e3ad025.json | Fix runtime feature flags | packages/ember/tests/reexports_test.js | @@ -47,7 +47,7 @@ QUnit.module('ember reexports');
['onerror', 'ember-metal', { get: 'getOnerror', set: 'setOnerror' }],
// ['create'], TODO: figure out what to do here
// ['keys'], TODO: figure out what to do here
- ['FEATURES', 'ember-debug'],
+ ['FEATURES', 'ember/features'],
['FEATURES.isEnabled', 'em... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-application/lib/system/application.js | @@ -1024,6 +1024,7 @@ Application.reopenClass({
});
function commonSetupRegistry(registry) {
+ registry.register('router:main', Router);
registry.register('-view-registry:main', { create() { return dictionary(null); } });
registry.register('route:basic', Route); | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/application/actions-test.js | @@ -6,15 +6,15 @@ moduleFor('Application test: actions', class extends ApplicationTest {
['@test actions in top level template application template target application controller'](assert) {
assert.expect(1);
- this.registerController('application', Controller.extend({
+ this.add('controller:application'... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/application/engine-test.js | @@ -10,26 +10,26 @@ moduleFor('Application test: engine rendering', class extends ApplicationTest {
setupAppAndRoutableEngine(hooks = []) {
let self = this;
- this.application.register('template:application', compile('Application{{outlet}}'));
+ this.addTemplate('application', 'Application{{outlet}}');
... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/application/rendering-test.js | @@ -8,21 +8,21 @@ import { Component } from 'ember-glimmer';
moduleFor('Application test: rendering', class extends ApplicationTest {
['@test it can render the application template'](assert) {
- this.registerTemplate('application', 'Hello world!');
+ this.addTemplate('application', 'Hello world!');
r... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/components/link-to-test.js | @@ -17,7 +17,7 @@ moduleFor('Link-to component', class extends ApplicationTest {
['@test accessing `currentWhen` triggers a deprecation'](assert) {
let component;
- this.registerComponent('link-to', {
+ this.addComponent('link-to', {
ComponentClass: LinkComponent.extend({
init() {
... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/components/target-action-test.js | @@ -277,7 +277,7 @@ moduleFor('Components test: sendAction to a controller', class extends Applicati
});
});
- this.registerComponent('foo-bar', {
+ this.addComponent('foo-bar', {
ComponentClass: Component.extend({
init() {
this._super(...arguments);
@@ -287,53 +287,53 @@ ... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/components/utils-test.js | @@ -19,15 +19,15 @@ moduleFor('View tree tests', class extends ApplicationTest {
constructor() {
super();
- this.registerComponent('x-tagless', {
+ this.addComponent('x-tagless', {
ComponentClass: Component.extend({
tagName: ''
}),
template: '<div id="{{id}}">[{{id}}] {{#... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember-glimmer/tests/integration/mount-test.js | @@ -36,7 +36,7 @@ moduleFor('{{mount}} test', class extends ApplicationTest {
let engineRegistrations = this.engineRegistrations = {};
- this.registerEngine('chat', Engine.extend({
+ this.add('engine:chat', Engine.extend({
router: null,
init() {
@@ -48,7 +48,7 @@ moduleFor('{{mount}} test... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test.js | @@ -25,7 +25,7 @@ moduleFor('Query Params - main', class extends QueryParamTestCase {
let appModelCount = 0;
let promiseResolve;
- this.registerRoute('application', Route.extend({
+ this.add('route:application', Route.extend({
queryParams: {
appomg: {
defaultValue: 'applol'
... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js | @@ -94,7 +94,7 @@ class ModelDependentQPTestCase extends QueryParamTestCase {
assert.expect(32);
- this.registerTemplate('application', `{{#each articles as |a|}} {{link-to 'Article' '${articleLookup}' a.id id=a.id}} {{/each}}`);
+ this.addTemplate('application', `{{#each articles as |a|}} {{link-to 'Art... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test/overlapping_query_params_test.js | @@ -113,8 +113,8 @@ moduleFor('Query Params - overlapping query param property names', class extends
let parentController = Controller.extend({
queryParams: { page: 'page' }
});
- this.registerController('parent', parentController);
- this.registerRoute('parent.child', Route.extend({controllerNam... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test/query_param_async_get_handler_test.js | @@ -59,7 +59,7 @@ moduleFor('Query Params - async get handler', class extends QueryParamTestCase {
this.setSingleQPController('post');
let setupAppTemplate = () => {
- this.registerTemplate('application', `
+ this.addTemplate('application', `
{{link-to 'Post' 'post' 1337 (query-params foo... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test/query_params_paramless_link_to_test.js | @@ -6,9 +6,9 @@ moduleFor('Query Params - paramless link-to', class extends QueryParamTestCase {
testParamlessLinks(assert, routeName) {
assert.expect(1);
- this.registerTemplate(routeName, '{{link-to \'index\' \'index\' id=\'index-link\'}}');
+ this.addTemplate(routeName, '{{link-to \'index\' \'index\'... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/query_params_test/shared_state_test.js | @@ -20,24 +20,24 @@ moduleFor('Query Params - shared service state', class extends QueryParamTestCas
this.route('dashboard');
});
- this.application.register('service:filters', Service.extend({
+ this.add('service:filters', Service.extend({
shared: true
}));
- this.registerControlle... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/router_service_test/basic_test.js | @@ -72,7 +72,7 @@ if (isFeatureEnabled('ember-routing-router-service')) {
['@test RouterService#rootURL is correctly set to a custom value'](assert) {
assert.expect(1);
- this.registerRoute('parent.index', Route.extend({
+ this.add('route:parent.index', Route.extend({
init() {
... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/router_service_test/currenturl_lifecycle_test.js | @@ -43,11 +43,11 @@ if (isFeatureEnabled('ember-routing-router-service')) {
ROUTE_NAMES.forEach((name) => {
let routeName = `parent.${name}`;
- this.registerRoute(routeName, InstrumentedRoute.extend());
- this.registerTemplate(routeName, '{{current-url}}');
+ this.add(`route:${rou... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/router_service_test/replaceWith_test.js | @@ -15,7 +15,7 @@ if (isFeatureEnabled('ember-routing-router-service')) {
let testCase = this;
testCase.state = [];
- this.application.register('location:test', NoneLocation.extend({
+ this.add('location:test', NoneLocation.extend({
setURL(path) {
testCase.state.push(path);... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/router_service_test/transitionTo_test.js | @@ -22,7 +22,7 @@ if (isFeatureEnabled('ember-routing-router-service')) {
let testCase = this;
testCase.state = [];
- this.application.register('location:test', NoneLocation.extend({
+ this.add('location:test', NoneLocation.extend({
setURL(path) {
testCase.state.push(path);... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/ember/tests/routing/router_service_test/urlFor_test.js | @@ -176,7 +176,7 @@ if (isFeatureEnabled('ember-routing-router-service')) {
let expectedURL;
let dynamicModel = { id: 1 };
- this.registerRoute('dynamic', Route.extend({
+ this.add('route:dynamic', Route.extend({
model() {
return dynamicModel;
}
@@ -221,7 +221,7 @@... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/internal-test-helpers/lib/test-cases/abstract-application.js | @@ -5,6 +5,7 @@ import { Router } from 'ember-routing';
import { compile } from 'ember-template-compiler';
import AbstractTestCase from './abstract';
+import { ModuleBasedResolver } from '../test-resolver';
import { runDestroy } from '../run';
export default class AbstractApplicationTestCase extends AbstractTes... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/internal-test-helpers/lib/test-cases/query-param.js | @@ -11,7 +11,7 @@ export default class QueryParamTestCase extends ApplicationTestCase {
let testCase = this;
testCase.expectedPushURL = null;
testCase.expectedReplaceURL = null;
- this.application.register('location:test', NoneLocation.extend({
+ this.add('location:test', NoneLocation.extend({
... | true |
Other | emberjs | ember.js | 0296f161b6e976719c11255dafaa055cbca3e9ec.json | Change the ApplicationTest to TestResolver | packages/internal-test-helpers/lib/test-resolver.js | @@ -9,6 +9,9 @@ class Resolver {
return this._registered[specifier];
}
add(specifier, factory) {
+ if (specifier.indexOf(':') === -1) {
+ throw new Error('Specifiers added to the resolver must be in the format of type:name');
+ }
return this._registered[specifier] = factory;
}
addTempla... | true |
Other | emberjs | ember.js | e53c8d247965820b066eb1166f0ea3e055852fc2.json | Convert application_test to test resolver | packages/ember-application/tests/system/application_test.js | @@ -24,389 +24,404 @@ import {
_loaded
} from 'ember-runtime';
import { compile } from 'ember-template-compiler';
-import { setTemplates, setTemplate } from 'ember-glimmer';
+import { setTemplates } from 'ember-glimmer';
import { privatize as P } from 'container';
import {
verifyInjection,
verifyRegistrati... | true |
Other | emberjs | ember.js | e53c8d247965820b066eb1166f0ea3e055852fc2.json | Convert application_test to test resolver | packages/internal-test-helpers/lib/index.js | @@ -28,3 +28,9 @@ export { default as QueryParamTestCase } from './test-cases/query-param';
export { default as AbstractRenderingTestCase } from './test-cases/abstract-rendering';
export { default as RenderingTestCase } from './test-cases/rendering';
export { default as RouterTestCase } from './test-cases/router';
+... | true |
Other | emberjs | ember.js | e53c8d247965820b066eb1166f0ea3e055852fc2.json | Convert application_test to test resolver | packages/internal-test-helpers/lib/test-cases/autoboot-application.js | @@ -0,0 +1,33 @@
+import AbstractTestCase from './abstract';
+import TestResolver from '../test-resolver';
+import { Application } from 'ember-application';
+import { assign } from 'ember-utils';
+import { runDestroy } from '../run';
+
+export default class AutobootApplicationTestCase extends AbstractTestCase {
+
+ te... | true |
Other | emberjs | ember.js | e53c8d247965820b066eb1166f0ea3e055852fc2.json | Convert application_test to test resolver | packages/internal-test-helpers/lib/test-resolver.js | @@ -0,0 +1,40 @@
+import { compile } from 'ember-template-compiler';
+
+class Resolver {
+ constructor() {
+ this._registered = {};
+ this.constructor.lastInstance = this;
+ }
+ resolve(specifier) {
+ return this._registered[specifier];
+ }
+ add(specifier, factory) {
+ return this._registered[specifie... | true |
Other | emberjs | ember.js | 56dcecfd09231b18c7cafeb3d2e2c17222d87cb8.json | Remove unnecessary comments | packages/ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js | @@ -75,7 +75,7 @@ class ModelDependentQPTestCase extends QueryParamTestCase {
assert.equal(this.controller.get('q'), 'lol');
assert.equal(this.controller.get('z'), 0);
assert.equal(this.$link1.attr('href'), `${urlPrefix}/a-1?q=lol`);
- assert.equal(this.$link2.attr('href'), `${urlPrefix}/a-2?q... | false |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | ember-cli-build.js | @@ -42,10 +42,10 @@ const SHOULD_ROLLUP = true;
module.exports = function(options) {
let tokenizer = simpleHTMLTokenizerES();
- let container = emberPkgES('container');
+ let container = emberPkgES('container', SHOULD_ROLLUP, ['ember-debug', 'ember-utils', 'ember-environment']);
let emberMetal = emberPkgES('... | true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/container/tests/container_test.js | @@ -1,7 +1,7 @@
import { getOwner, OWNER } from 'ember-utils';
import { ENV } from 'ember-environment';
import { get } from 'ember-metal';
-import { Registry } from '../index';
+import { Registry } from '..';
import { factory } from 'internal-test-helpers';
import { isFeatureEnabled } from 'ember-debug';
import {... | true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/container/tests/registry_test.js | @@ -1,4 +1,4 @@
-import { Registry } from '../index';
+import { Registry } from '..';
import { factory } from 'internal-test-helpers';
QUnit.module('Registry'); | true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/assign_test.js | @@ -1,4 +1,4 @@
-import assign from '../assign';
+import { assign } from '..';
QUnit.module('Ember.assign');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/can_invoke_test.js | @@ -1,4 +1,4 @@
-import { canInvoke } from '../index';
+import { canInvoke } from '..';
let obj;
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/checkHasSuper_test.js | @@ -1,5 +1,5 @@
import { environment } from 'ember-environment';
-import { checkHasSuper } from '../index';
+import { checkHasSuper } from '..';
QUnit.module('checkHasSuper');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/generate_guid_test.js | @@ -1,4 +1,4 @@
-import { generateGuid } from '../index';
+import { generateGuid } from '..';
QUnit.module('Ember.generateGuid');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/guid_for_test.js | @@ -1,6 +1,6 @@
import {
guidFor
-} from '../index';
+} from '..';
QUnit.module('guidFor');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/inspect_test.js | @@ -1,4 +1,4 @@
-import { inspect } from '../index';
+import { inspect } from '..';
// Symbol is not defined on pre-ES2015 runtimes, so this let's us safely test
// for it's existence (where a simple `if (Symbol)` would ReferenceError) | true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/make_array_test.js | @@ -1,4 +1,4 @@
-import makeArray from '../make-array';
+import { makeArray } from '..';
QUnit.module('Ember.makeArray');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/to-string-test.js | @@ -1,4 +1,4 @@
-import { toString } from '../index';
+import { toString } from '..';
QUnit.module('ember-utils toString');
| true |
Other | emberjs | ember.js | cce1f08a9f8b7a0ecca3574d43be98691d761afe.json | Rollup more leaf packages | packages/ember-utils/tests/try_invoke_test.js | @@ -1,4 +1,4 @@
-import { tryInvoke } from '../index';
+import { tryInvoke } from '..';
let obj;
| true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | .eslintrc.js | @@ -1,13 +1,6 @@
var fs = require('fs');
var path = require('path');
-function isEmberJSBuildLinked() {
- var emberjsBuildPath = path.dirname(require.resolve('emberjs-build'));
- var emberjsBuildLinked = emberjsBuildPath.indexOf(__dirname + '/node_modules') === -1;
-
- return emberjsBuildLinked;
-}
-
var option... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | bin/run-tests.js | @@ -3,7 +3,7 @@
var RSVP = require('rsvp');
var spawn = require('child_process').spawn;
var chalk = require('chalk');
-var getFeatures = require('../ember-cli-build').getFeatures;
+var FEATURES = require('../broccoli/features');
var getPackages = require('../lib/packages');
var runInSequence = require('../lib/run... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/addon.js | @@ -0,0 +1,17 @@
+'use strict';
+/* eslint-env node */
+
+const Funnel = require('broccoli-funnel');
+const semver = require('semver');
+
+module.exports = function addon(name, project) {
+ let addon = project.findAddonByName(name);
+ let tree = addon.treeFor('addon');
+ let options = {};
+
+ if (semver.lt(project.... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/babel-helpers.js | @@ -0,0 +1,19 @@
+'use strict';
+/* eslint-env node */
+const Funnel = require('broccoli-funnel');
+
+module.exports = function(env) {
+ let file;
+ if (env === 'debug') {
+ file = 'external-helpers-dev.js';
+ } else if (env === 'prod') {
+ file = 'external-helpers-prod.js'
+ }
+
+ return new Funnel('package... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/bootstrap-modules.js | @@ -0,0 +1,26 @@
+'use strict';
+/* eslint-env node */
+
+const WriteFile = require('broccoli-file-creator');
+
+function defaultExport(moduleExport) {
+ return `(function (m) { if (typeof module === "object" && module.exports) { module.exports = m } }(requireModule('${moduleExport}').default));\n`
+}
+
+function side... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/concat-bundle.js | @@ -0,0 +1,28 @@
+'use strict';
+/* eslint-env node */
+
+const concat = require('broccoli-concat');
+
+module.exports = function(tree, options) {
+ let { outputFile, hasBootstrap } = options;
+
+ if (typeof hasBootstrap !== 'boolean') {
+ hasBootstrap = true;
+ }
+
+ let footerFiles = [];
+
+ if (hasBootstrap)... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/features.js | @@ -0,0 +1,39 @@
+'use strict';
+/* eslint-env node */
+
+function getFeatures(isDebug) {
+ let features = Object.assign({}, require('../features').features);
+ let featureName;
+
+ if (process.env.BUILD_TYPE === 'alpha') {
+ for (featureName in features) {
+ if (features[featureName] === null) {
+ fe... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/find-lib.js | @@ -0,0 +1,19 @@
+/* eslint-env node */
+"use strict";
+
+const path = require('path');
+
+module.exports = function findLib(name, libPath) {
+ let packagePath = path.join(name, 'package');
+ let packageRoot = path.dirname(require.resolve(packagePath));
+
+ libPath = libPath || getLibPath(packagePath);
+
+ return p... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/funnel-lib.js | @@ -0,0 +1,19 @@
+/* eslint-env node */
+"use strict";
+
+const Funnel = require('broccoli-funnel');
+const findLib = require('./find-lib');
+
+module.exports = function funnelLib(name) {
+
+ let libPath, options;
+ if (arguments.length > 2) {
+ libPath = arguments[1];
+ options = arguments[2];
+ } else {
+ ... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/glimmer-template-compiler.js | @@ -0,0 +1,38 @@
+/* eslint-env node */
+'use strict';
+
+const Filter = require('broccoli-persistent-filter');
+const { stripIndent } = require('common-tags');
+
+GlimmerTemplatePrecompiler.prototype = Object.create(Filter.prototype);
+
+function GlimmerTemplatePrecompiler (inputTree, options) {
+ if (!(this instance... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/lint.js | @@ -0,0 +1,7 @@
+const ESLint = require('broccoli-lint-eslint');
+
+module.exports = function _lint(tree) {
+ return new ESLint(tree, {
+ testGenerator: 'qunit'
+ });
+}
\ No newline at end of file | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/minify.js | @@ -0,0 +1,34 @@
+const Funnel = require('broccoli-funnel');
+const Uglify = require('broccoli-uglify-js');
+const path = require('path');
+
+module.exports = function _minify(tree, name) {
+ let minified = new Uglify(tree, {
+ sourceMapConfig: {
+ enable: false
+ },
+ mangle: true,
+ compress: {
+ ... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/packages.js | @@ -0,0 +1,276 @@
+'use strict';
+/* eslint-env node */
+const { readFileSync } = require('fs');
+const path = require('path');
+const Rollup = require('broccoli-rollup');
+const Funnel = require('broccoli-funnel');
+const findLib = require('./find-lib');
+const funnelLib = require('./funnel-lib');
+const { VERSION } =... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/test-index-html.js | @@ -0,0 +1,25 @@
+'use strict';
+/* eslint-env node */
+const Funnel = require('broccoli-funnel');
+const StringReplace = require('broccoli-string-replace');
+const FEATURES = require('./features');
+
+module.exports = function testIndexHTML() {
+ let index = new Funnel('tests', {
+ files: ['index.html'],
+ dest... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/to-amd.js | @@ -0,0 +1,30 @@
+'use strict';
+/* eslint-env node */
+
+const resolveModuleSource = require('amd-name-resolver').moduleResolve;
+const Babel = require('broccoli-babel-transpiler');
+const enifed = require('./transforms/transform-define');
+const stripClassCallCheck = require('./transforms/strip-class-call-check');
+c... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/to-es5.js | @@ -0,0 +1,51 @@
+'use strict';
+/* eslint-env node */
+
+const Babel = require('broccoli-babel-transpiler');
+const injectBabelHelpers = require('./transforms/inject-babel-helpers');
+const { RELEASE, DEBUG } = require('./features');
+
+module.exports = function toES5(tree, _options) {
+ let options = Object.assign({... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/transforms/inject-babel-helpers.js | @@ -0,0 +1,19 @@
+'use strict';
+/* eslint-env node */
+
+function injectBabelHelpers(babel) {
+ let { types: t } = babel;
+ return {
+ pre(file) {
+ file.set('helperGenerator', function (name) {
+ return file.addImport('ember-babel', name, name);
+ });
+ }
+ };
+}
+
+injectBabelHelpers.baseDi... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/transforms/inject-node-globals.js | @@ -0,0 +1,52 @@
+function injectNodeGlobals({ types: t }) {
+ let requireId;
+ let importDecl;
+ let moduleId;
+ return {
+ name: 'inject require',
+ visitor: {
+ Program: {
+ enter(path, state) {
+ requireId = path.scope.globals.require;
+ moduleId = path.scope.globals.module;
... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/transforms/strip-class-call-check.js | @@ -0,0 +1,66 @@
+// TODO there are like 3 things that do this
+
+function stripClassCallCheck() {
+ let _specifier;
+ let decl;
+ return {
+ name: 'remove classCallCheck',
+ visitor: {
+ Program: {
+ enter(path, state) {
+ let { source } = state.opts;
+ let body = path.get('body'... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/transforms/transform-define.js | @@ -0,0 +1,30 @@
+'use strict';
+/* eslint-env node */
+
+function transformDefine(babel) {
+ let { types: t } = babel;
+ return {
+ name: 'transform define',
+ visitor: {
+ Program: {
+ exit(path) {
+ let [expressionStatement] = path.node.body;
+
+ if (
+ t.isExpression... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | broccoli/version.js | @@ -0,0 +1,19 @@
+'use strict';
+/* eslint-env node */
+
+const getGitInfo = require('git-repo-info');
+const path = require('path');
+
+module.exports.VERSION = (() => {
+ let info = getGitInfo(path.resolve(__dirname, '..'));
+ if (info.tag) {
+ console.log('herr');
+ return info.tag.replace(/^v/, '');
+ }
+
... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | ember-cli-build.js | @@ -6,428 +6,399 @@
//
// DISABLE_ES3=true DISABLE_JSCS=true DISABLE_JSHINT=true DISABLE_MIN=true DISABLE_DEREQUIRE=true ember serve --environment=production
-var fs = require('fs');
-var path = require('path');
-
-var EmberBuild = require('emberjs-build');
-var getPackages = require('./lib/packages');
-var getG... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | lib/packages.js | @@ -7,7 +7,7 @@ module.exports = function(features) {
'ember-metal': { trees: null, requirements: ['ember-environment', 'ember-utils'], vendorRequirements: ['backburner'] },
'ember-debug': { trees: null, requirements: [] },
'ember-runtime': { trees: null, ven... | true |
Other | emberjs | ember.js | c845e809f64a719175546afe50118496f93237af.json | Remove emberjs-build and intrododuce babel 6
This also rolls up ember-metal | package.json | @@ -55,17 +55,36 @@
"resolve": "^1.1.7",
"rsvp": "^3.4.0",
"simple-dom": "^0.3.0",
- "simple-html-tokenizer": "^0.3.0"
+ "simple-html-tokenizer": "^0.4.0"
},
"devDependencies": {
"aws-sdk": "~2.2.43",
- "babel-plugin-feature-flags": "^0.2.3",
- "babel-plugin-filter-imports": "~0.2.... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.