fix: update usage instructions to include bunx and modify dependency installation command
This commit is contained in:
@@ -8,18 +8,26 @@ It generates a ready-to-use theme project with assets, build pipeline, and launc
|
|||||||
|
|
||||||
## 🚀 Usage
|
## 🚀 Usage
|
||||||
|
|
||||||
Run directly via Git using `npx`:
|
Run directly via Git using `npx` or `bunx`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git <theme-name>
|
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git <theme-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bunx --package=https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme/archive/master.tar.gz create-ezpplauncher-theme <theme-name>
|
||||||
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git my-theme
|
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git my-theme
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bunx --package=https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme/archive/master.tar.gz create-ezpplauncher-theme my-theme
|
||||||
|
```
|
||||||
|
|
||||||
This creates a new theme in:
|
This creates a new theme in:
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -154,5 +162,9 @@ Just extract the generated .ezpplauncher-theme file using any unzip tool and pla
|
|||||||
```bash
|
```bash
|
||||||
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git <theme-name>
|
npx git+https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme.git <theme-name>
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
bunx --package=https://git.ez-pp.farm/EZPPFarm/create-ezpplauncher-theme/archive/master.tar.gz create-ezpplauncher-theme <theme-name>
|
||||||
|
```
|
||||||
* Requires Node.js
|
* Requires Node.js
|
||||||
* Designed specifically for EZPPLauncher themes
|
* Designed specifically for EZPPLauncher themes
|
||||||
|
|||||||
+3
-1
@@ -5,6 +5,8 @@ import { execSync } from "child_process";
|
|||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { input, select } from "@inquirer/prompts";
|
import { input, select } from "@inquirer/prompts";
|
||||||
|
|
||||||
|
const runnerPath = process.argv[0];
|
||||||
|
|
||||||
const projectTypes = [
|
const projectTypes = [
|
||||||
{
|
{
|
||||||
name: "blank",
|
name: "blank",
|
||||||
@@ -78,7 +80,7 @@ async function main() {
|
|||||||
fs.writeFileSync(themePath, JSON.stringify(theme, null, 2));
|
fs.writeFileSync(themePath, JSON.stringify(theme, null, 2));
|
||||||
|
|
||||||
console.log("📦 Installing dependencies...");
|
console.log("📦 Installing dependencies...");
|
||||||
execSync("npm install", { cwd: targetDir, stdio: "inherit" });
|
execSync(`${runnerPath} install`, { cwd: targetDir, stdio: "inherit" });
|
||||||
|
|
||||||
console.log(`\n✅ Theme created!\n`);
|
console.log(`\n✅ Theme created!\n`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user