-
Notifications
You must be signed in to change notification settings - Fork 302
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
5d2ab43
commit 025faf8
Showing
20 changed files
with
2,731 additions
and
593 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
#!/usr/bin/env node | ||
|
||
import yargs from "yargs/yargs"; | ||
import { hideBin } from "yargs/helpers"; | ||
|
||
import nwbuild from "../index.js"; | ||
|
||
const cli = yargs(hideBin(process.argv)) | ||
.version(false) | ||
.command("[file(glob)] [options]") | ||
.option("mode", { | ||
type: "string", | ||
description: "Choose between run and build mode", | ||
demandOption: true, | ||
}) | ||
.option("version", { | ||
type: "string", | ||
description: "Version of NW.js you want to use.", | ||
group: "Run API", | ||
demandOption: true, | ||
}) | ||
.option("flavour", { | ||
type: "string", | ||
description: | ||
"sdk is recommended for development and normal is recommended for production.", | ||
group: "Run API", | ||
demandOption: true, | ||
}) | ||
.option("outDir", { | ||
type: "string", | ||
description: "Path to NW.js cache", | ||
group: "Run API", | ||
}) | ||
.parse(); | ||
|
||
nwbuild({ | ||
...cli, | ||
files: cli._, | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.