Skip to content

Commit

Permalink
chore: clean up (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra authored Aug 25, 2022
1 parent 5d2ab43 commit 025faf8
Show file tree
Hide file tree
Showing 20 changed files with 2,731 additions and 593 deletions.
146 changes: 0 additions & 146 deletions bin/nwbuild.cjs

This file was deleted.

39 changes: 39 additions & 0 deletions bin/nwbuild.js
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._,
});
2,586 changes: 2,573 additions & 13 deletions dist/index.cjs

Large diffs are not rendered by default.

Loading

0 comments on commit 025faf8

Please sign in to comment.