forked from ng-dnd/ng-dnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projections.json
91 lines (91 loc) · 2.64 KB
/
.projections.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"packages/*/package.json": {
"type": "pkg"
},
"packages/core/src/*.ts": {
"type": "core"
},
"packages/multi-backend/src/*.ts": {
"type": "multi"
},
"packages/sortable/src/*.ts": {
"type": "sortable"
},
"packages/examples/*": {
"type": "ex"
},
"packages/examples/src/app/*.ts": {
"type": "app"
},
"docs/*": {
"type": "docs"
},
"packages/*/README.md": {
"type": "docs",
"dispatch": "cd {file|dirname} && yarn docs"
},
"packages/examples/src/app/*.component.html": {
"type": "html",
"alternate": "packages/examples/src/app/{}.component.ts"
},
"packages/examples/src/app/*.component.ts": {
"type": "comp",
"alternate": "packages/examples/src/app/{}.component.html",
"template": [
"import {open} Component {close} from '@angular/core';",
"",
"@Component({",
" selector: 'app-{basename|snakecase|hyphenate}',",
" templateUrl: './{basename}.component.html',",
" styleUrls: ['./{basename}.component.scss'],",
"})",
"export class {basename|camelcase|capitalize}Component {",
"}"
]
},
"packages/examples/src/app/*/container.component.ts": {
"type": "container",
"template": [
"import {open} Component {close} from '@angular/core';",
"",
"@Component({",
" selector: '{basename}-container',",
" template: `",
" <app-example-link path=\"{}\"></app-example-link>",
" `,",
" styles: [`",
" `],",
"})",
"export class ContainerComponent {",
"}"
]
},
"packages/examples/src/app/*/module.ts": {
"type": "mod",
"template": [
"import {open} NgModule {close} from '@angular/core';",
"import {open} CommonModule {close} from \"@angular/common\";",
"import {open} UtilityModule {close} from \"@app/utility.module\";",
"import {open} SkyhookDndModule {close} from \"@ng-dnd/core\";",
"import {open} RouterModule {close} from \"@angular/router\";",
"import {open} SkyhookMultiBackendModule {close} from \"@ng-dnd/multi-backend\";",
"",
"import {open} ContainerComponent {close} from \"./container.component\";",
"",
"@NgModule({",
" declarations: [",
" ContainerComponent,",
" ],",
" imports: [",
" CommonModule,",
" UtilityModule,",
" SkyhookDndModule,",
" SkyhookMultiBackendModule,",
" RouterModule.forChild([{open} path: \"\", component: ContainerComponent {close}]),",
" ],",
"})",
"export class {basename|camelcase|capitalize}Module {",
"}"
]
}
}