evophp 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/commands/new.js +12 -12
  2. package/package.json +1 -1
package/commands/new.js CHANGED
@@ -129,25 +129,25 @@ async function setupPluginRepo(token, author, pluginName) {
129
129
  return entry;
130
130
  }
131
131
 
132
- async function setupTheme(token, author, pluginName) {
133
- await createGitHubRepo(token, "kinsokafor/EvoTheme", pluginName);
132
+ async function setupTheme(token, author, themeName) {
133
+ await createGitHubRepo(token, "kinsokafor/EvoTheme", themeName);
134
134
  await cloneRepo(
135
135
  author,
136
- pluginName,
137
- path.join("Public", "Themes", pluginName)
136
+ themeName,
137
+ path.join("Public", "Themes", themeName)
138
138
  );
139
139
 
140
- await editFile(`./Public/Themes/${pluginName}/Data/index.data.php`, {
141
- pluginName,
140
+ await editFile(`./Public/Themes/${themeName}/Data/index.data.php`, {
141
+ themeName,
142
142
  });
143
- await editFile(`./Public/Themes/${pluginName}/Data/login.data.php`, {
144
- pluginName,
143
+ await editFile(`./Public/Themes/${themeName}/Data/login.data.php`, {
144
+ themeName,
145
145
  });
146
- await editFile(`./Public/Themes/${pluginName}/Views/index.blade.php`, {
147
- pluginName,
146
+ await editFile(`./Public/Themes/${themeName}/Views/index.blade.php`, {
147
+ themeName,
148
148
  });
149
- await editFile(`./Public/Themes/${pluginName}/Views/login.blade.php`, {
150
- pluginName,
149
+ await editFile(`./Public/Themes/${themeName}/Views/login.blade.php`, {
150
+ themeName,
151
151
  });
152
152
  }
153
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evophp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Command-line installer for the Evolution PHP framework",
5
5
  "bin": {
6
6
  "evophp": "./bin/evophp.js"