This is an automated email from the ASF dual-hosted git repository.

hufeng pushed a commit to branch dubbo3
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git


The following commit(s) were added to refs/heads/dubbo3 by this push:
     new 10326dc  format ts,js,json,md
10326dc is described below

commit 10326dc43482b5095f755ba0dbbff186c5f53fd2
Author: hufeng <[email protected]>
AuthorDate: Sun Oct 30 17:37:18 2022 +0800

    format ts,js,json,md
---
 .prettierignore                           |  2 +-
 .prettierrc                               |  2 +-
 .vscode/extensions.json                   |  6 +-----
 docs/index.md                             |  3 +--
 nx.json                                   | 36 ++++++++-----------------------
 package.json                              |  4 ++--
 packages/dubbo-client/package.json        |  2 +-
 packages/dubbo-client/project.json        |  9 +-------
 packages/dubbo-common/package.json        |  2 +-
 packages/dubbo-common/project.json        |  9 +-------
 packages/dubbo-serialization/package.json |  2 +-
 packages/dubbo-serialization/project.json |  9 +-------
 packages/dubbo-server/package.json        |  2 +-
 packages/dubbo-server/project.json        |  9 +-------
 14 files changed, 23 insertions(+), 74 deletions(-)

diff --git a/.prettierignore b/.prettierignore
index 79728b7..791ead9 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,3 @@
 # Add files here to ignore them from prettier formatting
 
-/dist
+dist
diff --git a/.prettierrc b/.prettierrc
index c1392b5..889bc82 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,4 +4,4 @@
   "trailingComma": "none",
   "semi": false,
   "printWidth": 80
-}
+}
\ No newline at end of file
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 36949df..71f5e85 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,7 +1,3 @@
 {
-  "recommendations": [
-    
-    "nrwl.angular-console",
-    "esbenp.prettier-vscode"
-  ]
+  "recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
 }
diff --git a/docs/index.md b/docs/index.md
index bf11242..7982bbd 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,7 +1,7 @@
 ---
 layout: home
 
-title:  Dubbo-js
+title: Dubbo-js
 titleTemplate: blazing Fast Node RPC framework
 
 hero:
@@ -16,5 +16,4 @@ hero:
     - theme: alt
       text: View on Github
       link: https://github.com/apache/dubbo-js
-
 ---
diff --git a/nx.json b/nx.json
index cec5738..7878bf7 100644
--- a/nx.json
+++ b/nx.json
@@ -12,12 +12,8 @@
     }
   },
   "namedInputs": {
-    "default": [
-      "{projectRoot}/**/*"
-    ],
-    "production": [
-      "!{projectRoot}/**/*.test.ts"
-    ]
+    "default": ["{projectRoot}/**/*"],
+    "production": ["!{projectRoot}/**/*.test.ts"]
   },
   "tasksRunnerOptions": {
     "default": {
@@ -36,25 +32,13 @@
   },
   "targetDefaults": {
     "build": {
-      "inputs": [
-        "production"
-      ],
-      "dependsOn": [
-        "^build"
-      ],
-      "outputs": [
-        "{projectRoot}/lib"
-      ]
+      "inputs": ["production"],
+      "dependsOn": ["^build"],
+      "outputs": ["{projectRoot}/lib"]
     },
     "test": {
-      "inputs": [
-        "default",
-        "^production",
-        "{projectRoot}/vitest.config.ts"
-      ],
-      "dependsOn": [
-        "^build"
-      ]
+      "inputs": ["default", "^production", "{projectRoot}/vitest.config.ts"],
+      "dependsOn": ["^build"]
     },
     "ts-check": {
       "inputs": [
@@ -62,9 +46,7 @@
         "{workspaceRoot}/tsconfig.json",
         "{projectRoot}/tsconfig.json"
       ],
-      "dependsOn": [
-        "^ts-check"
-      ]
+      "dependsOn": ["^ts-check"]
     }
   }
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index e0d76ab..e609e59 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "test": "npx nx run-many --target=test",
     "test:watch": "npx nx run-many --target=test:watch",
     "ts-check": "npx nx run-many --target=ts-check",
-    "format": "npx nx run-many --target=format",
+    "format": "npx prettier --write \"**/*.{ts,js,json,md}\"",
     "prepare": "husky install"
   },
   "dependencies": {},
@@ -28,4 +28,4 @@
     "husky": "^6.0.0"
   },
   "license": "Apache-2.0"
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-client/package.json 
b/packages/dubbo-client/package.json
index 58743e9..4781a7d 100644
--- a/packages/dubbo-client/package.json
+++ b/packages/dubbo-client/package.json
@@ -10,4 +10,4 @@
     "dubbo-client"
   ],
   "license": "Apache-2.0"
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-client/project.json 
b/packages/dubbo-client/project.json
index e622b19..bea324c 100644
--- a/packages/dubbo-client/project.json
+++ b/packages/dubbo-client/project.json
@@ -31,13 +31,6 @@
         "command": "npx vitest",
         "cwd": "packages/dubbo-client"
       }
-    },
-    "format": {
-      "executor": "nx:run-commands",
-      "options": {
-        "command": "npx prettier --write \"**/*.{ts,tsx,md}\"",
-        "cwd": "packages/dubbo-client"
-      }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-common/package.json 
b/packages/dubbo-common/package.json
index dba6b16..5384b9f 100644
--- a/packages/dubbo-common/package.json
+++ b/packages/dubbo-common/package.json
@@ -11,4 +11,4 @@
   ],
   "dependencies": {},
   "license": "Apache-2.0"
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-common/project.json 
b/packages/dubbo-common/project.json
index 7484bee..94477c0 100644
--- a/packages/dubbo-common/project.json
+++ b/packages/dubbo-common/project.json
@@ -31,13 +31,6 @@
         "command": "npx vitest",
         "cwd": "packages/dubbo-common"
       }
-    },
-    "format": {
-      "executor": "nx:run-commands",
-      "options": {
-        "command": "npx prettier --write \"**/*.{ts,tsx,md}\"",
-        "cwd": "packages/dubbo-common"
-      }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-serialization/package.json 
b/packages/dubbo-serialization/package.json
index 4f15ac8..604a7fd 100644
--- a/packages/dubbo-serialization/package.json
+++ b/packages/dubbo-serialization/package.json
@@ -10,4 +10,4 @@
     "dubbo-serialization"
   ],
   "license": "Apache-2.0"
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-serialization/project.json 
b/packages/dubbo-serialization/project.json
index 7595396..d8d960a 100644
--- a/packages/dubbo-serialization/project.json
+++ b/packages/dubbo-serialization/project.json
@@ -31,13 +31,6 @@
         "command": "npx vitest",
         "cwd": "packages/dubbo-serialization"
       }
-    },
-    "format": {
-      "executor": "nx:run-commands",
-      "options": {
-        "command": "npx prettier --write \"**/*.{ts,tsx,md}\"",
-        "cwd": "packages/dubbo-serialization"
-      }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-server/package.json 
b/packages/dubbo-server/package.json
index 2a2e880..f469517 100644
--- a/packages/dubbo-server/package.json
+++ b/packages/dubbo-server/package.json
@@ -11,4 +11,4 @@
     "nodejs"
   ],
   "license": "Apache-2.0"
-}
\ No newline at end of file
+}
diff --git a/packages/dubbo-server/project.json 
b/packages/dubbo-server/project.json
index 9df740b..a051b1e 100644
--- a/packages/dubbo-server/project.json
+++ b/packages/dubbo-server/project.json
@@ -31,13 +31,6 @@
         "command": "npx vitest",
         "cwd": "packages/dubbo-server"
       }
-    },
-    "format": {
-      "executor": "nx:run-commands",
-      "options": {
-        "command": "npx prettier --write \"**/*.{ts,tsx,md}\"",
-        "cwd": "packages/dubbo-server"
-      }
     }
   }
-}
\ No newline at end of file
+}

Reply via email to