server-up-ndot 1.2.1 → 1.2.3

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/bin/cli.js CHANGED
@@ -2,10 +2,15 @@
2
2
 
3
3
  const create = require("../lib/create");
4
4
 
5
+ const dev = require("../lib/dev");
6
+
5
7
  const args = process.argv.slice(2);
6
8
 
7
9
  if (args[0] === "create") {
8
10
  create(args[1] || "server-app");
11
+ }
12
+ else if (args[0] === "dev") {
13
+ dev()
9
14
  } else {
10
15
  console.log("Usage:");
11
16
  console.log("server-up-ndot create <project-name>");
package/lib/dev.js ADDED
@@ -0,0 +1,8 @@
1
+ const { spawn } = require("child_process");
2
+
3
+ function dev() {
4
+ const child = spawn("node", ["app.js"], {
5
+ stdio: "inherit"
6
+ });
7
+ }
8
+ module.exports = dev;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "server-up-ndot",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "server toolkit",
5
5
  "main": "index.js",
6
6
  "bin": {
package/readme.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Simple server generator and auto library install for Node.js.
4
4
 
5
+ ## github
6
+ ### github:
7
+ `https://github.com/ppccpcpcpc-byte/server-up-ndot`
8
+
5
9
  ## Install
6
10
 
7
11
  server library install:
@@ -11,6 +15,12 @@ npm install server-up-ndot
11
15
 
12
16
  ## Usage
13
17
 
18
+ Running the server:
19
+ ```bash
20
+ npx server-up-ndot dev
21
+ ```
22
+ **NOTE: Make sure to run it only from where app.js is located.**
23
+
14
24
  Create a new server project:
15
25
 
16
26
  ```bash
@@ -25,6 +35,12 @@ npx server-up-ndot create myserver
25
35
 
26
36
  ## Patch Notes
27
37
 
38
+ ### 1.2.3
39
+ - open code whit github
40
+ - on this url->`https://github.com/ppccpcpcpc-byte/server-up-ndot`
41
+
42
+ ### 1.2.2
43
+ - new command `dev`
28
44
  ### 1.2.1
29
45
  - new folder "public"
30
46