mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(plugin-cli): add cli af (#3465)
This commit is contained in:
@@ -13,11 +13,18 @@
|
||||
"com.blocksuite.bookmark-block.get-bookmark-data-by-link"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "af dev",
|
||||
"build": "af build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/component": "workspace:*",
|
||||
"@blocksuite/icons": "^2.1.27",
|
||||
"@toeverything/plugin-infra": "workspace:*",
|
||||
"foxact": "^0.2.17",
|
||||
"link-preview-js": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/plugin-cli": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
5
plugins/bookmark/project.json
Normal file
5
plugins/bookmark/project.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "@affine/bookmark-plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"tags": ["plugin"]
|
||||
}
|
||||
@@ -9,6 +9,10 @@
|
||||
"core": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "af dev",
|
||||
"build": "af build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/component": "workspace:*",
|
||||
"@toeverything/plugin-infra": "workspace:*",
|
||||
@@ -20,6 +24,7 @@
|
||||
"zod": "^3.21.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/plugin-cli": "workspace:*",
|
||||
"@types/marked": "^5.0.1",
|
||||
"jotai": "^2.2.2",
|
||||
"react": "18.2.0",
|
||||
|
||||
5
plugins/copilot/project.json
Normal file
5
plugins/copilot/project.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "@affine/copilot-plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"tags": ["plugin"]
|
||||
}
|
||||
@@ -4,6 +4,10 @@
|
||||
"private": true,
|
||||
"description": "Hello world plugin",
|
||||
"version": "0.8.0-canary.3",
|
||||
"scripts": {
|
||||
"dev": "af dev",
|
||||
"build": "af build"
|
||||
},
|
||||
"affinePlugin": {
|
||||
"release": false,
|
||||
"entry": {
|
||||
@@ -14,5 +18,8 @@
|
||||
"@affine/component": "workspace:*",
|
||||
"@blocksuite/icons": "^2.1.27",
|
||||
"@toeverything/plugin-infra": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/plugin-cli": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
5
plugins/hello-world/project.json
Normal file
5
plugins/hello-world/project.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "@affine/hello-world-plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"tags": ["plugin"]
|
||||
}
|
||||
@@ -9,13 +9,21 @@
|
||||
"core": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "af dev",
|
||||
"build": "af build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/component": "workspace:*",
|
||||
"@blocksuite/icons": "^2.1.27",
|
||||
"@toeverything/plugin-infra": "workspace:*",
|
||||
"@toeverything/theme": "^0.7.9",
|
||||
"clsx": "^2.0.0",
|
||||
"foxact": "^0.2.17",
|
||||
"react-error-boundary": "^4.0.10",
|
||||
"swr": "2.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/plugin-cli": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
5
plugins/image-preview/project.json
Normal file
5
plugins/image-preview/project.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "@affine/image-preview-plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"tags": ["plugin"]
|
||||
}
|
||||
Reference in New Issue
Block a user