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.ts' : '// top-level-component.ts' ,
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.ts' : '// parent-component.ts' ,
21+ 'child-component' : {
22+ 'index.hbs' : '{{!-- parent-component/child-component.hbs --}}' ,
23+ 'index.ts' : '// parent-component/child-component.ts' ,
24+ 'grandchild-component' : {
25+ 'index.hbs' : '{{!-- parent-component/child-component/grandchild-component.hbs --}}' ,
26+ 'index.ts' : '// parent-component/child-component/grandchild-component.ts'
27+ }
28+ }
29+ } ,
30+
31+ // Another nested component
32+ nested1 : {
33+ 'nested-component' : {
34+ 'index.hbs' : '{{!-- nested1/nested-component.hbs --}}' ,
35+ 'index.ts' : '// nested1/nested-component.ts' ,
36+ } ,
37+ nested2 : {
38+ 'super-nested-component' : {
39+ 'index.hbs' : '{{!-- nested1/nested2/super-nested-component.hbs --}}' ,
40+ 'index.ts' : '// nested1/nested2/super-nested-component.ts'
41+ }
42+ }
43+ } ,
44+
45+ // A component with layoutName
46+ 'layout-name' : {
47+ 'has-layout-name.ts' : [
48+ '// top-level-component.ts' ,
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/partial-one-template"}}' ,
59+ '{{partial "components/partials/partial-two-template"}}' ,
60+ '{{partial "components/partials/partial-three-template"}}'
61+ ] . join ( '\n' )
62+ }
63+ }
64+ } ,
65+
66+ templates : {
67+ 'application.hbs' : '{{outlet}}' ,
68+
69+ components : {
70+ // A component with layoutName
71+ 'layout-name' : {
72+ 'layout-name-template.hbs' : '{{!-- layout-name-template.hbs --}}'
73+ } ,
74+
75+ // A partial template
76+ 'partials' : {
77+ 'partial-one-template.hbs' : '{{!-- partial-one-template.hbs --}}' ,
78+ 'partial-two-template.hbs' : '{{!-- partial-two-template.hbs --}}' ,
79+ '-partial-three-template.hbs' : '{{!-- partial-three-template.hbs --}}'
80+ }
81+ }
82+ }
83+ } ,
84+ } ;
0 commit comments