UNPKG

2.58 kBJSONView Raw
1// By default, collection.json is a Loose-format JSON5 format, which means it's loaded using a
2// special loader and you can use comments, as well as single quotes or no-quotes for standard
3// JavaScript identifiers.
4// Note that this is only true for collection.json and it depends on the tooling itself.
5// We read package.json using a require() call, which is standard JSON.
6{
7 // This is just to indicate to your IDE that there is a schema for collection.json.
8 "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
9
10 // Schematics are listed as a map of schematicName => schematicDescription.
11 // Each description contains a description field which is required, a factory reference,
12 // an extends field and a schema reference.
13 // The extends field points to another schematic (either in the same collection or a
14 // separate collection using the format collectionName:schematicName).
15 // The factory is required, except when using the extends field. Then the factory can
16 // overwrite the extended schematic factory.
17 "schematics": {
18 "my-schematic": {
19 "description": "An example schematic",
20 "factory": "../dist/my-schematic/index#mySchematic"
21 },
22 "my-other-schematic": {
23 "description": "A schematic that uses another schematics.",
24 "factory": "../dist/my-other-schematic"
25 },
26 "my-full-schematic": {
27 "description": "A schematic using a source and a schema to validate options.",
28 "factory": "../dist/my-full-schematic",
29 "schema": "./my-full-schematic/schema.json"
30 },
31 "ng-add": {
32 "description": "Adds Bagubagu schematic without affecting any templates.",
33 "factory": "../dist/ng-add/index",
34 "schema": "./ng-add/schema.json"
35 },
36 "table": {
37 "description": "Create a component that diplays data from appsync with data-table",
38 "factory": "../dist/table/index",
39 "schema": "./table/schema.json",
40 "aliases": ["bagubagu-table"]
41 },
42 "form": {
43 "description": "Create a form component",
44 "factory": "../dist/form/index",
45 "schema": "./form/schema.json",
46 "aliases": ["bagubagu-form"]
47 },
48 "service": {
49 "description": "Create a service that handles data from appsync",
50 "factory": "../dist/service/index",
51 "schema": "./service/schema.json",
52 "aliases": ["bagubagu-service"]
53 },
54 "pipe": {
55 "description": "Create a pipe that handles data input",
56 "factory": "../dist/pipe/index",
57 "schema": "./pipe/schema.json",
58 "aliases": ["bagubagu-pipe"]
59 }
60 }
61}