├── .gitignore └── tasks.json /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | -------------------------------------------------------------------------------- /tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": [ 3 | { // Create package without namespace 4 | "label": "SFDX package: Create Package w/o namespace", 5 | "type": "shell", 6 | "command": "sfdx", 7 | "args": [ 8 | "force:package:create", 9 | "--name", 10 | "${input:packageName}", 11 | "--description", 12 | "${input:packageDescription}", 13 | "--packagetype", 14 | "${input:packageType}", 15 | "--nonamespace", 16 | "--path", 17 | "${input:path}" 18 | ], 19 | "group": "build", 20 | "problemMatcher" : [], 21 | "presentation": { 22 | "echo": true, 23 | "reveal": "always", 24 | "focus": false, 25 | "panel": "shared", 26 | "showReuseMessage": true, 27 | "clear": false 28 | } 29 | }, 30 | { // Create package with namespace 31 | "label": "SFDX package: Create Package with namespace", 32 | "type": "shell", 33 | "command": "sfdx", 34 | "args": [ 35 | "force:package:create", 36 | "--name", 37 | "${input:packageName}", 38 | "--description", 39 | "${input:packageDescription}", 40 | "--packagetype", 41 | "${input:packageType}", 42 | "--path", 43 | "${input:path}" 44 | ], 45 | "group": "build", 46 | "problemMatcher" : [], 47 | "presentation": { 48 | "echo": true, 49 | "reveal": "always", 50 | "focus": false, 51 | "panel": "shared", 52 | "showReuseMessage": true, 53 | "clear": false 54 | } 55 | }, 56 | { // Create Package version 57 | "label": "SFDX Package: Create Package version", 58 | "type": "shell", 59 | "command": "sfdx", 60 | "args": [ 61 | "force:package:version:create", 62 | "--package", 63 | "${input:packageId}", 64 | "--wait", 65 | "20", 66 | "--installationkeybypass", 67 | "--codecoverage" 68 | ], 69 | "group": "build", 70 | "problemMatcher" : [], 71 | "presentation": { 72 | "echo": true, 73 | "reveal": "always", 74 | "focus": false, 75 | "panel": "shared", 76 | "showReuseMessage": true, 77 | "clear": false 78 | } 79 | }, 80 | { // Release package version via Id 81 | "label": "SFDX Package: Release Package version", 82 | "type": "shell", 83 | "command": "sfdx", 84 | "args": [ 85 | "force:package:version:promote", 86 | "--package", 87 | "${input:packageVersionId}" 88 | ], 89 | "group": "build", 90 | "problemMatcher" : [], 91 | "presentation": { 92 | "echo": true, 93 | "reveal": "always", 94 | "focus": true, 95 | "panel": "shared", 96 | "showReuseMessage": true, 97 | "clear": false 98 | } 99 | }, 100 | { // Delete package version 101 | "label": "SFDX Package: Delete Package Version", 102 | "type": "shell", 103 | "command": "sfdx", 104 | "args": [ 105 | "force:package:version:delete", 106 | "--package", 107 | "${input:packageId}" 108 | ], 109 | "group": "build", 110 | "problemMatcher" : [], 111 | "presentation": { 112 | "echo": true, 113 | "reveal": "always", 114 | "focus": true, 115 | "panel": "shared", 116 | "showReuseMessage": true, 117 | "clear": false 118 | } 119 | }, 120 | { // Delete package 121 | "label": "SFDX Package: Delete Package", 122 | "type": "shell", 123 | "command": "sfdx", 124 | "args": [ 125 | "force:package:delete", 126 | "--package", 127 | "${input:packageId}" 128 | ], 129 | "group": "build", 130 | "problemMatcher" : [], 131 | "presentation": { 132 | "echo": true, 133 | "reveal": "always", 134 | "focus": true, 135 | "panel": "shared", 136 | "showReuseMessage": true, 137 | "clear": false 138 | } 139 | }, 140 | { // List all packages 141 | "label": "SFDX Package: Get all packages", 142 | "type": "shell", 143 | "command": "sfdx", 144 | "args": [ 145 | "force:package:list" 146 | ], 147 | "group": "build", 148 | "problemMatcher" : [], 149 | "presentation": { 150 | "echo": true, 151 | "reveal": "always", 152 | "focus": true, 153 | "panel": "shared", 154 | "showReuseMessage": true, 155 | "clear": false 156 | } 157 | }, 158 | { // List all package versions 159 | "label": "SFDX Package: Get All Package Versions", 160 | "type": "shell", 161 | "command": "sfdx", 162 | "args": [ 163 | "force:package:version:list", 164 | "--packages", 165 | "${input:packageId}" 166 | ], 167 | "group": "build", 168 | "problemMatcher" : [], 169 | "presentation": { 170 | "echo": true, 171 | "reveal": "always", 172 | "focus": true, 173 | "panel": "shared", 174 | "showReuseMessage": true, 175 | "clear": false 176 | } 177 | } 178 | ], 179 | "inputs": [ 180 | { 181 | "id" : "packageName", 182 | "description": "Enter package name(MUST be enclosed in DOUBLE QUOTES)", 183 | "type": "promptString", 184 | }, 185 | { 186 | "id" : "path", 187 | "description": "Enter folder path", 188 | "type": "promptString", 189 | "default": "force-app" 190 | }, 191 | { 192 | "id": "packageDescription", 193 | "description": "Enter description(MUST be enclosed in DOUBLE QUOTES)", 194 | "type": "promptString" 195 | }, 196 | { 197 | "id": "packageNameSpace", 198 | "description": "Package Namespace", 199 | "type": "promptString" 200 | }, 201 | { 202 | "id" : "packageId", 203 | "description": "Enter Package Id", 204 | "type": "promptString", 205 | //"default": "${selectedText}" 206 | }, 207 | { 208 | "id": "packageType", 209 | "description": "Select Package Type", 210 | "type" :"pickString", 211 | "options": [ 212 | "Managed","Unlocked" 213 | ], 214 | "default": "Unlocked" 215 | }, 216 | { 217 | "id": "packageVersionId", 218 | "description": "Enter package version ID", 219 | "type": "promptString" 220 | } 221 | ] 222 | } --------------------------------------------------------------------------------