feat(plugin-cli): add cli af (#3465)

This commit is contained in:
Alex Yang
2023-07-30 11:10:45 -07:00
committed by GitHub
parent 568d5e4cdf
commit 18fcaff5ee
27 changed files with 469 additions and 59 deletions

View File

@@ -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:*"
}
}

View File

@@ -0,0 +1,5 @@
{
"name": "@affine/bookmark-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@@ -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",

View File

@@ -0,0 +1,5 @@
{
"name": "@affine/copilot-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@@ -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:*"
}
}

View File

@@ -0,0 +1,5 @@
{
"name": "@affine/hello-world-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@@ -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:*"
}
}

View File

@@ -0,0 +1,5 @@
{
"name": "@affine/image-preview-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}