|
| 1 | +{ |
| 2 | + "$schema": "http://json.schemastore.org/template", |
| 3 | + "author": "Orchard Core Community and Contributors", |
| 4 | + "classifications": [ |
| 5 | + "Web", |
| 6 | + "Orchard Core", |
| 7 | + "CMS" |
| 8 | + ], |
| 9 | + "name": "Orchard Core Cms Module", |
| 10 | + "identity": "OrchardCore.Templates.Cms.Module", |
| 11 | + "shortName": "ocmodulecms", |
| 12 | + "sourceName": "OrchardCore.Templates.Cms.Module", |
| 13 | + "defaultName": "OrchardCore.Cms.Module", |
| 14 | + "preferNameDirectory": true, |
| 15 | + "symbols": { |
| 16 | + "Framework": { |
| 17 | + "type": "parameter", |
| 18 | + "description": "The target framework for the project.", |
| 19 | + "datatype": "choice", |
| 20 | + "choices": [ |
| 21 | + { |
| 22 | + "choice": "net8.0", |
| 23 | + "description": "Target net8.0" |
| 24 | + } |
| 25 | + ], |
| 26 | + "replaces": "$(TemplateTargetPackageFramework)", |
| 27 | + "defaultValue": "net8.0" |
| 28 | + }, |
| 29 | + "AddPart": { |
| 30 | + "type": "parameter", |
| 31 | + "dataType": "bool", |
| 32 | + "description": "Add dependency injection for part in Startup.cs. If PartName is not provided, default name will be used", |
| 33 | + "defaultValue": "false" |
| 34 | + }, |
| 35 | + "PartName": { |
| 36 | + "type": "parameter", |
| 37 | + "datatype": "string", |
| 38 | + "description": "Add all files required for a part", |
| 39 | + "replaces": "MyTest", |
| 40 | + "fileRename": "MyTest", |
| 41 | + "defaultValue": "MyTest" |
| 42 | + }, |
| 43 | + "OrchardVersion": { |
| 44 | + "type": "parameter", |
| 45 | + "datatype": "string", |
| 46 | + "description": "Specifies which version of Orchard Core packages to use.", |
| 47 | + "replaces": "$(TemplateOrchardPackageVersion)", |
| 48 | + "defaultValue": "1.8.4" |
| 49 | + } |
| 50 | + }, |
| 51 | + "sources": [ |
| 52 | + { |
| 53 | + "modifiers": [ |
| 54 | + { |
| 55 | + "condition": "(PartName=='' || AddPart == false)", |
| 56 | + "exclude": [ |
| 57 | + "Migrations.cs", |
| 58 | + "Drivers/MyTestPartDisplayDriver.cs", |
| 59 | + "Handlers/MyTestPartHandler.cs", |
| 60 | + "Models/MyTestPart.cs", |
| 61 | + "Settings/MyTestPartSettings.cs", |
| 62 | + "Settings/MyTestPartSettingsDisplayDriver.cs", |
| 63 | + "Settings/MyTestPartSettingsViewModel.cs", |
| 64 | + "ViewModels/MyTestPartViewModel.cs", |
| 65 | + "Views/_ViewImports.cshtml", |
| 66 | + "Views/MyTestPart.Edit.cshtml", |
| 67 | + "Views/MyTestPart.liquid", |
| 68 | + "Views/MyTestPart_Summary.liquid", |
| 69 | + "Views/MyTestPartSettings.Edit.cshtml" |
| 70 | + ] |
| 71 | + } |
| 72 | + ] |
| 73 | + } |
| 74 | + ], |
| 75 | + "tags": { |
| 76 | + "language": "C#", |
| 77 | + "type": "project" |
| 78 | + } |
| 79 | +} |
0 commit comments