Skip to content

Commit 4602942

Browse files
committed
remove pre-octane blueprints and fixtures
typo
1 parent b0c3e10 commit 4602942

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+106
-243
lines changed

blueprints/component-addon/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ const path = require('path');
44
const stringUtil = require('ember-cli-string-utils');
55
const getPathOption = require('ember-cli-get-component-path-option');
66
const normalizeEntityName = require('ember-cli-normalize-entity-name');
7-
const useEditionDetector = require('../edition-detector');
87

9-
module.exports = useEditionDetector({
8+
module.exports = {
109
description: 'Generates a component.',
1110

1211
fileMapTokens: function () {
@@ -73,4 +72,4 @@ module.exports = useEditionDetector({
7372
path: getPathOption(options),
7473
};
7574
},
76-
});
75+
};

blueprints/component-addon/native-files/__root__/__path__/__name__.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

blueprints/component-class-addon/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ const path = require('path');
44
const stringUtil = require('ember-cli-string-utils');
55
const getPathOption = require('ember-cli-get-component-path-option');
66
const normalizeEntityName = require('ember-cli-normalize-entity-name');
7-
const useEditionDetector = require('../edition-detector');
87

9-
module.exports = useEditionDetector({
8+
module.exports = {
109
description: 'Generates a component class.',
1110

1211
fileMapTokens: function () {
@@ -51,4 +50,4 @@ module.exports = useEditionDetector({
5150
path: getPathOption(options),
5251
};
5352
},
54-
});
53+
};

blueprints/component-class-addon/native-files/__root__/__path__/__name__.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Controller from '@ember/controller';
22

3-
export default Controller.extend({
4-
});
3+
export default class <%= classifiedModuleName %>Controller extends Controller {
4+
}

blueprints/controller/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use strict';
22

3-
const useEditionDetector = require('../edition-detector');
4-
5-
module.exports = useEditionDetector({
3+
module.exports = {
64
description: 'Generates a controller.',
75
normalizeEntityName: function (entityName) {
86
return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files
97
},
10-
});
8+
};

blueprints/controller/native-files/__root__/__path__/__name__.js

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Route from '@ember/routing/route';
22

3-
export default Route.extend({<% if (hasDynamicSegment) {%>
3+
export default class <%= classifiedModuleName %>Route extends Route {<% if (hasDynamicSegment) {%>
44
model(params) {
55
/**
66
* This route was generated with a dynamic segment. Implement data loading
77
* based on that dynamic segment here in the model hook.
88
*/
99
return params;
10-
},<%}%>
11-
});
10+
}<%}%>
11+
}

blueprints/route/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ const path = require('path');
55
const chalk = require('chalk');
66
const stringUtil = require('ember-cli-string-utils');
77
const EmberRouterGenerator = require('ember-router-generator');
8-
const useEditionDetector = require('../edition-detector');
98

10-
module.exports = useEditionDetector({
9+
module.exports = {
1110
description: 'Generates a route and a template, and registers the route with the router.',
1211

1312
availableOptions: [
@@ -122,7 +121,7 @@ module.exports = useEditionDetector({
122121
normalizeEntityName: function (entityName) {
123122
return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files
124123
},
125-
});
124+
};
126125

127126
function updateRouter(action, options) {
128127
let entity = options.entity;

blueprints/route/native-files/__root__/__path__/__name__.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)