Skip to content

Commit 39f53c9

Browse files
committed
Improve glimmer component skeleton
1 parent 6f203ff commit 39f53c9

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/javascript/ember/es6/skeletons.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
module.exports = {
2-
"Route": {
3-
"prefix": "route",
4-
"body": "import classic from 'ember-classic-decorator';\nimport Route from '@ember/routing/route';\n\n@classic\nclass ${1}Route extends Route {\n\t${2}\n}\n\nexport default ${1}Route;"
2+
Route: {
3+
prefix: "route",
4+
body: "import classic from 'ember-classic-decorator';\nimport Route from '@ember/routing/route';\n\n@classic\nclass ${1}Route extends Route {\n\t${2}\n}\n\nexport default ${1}Route;",
55
},
6-
"Controller": {
7-
"prefix": "controller",
8-
"body": "import classic from 'ember-classic-decorator';\nimport Controller from '@ember/controller';\n\n@classic\nclass ${1}Controller extends Controller {\n\t${2}\n}\n\nexport default ${1}Controller;"
6+
Controller: {
7+
prefix: "controller",
8+
body: "import classic from 'ember-classic-decorator';\nimport Controller from '@ember/controller';\n\n@classic\nclass ${1}Controller extends Controller {\n\t${2}\n}\n\nexport default ${1}Controller;",
99
},
10-
"Service": {
11-
"prefix": "service",
12-
"body": "import classic from 'ember-classic-decorator';\nimport Service from '@ember/service';\n\n@classic\nclass ${1}Service extends Service {\n\t${2}\n}\n\nexport default ${1}Service;"
10+
Service: {
11+
prefix: "service",
12+
body: "import classic from 'ember-classic-decorator';\nimport Service from '@ember/service';\n\n@classic\nclass ${1}Service extends Service {\n\t${2}\n}\n\nexport default ${1}Service;",
1313
},
1414
"Glimmer Component": {
15-
"prefix": "component",
16-
"body": "import Component from '@glimmer/component';\n\nclass ${1}Component extends Component {\n\t${2}\n}\n\nexport default ${1}Component;"
15+
prefix: "component",
16+
body: "import Component from '@glimmer/component';\n\nexport default class ${1}Component extends Component {\n\t${2}\n}",
1717
},
1818
"Classic Component": {
19-
"prefix": "component",
20-
"body": "import classic from 'ember-classic-decorator';\nimport Component from '@ember/component';\n\n@classic\nclass ${1}Component extends Component {\n\ttagName = '';\n}\n\nexport default ${1}Component;"
19+
prefix: "component",
20+
body: "import classic from 'ember-classic-decorator';\nimport Component from '@ember/component';\n\n@classic\nclass ${1}Component extends Component {\n\ttagName = '';\n}\n\nexport default ${1}Component;",
2121
},
22-
"Mixin": {
23-
"prefix": "mixin",
24-
"body": "import classic from 'ember-classic-decorator';\nimport Mixin from '@ember/object/mixin';\n\n@classic\nclass ${1}Mixin extends Mixin {\n\t${2}\n}\n\nexport default ${1}Mixin;"
22+
Mixin: {
23+
prefix: "mixin",
24+
body: "import classic from 'ember-classic-decorator';\nimport Mixin from '@ember/object/mixin';\n\n@classic\nclass ${1}Mixin extends Mixin {\n\t${2}\n}\n\nexport default ${1}Mixin;",
2525
},
26-
"Object": {
27-
"prefix": "object",
28-
"body": "import classic from 'ember-classic-decorator';\nimport EmberObject from '@ember/object';\n\n@classic\nclass ${1} extends EmberObject {\n\t${2}\n}\n\nexport default ${1};"
26+
Object: {
27+
prefix: "object",
28+
body: "import classic from 'ember-classic-decorator';\nimport EmberObject from '@ember/object';\n\n@classic\nclass ${1} extends EmberObject {\n\t${2}\n}\n\nexport default ${1};",
29+
},
30+
Helper: {
31+
prefix: "helper",
32+
body: "import classic from 'ember-classic-decorator';\nimport Helper from '@ember/component/helper';\n\n@classic\nclass ${1}Helper extends Helper {\n\tcompute() {\n\t\t${2}\n\t}\n}\n\nexport default ${1}Helper;",
2933
},
30-
"Helper": {
31-
"prefix": "helper",
32-
"body": "import classic from 'ember-classic-decorator';\nimport Helper from '@ember/component/helper';\n\n@classic\nclass ${1}Helper extends Helper {\n\tcompute() {\n\t\t${2}\n\t}\n}\n\nexport default ${1}Helper;"
33-
}
3434
};

0 commit comments

Comments
 (0)