@caweb/cli 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,16 +58,7 @@ async function downloadSources(
58
58
  let pluginDir = path.resolve(workDirectoryPath, 'plugins');
59
59
  let themeDir = path.resolve(workDirectoryPath, 'themes');
60
60
 
61
- let sources = [
62
- {
63
- basename: 'Design System',
64
- url: 'https://github.com/CA-CODE-Works/design-system-wordpress.git',
65
- ref: 'main',
66
- path: path.join(pluginDir, 'design-system-wordpress'),
67
- clonePath: path.join(pluginDir, 'design-system-wordpress'),
68
- type: 'git'
69
- }
70
- ];
61
+ let sources = dowloadPlugins(pluginDir);
71
62
 
72
63
  // Add Divi Theme and plugin to sources.
73
64
  if( (undefined !== dev.config.ET_USERNAME &&
@@ -260,6 +251,26 @@ async function downloadZipSource( source, { onProgress, spinner, debug } ) {
260
251
  onProgress( 1 );
261
252
  }
262
253
 
254
+ function dowloadPlugins(pluginDir){
255
+ return [
256
+ {
257
+ basename: 'Design System',
258
+ url: 'https://github.com/CA-CODE-Works/design-system-wordpress.git',
259
+ ref: 'main',
260
+ path: path.join(pluginDir, 'design-system-wordpress'),
261
+ clonePath: path.join(pluginDir, 'design-system-wordpress'),
262
+ type: 'git'
263
+ },
264
+ {
265
+ basename: 'Query Monitor',
266
+ url: 'https://downloads.wordpress.org/plugin/query-monitor.3.15.0.zip',
267
+ path: path.join(pluginDir, 'query-monitor'),
268
+ type: 'zip',
269
+
270
+ }
271
+ ]
272
+ }
273
+
263
274
  module.exports = {
264
275
  downloadSources
265
276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "main": "lib/env.js",
6
6
  "files": [