Skip to content

Commit

Permalink
format ts,js,json,md
Browse files Browse the repository at this point in the history
  • Loading branch information
hufeng committed Oct 30, 2022
1 parent efe81b4 commit 10326dc
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Add files here to ignore them from prettier formatting

/dist
dist
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"trailingComma": "none",
"semi": false,
"printWidth": 80
}
}
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [

"nrwl.angular-console",
"esbenp.prettier-vscode"
]
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode"]
}
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: home

title: Dubbo-js
title: Dubbo-js
titleTemplate: blazing Fast Node RPC framework

hero:
Expand All @@ -16,5 +16,4 @@ hero:
- theme: alt
text: View on Github
link: https://github.com/apache/dubbo-js

---
36 changes: 9 additions & 27 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*"
],
"production": [
"!{projectRoot}/**/*.test.ts"
]
"default": ["{projectRoot}/**/*"],
"production": ["!{projectRoot}/**/*.test.ts"]
},
"tasksRunnerOptions": {
"default": {
Expand All @@ -36,35 +32,21 @@
},
"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": [
"default",
"{workspaceRoot}/tsconfig.json",
"{projectRoot}/tsconfig.json"
],
"dependsOn": [
"^ts-check"
]
"dependsOn": ["^ts-check"]
}
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand All @@ -28,4 +28,4 @@
"husky": "^6.0.0"
},
"license": "Apache-2.0"
}
}
2 changes: 1 addition & 1 deletion packages/dubbo-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"dubbo-client"
],
"license": "Apache-2.0"
}
}
9 changes: 1 addition & 8 deletions packages/dubbo-client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/dubbo-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
],
"dependencies": {},
"license": "Apache-2.0"
}
}
9 changes: 1 addition & 8 deletions packages/dubbo-common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/dubbo-serialization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"dubbo-serialization"
],
"license": "Apache-2.0"
}
}
9 changes: 1 addition & 8 deletions packages/dubbo-serialization/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/dubbo-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"nodejs"
],
"license": "Apache-2.0"
}
}
9 changes: 1 addition & 8 deletions packages/dubbo-server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}

0 comments on commit 10326dc

Please sign in to comment.