makepack 1.7.11 → 1.7.13
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.
- package/README.md +122 -122
- package/package.json +62 -62
- package/src/actions/build/bundler.js +114 -114
- package/src/actions/build/index.js +74 -74
- package/src/actions/create/files/gitignore.js +9 -9
- package/src/actions/create/files/main.js +36 -36
- package/src/actions/create/files/package-json.js +49 -49
- package/src/actions/create/files/project-js.js +12 -12
- package/src/actions/create/files/project-jsx.js +50 -50
- package/src/actions/create/files/project-ts.js +10 -10
- package/src/actions/create/files/project-tsx.js +50 -50
- package/src/actions/create/files/readme.md.js +62 -62
- package/src/actions/create/files/tsconfig.js +33 -33
- package/src/actions/create/index.js +95 -95
- package/src/actions/create/makeFiles.js +65 -65
- package/src/actions/release/index.js +19 -19
- package/src/actions/start/index.js +215 -176
- package/src/actions/start/vite.js +68 -61
- package/src/helpers.js +52 -52
- package/src/index.js +39 -39
package/src/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { Command } from "commander";
|
|
4
|
-
import start from "./actions/start/index.js";
|
|
5
|
-
import build from "./actions/build/index.js";
|
|
6
|
-
import create from "./actions/create/index.js";
|
|
7
|
-
import release from "./actions/release/index.js";
|
|
8
|
-
|
|
9
|
-
const program = new Command();
|
|
10
|
-
|
|
11
|
-
program.name("Makepack").description("Usages");
|
|
12
|
-
|
|
13
|
-
program
|
|
14
|
-
.command("create")
|
|
15
|
-
.description("Create a new project")
|
|
16
|
-
.action(create);
|
|
17
|
-
|
|
18
|
-
program
|
|
19
|
-
.command("start")
|
|
20
|
-
.option("-p, --port <port>", "Port to run the server", 3000)
|
|
21
|
-
.description("Start the server")
|
|
22
|
-
.action(start);
|
|
23
|
-
|
|
24
|
-
program
|
|
25
|
-
.command("build")
|
|
26
|
-
.description("Build the project")
|
|
27
|
-
.option("-f, --format <format>", "Output format (cjs, esm, both)", "both")
|
|
28
|
-
.option("-b, --bundle <bundle>", "Bundle the project", false)
|
|
29
|
-
.option("-m, --minify <minify>", "Minify the output", false)
|
|
30
|
-
.option("-s, --sourcemap <sourcemap>", "Generate sourcemaps", true)
|
|
31
|
-
.option("-d, --declaration <declaration>", "Generate TypeScript declaration files", true)
|
|
32
|
-
.action(build);
|
|
33
|
-
|
|
34
|
-
program
|
|
35
|
-
.command("release")
|
|
36
|
-
.description("Release it to the npm repository")
|
|
37
|
-
.action(release);
|
|
38
|
-
|
|
39
|
-
program.parse();
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { Command } from "commander";
|
|
4
|
+
import start from "./actions/start/index.js";
|
|
5
|
+
import build from "./actions/build/index.js";
|
|
6
|
+
import create from "./actions/create/index.js";
|
|
7
|
+
import release from "./actions/release/index.js";
|
|
8
|
+
|
|
9
|
+
const program = new Command();
|
|
10
|
+
|
|
11
|
+
program.name("Makepack").description("Usages");
|
|
12
|
+
|
|
13
|
+
program
|
|
14
|
+
.command("create")
|
|
15
|
+
.description("Create a new project")
|
|
16
|
+
.action(create);
|
|
17
|
+
|
|
18
|
+
program
|
|
19
|
+
.command("start")
|
|
20
|
+
.option("-p, --port <port>", "Port to run the server", 3000)
|
|
21
|
+
.description("Start the server")
|
|
22
|
+
.action(start);
|
|
23
|
+
|
|
24
|
+
program
|
|
25
|
+
.command("build")
|
|
26
|
+
.description("Build the project")
|
|
27
|
+
.option("-f, --format <format>", "Output format (cjs, esm, both)", "both")
|
|
28
|
+
.option("-b, --bundle <bundle>", "Bundle the project", false)
|
|
29
|
+
.option("-m, --minify <minify>", "Minify the output", false)
|
|
30
|
+
.option("-s, --sourcemap <sourcemap>", "Generate sourcemaps", true)
|
|
31
|
+
.option("-d, --declaration <declaration>", "Generate TypeScript declaration files", true)
|
|
32
|
+
.action(build);
|
|
33
|
+
|
|
34
|
+
program
|
|
35
|
+
.command("release")
|
|
36
|
+
.description("Release it to the npm repository")
|
|
37
|
+
.action(release);
|
|
38
|
+
|
|
39
|
+
program.parse();
|