-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a58b429
commit 10c2019
Showing
14 changed files
with
18,986 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env node | ||
|
||
const { execSync } = require('child_process'); | ||
const path = require('path'); | ||
const glob = require('glob'); | ||
|
||
// Define the path to the plugins directory | ||
const pluginsPath = path.resolve(__dirname, '../plugins'); | ||
|
||
// Use glob to find all plugin directories | ||
const plugins = glob.sync(`${pluginsPath}/*`); | ||
|
||
// Function to build a plugin using wp-scripts | ||
const buildPlugin = (plugin) => { | ||
const pluginName = path.basename(plugin); | ||
console.log(pluginName); | ||
// console.log(`Building plugin: ${pluginName}`); | ||
// execSync('wp-scripts build', { | ||
// cwd: plugin, | ||
// stdio: 'inherit', | ||
// }); | ||
}; | ||
|
||
// Build each plugin | ||
plugins.forEach(buildPlugin); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
const { execSync } = require('child_process'); | ||
const path = require('path'); | ||
const glob = require('glob'); | ||
|
||
// Define the path to the plugins directory | ||
const pluginsPath = path.resolve(__dirname, '../plugins'); | ||
|
||
// Use glob to find all plugin directories | ||
const plugins = glob.sync(`${pluginsPath}/*`); | ||
|
||
// Function to start a plugin using wp-scripts | ||
const startPlugin = (plugin) => { | ||
const pluginName = path.basename(plugin); | ||
console.log(`Starting plugin: ${pluginName}`); | ||
execSync('wp-scripts start', { | ||
cwd: plugin, | ||
stdio: 'inherit', | ||
}); | ||
}; | ||
|
||
// Start each plugin | ||
plugins.forEach(startPlugin); |
0
bin/versionPlugin.js → bin/version-plugin.js
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env node | ||
|
||
const { execSync } = require('child_process'); | ||
const path = require('path'); | ||
|
||
// Define the path to the root build directory | ||
const buildPath = path.resolve(__dirname, '../build'); | ||
const zipPath = path.resolve(__dirname, '../wpgraphql-ide.zip'); | ||
|
||
// Function to zip a directory | ||
const zipDirectory = (source, out) => { | ||
const zipCommand = `zip -r ${out} ${source}`; | ||
execSync(zipCommand, { stdio: 'inherit' }); | ||
}; | ||
|
||
// Zip the root build directory | ||
zipDirectory(buildPath, zipPath); |
Oops, something went wrong.