Skip to content

Commit 025faf8

Browse files
chore: clean up (#630)
1 parent 5d2ab43 commit 025faf8

20 files changed

+2731
-593
lines changed

bin/nwbuild.cjs

Lines changed: 0 additions & 146 deletions
This file was deleted.

bin/nwbuild.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env node
2+
3+
import yargs from "yargs/yargs";
4+
import { hideBin } from "yargs/helpers";
5+
6+
import nwbuild from "../index.js";
7+
8+
const cli = yargs(hideBin(process.argv))
9+
.version(false)
10+
.command("[file(glob)] [options]")
11+
.option("mode", {
12+
type: "string",
13+
description: "Choose between run and build mode",
14+
demandOption: true,
15+
})
16+
.option("version", {
17+
type: "string",
18+
description: "Version of NW.js you want to use.",
19+
group: "Run API",
20+
demandOption: true,
21+
})
22+
.option("flavour", {
23+
type: "string",
24+
description:
25+
"sdk is recommended for development and normal is recommended for production.",
26+
group: "Run API",
27+
demandOption: true,
28+
})
29+
.option("outDir", {
30+
type: "string",
31+
description: "Path to NW.js cache",
32+
group: "Run API",
33+
})
34+
.parse();
35+
36+
nwbuild({
37+
...cli,
38+
files: cli._,
39+
});

dist/index.cjs

Lines changed: 2573 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)