1+ module . exports = {
2+ app : {
3+ 'app.js' : '// app' ,
4+
5+ components : {
6+ // A standalone component
7+ 'top-level-component' : {
8+ 'index.hbs' : '{{!-- top-level-component.hbs --}}' ,
9+ 'index.js' : '// top-level-component.js' ,
10+ } ,
11+
12+ // A template-only component
13+ 'template-only-component' : {
14+ 'index.hbs' : '{{!-- template-only-component.hbs --}}'
15+ } ,
16+
17+ // A nested component
18+ 'parent-component' : {
19+ 'index.hbs' : '{{!-- parent-component.hbs --}}' ,
20+ 'index.js' : '// parent-component.js' ,
21+ 'child-component' : {
22+ 'index.hbs' : '{{!-- parent-component/child-component.hbs --}}' ,
23+ 'index.js' : '// parent-component/child-component.js' ,
24+ 'grandchild-component' : {
25+ 'index.hbs' : '{{!-- parent-component/child-component/grandchild-component.hbs --}}' ,
26+ 'index.js' : '// parent-component/child-component/grandchild-component.js'
27+ }
28+ }
29+ } ,
30+
31+ // Another nested component
32+ nested1 : {
33+ 'nested-component' : {
34+ 'index.hbs' : '{{!-- nested1/nested-component.hbs --}}' ,
35+ 'index.js' : '// nested1/nested-component.js' ,
36+ } ,
37+ nested2 : {
38+ 'super-nested-component' : {
39+ 'index.hbs' : '{{!-- nested1/nested2/super-nested-component.hbs --}}' ,
40+ 'index.js' : '// nested1/nested2/super-nested-component.js'
41+ }
42+ }
43+ } ,
44+
45+ // A component with layoutName
46+ 'layout-name' : {
47+ 'has-layout-name.js' : [
48+ '// top-level-component.js' ,
49+ 'Component.extend({ layoutName: "components/layout-name/layout-name-template" });'
50+ ] . join ( '\n' )
51+ } ,
52+
53+ // A component with partial
54+ 'partials' : {
55+ 'with-partial' : {
56+ 'index.hbs' : [
57+ '{{!-- with-partial.hbs --}}' ,
58+ '{{partial "components/partials/partials-template"}}'
59+ ] . join ( '\n' )
60+ }
61+ }
62+ } ,
63+
64+ templates : {
65+ 'application.hbs' : '{{outlet}}' ,
66+
67+ components : {
68+ // A component with layoutName
69+ 'layout-name' : {
70+ 'layout-name-template.hbs' : '{{!-- layout-name-template.hbs --}}'
71+ } ,
72+
73+ // A partial template
74+ 'partials' : {
75+ 'partials-template.hbs' : '{{!-- partials-template.hbs --}}' ,
76+ }
77+ }
78+ }
79+ } ,
80+ } ;
0 commit comments