create-blocklet 0.7.7 → 0.7.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -3,7 +3,6 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "eject": "vite eject",
7
6
  "lint": "eslint src api --ext .mjs,.js,.jsx,.ts,.tsx",
8
7
  "lint:fix": "npm run lint -- --fix",
9
8
  "start": "cross-env NODE_ENV=development nodemon api/dev.js -w api",
@@ -69,7 +68,7 @@
69
68
  "npm-run-all": "^4.1.5",
70
69
  "prettier": "^3.1.1",
71
70
  "vite": "^5.0.10",
72
- "vite-plugin-blocklet": "^0.7.7",
71
+ "vite-plugin-blocklet": "^0.7.9",
73
72
  "vite-plugin-svgr": "^4.2.0",
74
73
  "zx": "^7.2.3"
75
74
  }
@@ -3,7 +3,6 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "eject": "vite eject",
7
6
  "lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
8
7
  "lint:fix": "npm run lint -- --fix",
9
8
  "start": "cross-env NODE_ENV=development nodemon api/dev.ts -w api",
@@ -79,7 +78,7 @@
79
78
  "ts-node": "^10.9.2",
80
79
  "typescript": "^5.3.3",
81
80
  "vite": "^5.0.10",
82
- "vite-plugin-blocklet": "^0.7.7",
81
+ "vite-plugin-blocklet": "^0.7.9",
83
82
  "vite-plugin-svgr": "^4.2.0",
84
83
  "zx": "^7.2.3"
85
84
  },
@@ -3,7 +3,6 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "eject": "vite eject",
7
6
  "lint": "eslint src api --ext .mjs,.js,.jsx,.ts,.tsx",
8
7
  "lint:fix": "npm run lint -- --fix",
9
8
  "start": "cross-env NODE_ENV=development nodemon api/dev.js -w api",
@@ -70,7 +69,7 @@
70
69
  "prettier": "^3.1.1",
71
70
  "rimraf": "^3.0.2",
72
71
  "vite": "^5.0.10",
73
- "vite-plugin-blocklet": "^0.7.7",
72
+ "vite-plugin-blocklet": "^0.7.9",
74
73
  "vite-plugin-svgr": "^4.2.0",
75
74
  "zx": "^7.2.3"
76
75
  }
@@ -3,7 +3,6 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "eject": "vite eject",
7
6
  "serve": "vite preview",
8
7
  "lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
9
8
  "lint:fix": "npm run lint -- --fix",
@@ -53,7 +52,7 @@
53
52
  "prettier": "^3.1.1",
54
53
  "rimraf": "^3.0.2",
55
54
  "vite": "^5.0.10",
56
- "vite-plugin-blocklet": "^0.7.7",
55
+ "vite-plugin-blocklet": "^0.7.9",
57
56
  "vite-plugin-svgr": "^4.2.0",
58
57
  "zx": "^7.2.3"
59
58
  }
@@ -33,7 +33,7 @@
33
33
  "prettier": "^3.1.1",
34
34
  "rimraf": "^3.0.2",
35
35
  "vite": "^5.0.10",
36
- "vite-plugin-blocklet": "^0.7.7",
36
+ "vite-plugin-blocklet": "^0.7.9",
37
37
  "vite-plugin-solid": "^2.8.0",
38
38
  "zx": "^7.2.3"
39
39
  },
@@ -29,7 +29,7 @@
29
29
  "prettier": "^3.1.1",
30
30
  "rimraf": "^3.0.2",
31
31
  "vite": "^5.0.10",
32
- "vite-plugin-blocklet": "^0.7.7",
32
+ "vite-plugin-blocklet": "^0.7.9",
33
33
  "vite-plugin-solid": "^2.8.0",
34
34
  "zx": "^7.2.3"
35
35
  },
@@ -45,7 +45,7 @@
45
45
  "rimraf": "^3.0.2",
46
46
  "svelte": "^4.2.8",
47
47
  "vite": "^5.0.10",
48
- "vite-plugin-blocklet": "^0.7.7",
48
+ "vite-plugin-blocklet": "^0.7.9",
49
49
  "zx": "^7.2.3"
50
50
  },
51
51
  "lint-staged": {
@@ -30,7 +30,7 @@
30
30
  "rimraf": "^3.0.2",
31
31
  "svelte": "^4.2.8",
32
32
  "vite": "^5.0.10",
33
- "vite-plugin-blocklet": "^0.7.7",
33
+ "vite-plugin-blocklet": "^0.7.9",
34
34
  "zx": "^7.2.3"
35
35
  },
36
36
  "lint-staged": {
@@ -1,3 +1,28 @@
1
- # template-react
1
+ # todo-list-example
2
2
 
3
- A react template for creating a new blocklet project.
3
+ ## How to start
4
+
5
+ ### Install dependencies
6
+
7
+ ```shell
8
+ pnpm install
9
+ # or npm install
10
+ # or yarn install
11
+ ```
12
+
13
+ ### Start
14
+
15
+ ```shell
16
+ yarn dev
17
+ ```
18
+
19
+ ## How to connect with DID Spaces
20
+
21
+ - Step 1: Set the 'capabilities.didSpace' field in blocklet.yml to 'requiredOnConnect', see 'blocklet.yml#capabilities'
22
+ - Step 2: To read and write the DID Space, see api/src/routes/todo-list/index.ts#9
23
+ - Step 3: Get data from DID Spaces, see 'src/pages/todo-list.tsx#33'
24
+ - Step 4: Write data to DID Spaces, see 'src/pages/todo-list.tsx#51'
25
+
26
+ ## Get help
27
+
28
+ If you want to learn more about the development of DID Spaces, You can also refer to [DID Spaces development documentation] (https://www.arcblock.io/docs/did-spaces/en/did-spaces-how-to-guides). No matter what you encounter a problem, we welcome you in our official BBS (https://community.arcblock.io/) initiated discussions.
@@ -36,7 +36,7 @@ payment:
36
36
  timeout:
37
37
  start: 60
38
38
  requirements:
39
- server: '>=1.6.29'
39
+ server: '>=1.16.25'
40
40
  os: '*'
41
41
  cpu: '*'
42
42
  scripts:
@@ -0,0 +1,28 @@
1
+ # todo-list-example
2
+
3
+ ## 如何启动
4
+
5
+ ### 安装依赖
6
+
7
+ ```shell
8
+ pnpm install
9
+ # or npm install
10
+ # or yarn install
11
+ ```
12
+
13
+ ### 启动
14
+
15
+ ```shell
16
+ yarn dev
17
+ ```
18
+
19
+ ## 如何与 DID Spaces 对接的
20
+
21
+ - 步骤 1:将blocklet.yml 中的 `capabilities.didSpace` 字段设置为 `requiredOnConnect`,请参阅 `blocklet.yml#capabilities`
22
+ - 步骤 2:实现读写 DID Space 的功能,请参阅 `api/src/routes/todo-list/index.ts#9`
23
+ - 步骤 3:从 DID Spaces 获取数据,请参阅 `src/pages/todo-list.tsx#33`
24
+ - 步骤 4:将数据写入 DID Spaces,请参阅 `src/pages/todo-list.tsx#51`
25
+
26
+ ## 获得帮助
27
+
28
+ 如果你想了解更多有关 DID Spaces 的开发细节,你还可以参考[DID Spaces 的开发文档](https://www.arcblock.io/docs/did-spaces/en/did-spaces-how-to-guides)。不论你遇到什么问题,我们随时欢迎你在我们的[官方论坛](https://community.arcblock.io/)发起讨论。
@@ -3,7 +3,6 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "eject": "vite eject",
7
6
  "lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
8
7
  "lint:fix": "npm run lint -- --fix",
9
8
  "start": "cross-env NODE_ENV=development nodemon api/dev.ts -w api",
@@ -92,7 +91,7 @@
92
91
  "ts-node": "^10.9.2",
93
92
  "typescript": "^5.4.3",
94
93
  "vite": "^5.0.13",
95
- "vite-plugin-blocklet": "^0.7.7",
94
+ "vite-plugin-blocklet": "^0.7.9",
96
95
  "vite-plugin-svgr": "^4.2.0",
97
96
  "zx": "^7.2.3"
98
97
  },
@@ -106,4 +105,4 @@
106
105
  "parser": "typescript"
107
106
  }
108
107
  }
109
- }
108
+ }
@@ -47,7 +47,7 @@
47
47
  "prettier": "^3.1.1",
48
48
  "rimraf": "^3.0.2",
49
49
  "vite": "^5.0.10",
50
- "vite-plugin-blocklet": "^0.7.7",
50
+ "vite-plugin-blocklet": "^0.7.9",
51
51
  "zx": "^7.2.3"
52
52
  },
53
53
  "lint-staged": {
@@ -31,7 +31,7 @@
31
31
  "prettier": "^3.1.1",
32
32
  "rimraf": "^3.0.2",
33
33
  "vite": "^5.0.10",
34
- "vite-plugin-blocklet": "^0.7.7",
34
+ "vite-plugin-blocklet": "^0.7.9",
35
35
  "zx": "^7.2.3"
36
36
  },
37
37
  "lint-staged": {
@@ -47,7 +47,7 @@
47
47
  "prettier": "^3.1.1",
48
48
  "rimraf": "^3.0.2",
49
49
  "vite": "^5.0.10",
50
- "vite-plugin-blocklet": "^0.7.7",
50
+ "vite-plugin-blocklet": "^0.7.9",
51
51
  "zx": "^7.2.3"
52
52
  },
53
53
  "lint-staged": {
@@ -31,7 +31,7 @@
31
31
  "prettier": "^3.1.1",
32
32
  "rimraf": "^3.0.2",
33
33
  "vite": "^5.0.10",
34
- "vite-plugin-blocklet": "^0.7.7",
34
+ "vite-plugin-blocklet": "^0.7.9",
35
35
  "zx": "^7.2.3"
36
36
  },
37
37
  "lint-staged": {