create-blocklet 0.2.7 → 0.2.11

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.
@@ -27,10 +27,10 @@ jobs:
27
27
  skip-upload: false
28
28
  skip-deploy: false
29
29
  bundle-command: yarn bundle
30
- registry-endpoint: ${{ secrets.STAGING_REGISTRY }}
31
- developer-sk: ${{ secrets.ABTNODE_DEV_STAGING_SK }}
32
- abtnode-endpoint: ${{ secrets.STAGING_NODE_ENDPOINT }}
33
- access-key: ${{ secrets.STAGING_NODE_ACCESS_KEY }}
34
- access-secret: ${{ secrets.STAGING_NODE_ACCESS_SECRET }}
30
+ store-endpoint: ${{ secrets.STORE_ENDPOINT_DEV }}
31
+ store-access-token: ${{ secrets.STORE_ACCESS_TOKEN_DEV }}
32
+ server-endpoint: ${{ secrets.STAGING_NODE_ENDPOINT }}
33
+ server-access-key: ${{ secrets.STAGING_NODE_ACCESS_KEY }}
34
+ server-access-secret: ${{ secrets.STAGING_NODE_ACCESS_SECRET }}
35
35
  slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
36
36
  github-token: ${{ secrets.GITHUB_TOKEN }}
package/common/Makefile CHANGED
@@ -3,7 +3,7 @@
3
3
  dep:
4
4
  @echo "Install dependencies required for this repo..."
5
5
  @npm install
6
- @npm install -g @abtnode/cli
6
+ @npm install -g @blocklet/cli
7
7
 
8
8
  test:
9
9
  @echo "Running test suites..."
package/index.js CHANGED
@@ -12,12 +12,7 @@ import * as envfile from 'envfile';
12
12
 
13
13
  import { echoBrand, echoDocument } from './lib/arcblock.js';
14
14
  import { getAuthor } from './lib/npm.js';
15
- import {
16
- checkAbtnodeInstalled,
17
- checkAbtnodeRunning,
18
- checkSatisfiedVersion,
19
- getAbtnodeDirectory,
20
- } from './lib/abtnode.js';
15
+ import { checkServerInstalled, checkServerRunning, checkSatisfiedVersion, getServerDirectory } from './lib/server.js';
21
16
  import { toBlockletDid, toDidIcon } from './lib/did.js';
22
17
 
23
18
  const argv = minimist(process.argv.slice(2));
@@ -199,43 +194,43 @@ async function init() {
199
194
  await echoBrand();
200
195
  await echoDocument();
201
196
 
202
- console.log('Checking abtnode runtime environment...', '\n');
197
+ console.log('Checking blocklet server runtime environment...', '\n');
203
198
 
204
- const isAbtnodeInstalled = checkAbtnodeInstalled();
199
+ const isServerInstalled = checkServerInstalled();
205
200
  const isSatisfiedVersion = checkSatisfiedVersion();
206
- const isAbtnodeRunning = checkAbtnodeRunning();
201
+ const isServerRunning = checkServerRunning();
207
202
 
208
- if (!isAbtnodeInstalled) {
209
- // 未安装 abtnode
210
- console.log(red('To run the blocklet, you need a running abtnode instance on local machine.'), '\n');
203
+ if (!isServerInstalled) {
204
+ // 未安装 blocklet server
205
+ console.log(red('To run the blocklet, you need a running blocklet server instance on local machine.'), '\n');
211
206
  console.log(`Checkout ${green('README.md')} for more usage instructions.`);
212
207
  console.log('Now you should run:', '\n');
213
- console.log(cyan('npm install -g @abtnode/cli'));
214
- console.log(cyan('abtnode start -a'));
208
+ console.log(cyan('npm install -g @blocklet/cli'));
209
+ console.log(cyan('blocklet server start -a'));
215
210
  } else if (!isSatisfiedVersion) {
216
- // 已安装 abtnode,但版本不满足
217
- console.log(red('Your abtnode version is outdate, please update it to the latest version.'));
211
+ // 已安装 blocklet server,但版本不满足
212
+ console.log(red('Your blocklet server version is outdate, please update it to the latest version.'));
218
213
  console.log('Now you should run:', '\n');
219
- if (isAbtnodeRunning) {
220
- // abtnode 已经启动
221
- const abtnodePath = getAbtnodeDirectory();
222
- console.log(cyan(`cd ${abtnodePath}`));
223
- console.log(cyan('abtnode stop'));
224
- console.log(cyan('npm install -g @abtnode/cli'));
225
- console.log(cyan('abtnode start'));
214
+ if (isServerRunning) {
215
+ // blocklet server 已经启动
216
+ const serverPath = getServerDirectory();
217
+ console.log(cyan(`cd ${serverPath}`));
218
+ console.log(cyan('blocklet server stop'));
219
+ console.log(cyan('npm install -g @blocklet/cli'));
220
+ console.log(cyan('blocklet server start'));
226
221
  console.log(cyan(`cd ${cwd}`));
227
222
  } else {
228
- // abtnode 未启动
229
- // TODO: 如何获取未启动的 abtnode 实例目录?
230
- console.log(cyan('npm install -g @abtnode/cli'));
231
- console.log(cyan('abtnode start -a'));
223
+ // blocklet server 未启动
224
+ // TODO: 如何获取未启动的 blocklet server 实例目录?
225
+ console.log(cyan('npm install -g @blocklet/cli'));
226
+ console.log(cyan('blocklet server start -a'));
232
227
  }
233
- } else if (!isAbtnodeRunning) {
234
- // 已经安装 abtnode,且版本满足,并且 abtnode 未启动
235
- console.log(red('You need to start your abtnode before develop this blocklet.'));
228
+ } else if (!isServerRunning) {
229
+ // 已经安装 blocklet server,且版本满足,并且 blocklet server 未启动
230
+ console.log(red('You need to start your blocklet server before develop this blocklet.'));
236
231
  console.log('Now you should run:', '\n');
237
- // TODO: 如何获取未启动的 abtnode 实例目录?
238
- console.log(cyan('abtnode start -a'));
232
+ // TODO: 如何获取未启动的 blocklet server 实例目录?
233
+ console.log(cyan('blocklet server start -a'));
239
234
  }
240
235
 
241
236
  console.log(`\n\nScaffolding project in ${root}...`);
package/lib/index.js CHANGED
File without changes
package/lib/server.js ADDED
@@ -0,0 +1,41 @@
1
+ import semver from 'semver';
2
+ import { getOutput } from './index.js';
3
+
4
+ export function checkServerInstalled() {
5
+ const output = getOutput('which blocklet');
6
+ return !!output;
7
+ }
8
+
9
+ export function getServerVersion() {
10
+ const output = getOutput('blocklet --version');
11
+ return output.trim();
12
+ }
13
+
14
+ export function getServerStatus() {
15
+ const output = getOutput('blocklet server status');
16
+ const [matchStr] = output.match(/Blocklet Server status:[\s\S]*?\n/g) || [];
17
+ if (!matchStr) {
18
+ return 'stop';
19
+ }
20
+ const status = matchStr.replace(/Blocklet Server status:\s*(\S+)\s*\S*\n*[\s\S]*/gm, '$1');
21
+ return status.toLowerCase();
22
+ }
23
+ export function checkServerRunning() {
24
+ const status = getServerStatus();
25
+ return status === 'running';
26
+ }
27
+
28
+ export function checkSatisfiedVersion() {
29
+ const output = getOutput('blocklet --version');
30
+ const version = output.trim();
31
+ return semver.satisfies(version, '>= 1.6.1');
32
+ }
33
+
34
+ export function getServerDirectory() {
35
+ const output = getOutput('blocklet server status');
36
+ const [matchStr] = output.match(/Blocklet Server Data Directory:[\s\S]*?\n/gm) || [];
37
+ if (!matchStr) return null;
38
+
39
+ const directory = matchStr.replace(/Blocklet Server Data Directory:[\s]*([\S]+)\/\.abtnode\n/gm, '$1');
40
+ return directory;
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.2.7",
3
+ "version": "0.2.11",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -34,17 +34,17 @@ This blocklet is a dapp project, which means this is a full-stack application. I
34
34
 
35
35
  ## Development
36
36
 
37
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
37
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
38
38
 
39
- Blocklet needs abtnode as a dependency. So you need to install it first.
40
- `npm install -g @abtnode/cli`
39
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
40
+ `npm install -g @blocklet/cli`
41
41
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
42
42
 
43
- 2. Init abtnode & start abtnode
43
+ 2. Init blocklet server & start blocklet server
44
44
 
45
- Before starting an abtnode, you need to init abtnode.
46
- `abtnode init --mode=debug`
47
- `abtnode start`
45
+ Before starting an blocklet server, you need to init blocklet server.
46
+ `blocklet server init --mode=debug`
47
+ `blocklet server start`
48
48
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
49
49
 
50
50
  3. Go to the project directory `cd [name]`
@@ -57,19 +57,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
57
57
 
58
58
  ## Deploy
59
59
 
60
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment).
60
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment).
61
61
  > Or you can simply use `npm run deploy` command.
62
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
62
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
63
63
 
64
64
  ```shell
65
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
65
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
66
66
  ```
67
67
 
68
68
  > Make sure the blocklet is bundled before deployment.
69
69
 
70
- ## Upload to blocklet registry
70
+ ## Upload to blocklet store
71
71
 
72
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
72
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
73
73
 
74
74
  Bump version at first.
75
75
 
@@ -77,22 +77,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  make bump-version
78
78
  ```
79
79
 
80
- Then config blocklet registry url.
81
- You can use those registry url in below.
80
+ Then config blocklet store url.
81
+ You can use those store url in below.
82
82
 
83
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
84
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
85
- 3. A blocklet registry started by yourself.
86
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
83
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
84
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
85
+ 3. A blocklet store started by yourself.
86
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
87
87
 
88
88
  ```shell
89
- blocklet config set registry {registry url}
89
+ blocklet config set store {store url}
90
90
  ```
91
91
 
92
92
  Get a `accessToken` by using this command.
93
93
 
94
94
  > Why we need a `accessToken`?
95
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
95
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
96
96
 
97
97
  Set `accessToken` to blocklet config
98
98
 
@@ -100,7 +100,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
100
100
  blocklet config set accessToken {accessToken}
101
101
  ```
102
102
 
103
- Upload a new version to a registry.
103
+ Upload a new version to a store.
104
104
 
105
105
  > Make sure the blocklet is bundled before upload.
106
106
 
@@ -110,7 +110,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
110
110
 
111
111
  Or you can simply use `npm run upload` command.
112
112
 
113
- - You also can upload a new version to a registry by Github CI.
113
+ - You also can upload a new version to a store by Github CI.
114
114
  Bump version at first.
115
115
 
116
116
  ```shell
@@ -118,7 +118,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
118
118
  ```
119
119
 
120
120
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
121
- The CI workflow will automatically upload a new version to a registry.
121
+ The CI workflow will automatically upload a new version to a store.
122
122
 
123
123
  ## Q & A
124
124
 
@@ -145,7 +145,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
145
145
  ## Learn More
146
146
 
147
147
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
148
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
148
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
149
149
 
150
150
  ## License
151
151
 
@@ -1,6 +1,6 @@
1
1
  name: template-react
2
2
  title: Blocklet Template React
3
- description: An ABT Node blocklet
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - react
@@ -1,3 +1,4 @@
1
+ require('@blocklet/sdk/lib/error-handler');
1
2
  require('dotenv-flow').config();
2
3
 
3
4
  const Client = require('@ocap/client');
@@ -28,17 +28,17 @@ This blocklet is a static project, which means this is a frontend application. I
28
28
 
29
29
  ## Development
30
30
 
31
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
31
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
32
32
 
33
- Blocklet needs abtnode as a dependency. So you need to install it first.
34
- `npm install -g @abtnode/cli`
33
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
34
+ `npm install -g @blocklet/cli`
35
35
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
36
36
 
37
- 2. Init abtnode & start abtnode
37
+ 2. Init blocklet server & start blocklet server
38
38
 
39
- Before starting an abtnode, you need to init abtnode.
40
- `abtnode init --mode=debug`
41
- `abtnode start`
39
+ Before starting an blocklet server, you need to init blocklet server.
40
+ `blocklet server init --mode=debug`
41
+ `blocklet server start`
42
42
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
43
43
 
44
44
  3. Go to the project directory `cd [name]`
@@ -51,19 +51,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
51
51
 
52
52
  ## Deploy
53
53
 
54
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
54
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
55
55
  > Or you can simply use `npm run deploy` command.
56
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
56
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
57
57
 
58
58
  ```shell
59
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
59
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
60
60
  ```
61
61
 
62
62
  > Make sure the blocklet is bundled before deployment.
63
63
 
64
- ## Upload to blocklet registry
64
+ ## Upload to blocklet store
65
65
 
66
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
66
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
67
67
 
68
68
  Bump version at first.
69
69
 
@@ -71,22 +71,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
71
71
  make bump-version
72
72
  ```
73
73
 
74
- Then config blocklet registry url.
75
- You can use those registry url in below.
74
+ Then config blocklet store url.
75
+ You can use those store url in below.
76
76
 
77
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
78
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
79
- 3. A blocklet registry started by yourself.
80
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
77
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
+ 3. A blocklet store started by yourself.
80
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
81
81
 
82
82
  ```shell
83
- blocklet config set registry {registry url}
83
+ blocklet config set store {store url}
84
84
  ```
85
85
 
86
- Get a `accessToken` from blocklet registry.
86
+ Get a `accessToken` from blocklet store.
87
87
 
88
88
  > Why we need a `accessToken`?
89
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
89
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
90
90
 
91
91
  Set `accessToken` to blocklet config
92
92
 
@@ -94,7 +94,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
94
94
  blocklet config set accessToken {accessToken}
95
95
  ```
96
96
 
97
- Upload a new version to a registry.
97
+ Upload a new version to a store.
98
98
 
99
99
  > Make sure the blocklet is bundled before upload.
100
100
 
@@ -104,7 +104,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
104
104
 
105
105
  Or you can simply use `npm run upload` command.
106
106
 
107
- - You also can upload a new version to blocklet registry by Github CI.
107
+ - You also can upload a new version to blocklet store by Github CI.
108
108
  Bump version at first.
109
109
 
110
110
  ```shell
@@ -112,7 +112,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
112
112
  ```
113
113
 
114
114
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
115
- The CI workflow will automatically upload a new version to a registry.
115
+ The CI workflow will automatically upload a new version to a store.
116
116
 
117
117
  ## Q & A
118
118
 
@@ -139,7 +139,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
139
139
  ## Learn More
140
140
 
141
141
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
142
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
142
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
143
143
 
144
144
  ## License
145
145
 
@@ -1,6 +1,6 @@
1
1
  name: template-vue
2
2
  title: Blocklet Template Vue
3
- description: ABT Node blocklet project
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - vue
@@ -1,3 +1,4 @@
1
+ require('@blocklet/sdk/lib/error-handler');
1
2
  require('dotenv-flow').config();
2
3
 
3
4
  const Client = require('@ocap/client');
@@ -28,17 +28,17 @@ This blocklet is a static project, which means this is a frontend application. I
28
28
 
29
29
  ## Development
30
30
 
31
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
31
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
32
32
 
33
- Blocklet needs abtnode as a dependency. So you need to install it first.
34
- `npm install -g @abtnode/cli`
33
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
34
+ `npm install -g @blocklet/cli`
35
35
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
36
36
 
37
- 2. Init abtnode & start abtnode
37
+ 2. Init blocklet server & start blocklet server
38
38
 
39
- Before starting an abtnode, you need to init abtnode.
40
- `abtnode init --mode=debug`
41
- `abtnode start`
39
+ Before starting an blocklet server, you need to init blocklet server.
40
+ `blocklet server init --mode=debug`
41
+ `blocklet server start`
42
42
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
43
43
 
44
44
  3. Go to the project directory `cd [name]`
@@ -51,19 +51,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
51
51
 
52
52
  ## Deploy
53
53
 
54
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
54
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
55
55
  > Or you can simply use `npm run deploy` command.
56
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
56
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
57
57
 
58
58
  ```shell
59
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
59
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
60
60
  ```
61
61
 
62
62
  > Make sure the blocklet is bundled before deployment.
63
63
 
64
- ## Upload to blocklet registry
64
+ ## Upload to blocklet store
65
65
 
66
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
66
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
67
67
 
68
68
  Bump version at first.
69
69
 
@@ -71,22 +71,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
71
71
  make bump-version
72
72
  ```
73
73
 
74
- Then config blocklet registry url.
75
- You can use those registry url in below.
74
+ Then config blocklet store url.
75
+ You can use those store url in below.
76
76
 
77
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
78
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
79
- 3. A blocklet registry started by yourself.
80
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
77
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
+ 3. A blocklet store started by yourself.
80
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
81
81
 
82
82
  ```shell
83
- blocklet config set registry {registry url}
83
+ blocklet config set store {store url}
84
84
  ```
85
85
 
86
- Get a `accessToken` from blocklet registry.
86
+ Get a `accessToken` from blocklet store.
87
87
 
88
88
  > Why we need a `accessToken`?
89
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
89
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
90
90
 
91
91
  Set `accessToken` to blocklet config
92
92
 
@@ -94,7 +94,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
94
94
  blocklet config set accessToken {accessToken}
95
95
  ```
96
96
 
97
- Upload a new version to a registry.
97
+ Upload a new version to a store.
98
98
 
99
99
  > Make sure the blocklet is bundled before upload.
100
100
 
@@ -104,7 +104,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
104
104
 
105
105
  Or you can simply use `npm run upload` command.
106
106
 
107
- - You also can upload a new version to blocklet registry by Github CI.
107
+ - You also can upload a new version to blocklet store by Github CI.
108
108
  Bump version at first.
109
109
 
110
110
  ```shell
@@ -112,7 +112,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
112
112
  ```
113
113
 
114
114
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
115
- The CI workflow will automatically upload a new version to a registry.
115
+ The CI workflow will automatically upload a new version to a store.
116
116
 
117
117
  ## Q & A
118
118
 
@@ -139,7 +139,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
139
139
  ## Learn More
140
140
 
141
141
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
142
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
142
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
143
143
 
144
144
  ## License
145
145
 
@@ -1,6 +1,6 @@
1
1
  name: template-vue2
2
2
  title: Blocklet Template Vue2
3
- description: ABT Node blocklet project
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - vue
@@ -1,3 +1,4 @@
1
+ require('@blocklet/sdk/lib/error-handler');
1
2
  require('dotenv-flow').config();
2
3
 
3
4
  const Client = require('@ocap/client');
@@ -28,17 +28,17 @@ This blocklet is a static project, which means this is a frontend application. I
28
28
 
29
29
  ## Development
30
30
 
31
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
31
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
32
32
 
33
- Blocklet needs abtnode as a dependency. So you need to install it first.
34
- `npm install -g @abtnode/cli`
33
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
34
+ `npm install -g @blocklet/cli`
35
35
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
36
36
 
37
- 2. Init abtnode & start abtnode
37
+ 2. Init blocklet server & start blocklet server
38
38
 
39
- Before starting an abtnode, you need to init abtnode.
40
- `abtnode init --mode=debug`
41
- `abtnode start`
39
+ Before starting an blocklet server, you need to init blocklet server.
40
+ `blocklet server init --mode=debug`
41
+ `blocklet server start`
42
42
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
43
43
 
44
44
  3. Go to the project directory `cd [name]`
@@ -51,19 +51,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
51
51
 
52
52
  ## Deploy
53
53
 
54
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
54
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
55
55
  > Or you can simply use `npm run deploy` command.
56
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
56
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
57
57
 
58
58
  ```shell
59
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
59
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
60
60
  ```
61
61
 
62
62
  > Make sure the blocklet is bundled before deployment.
63
63
 
64
- ## Upload to blocklet registry
64
+ ## Upload to blocklet store
65
65
 
66
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
66
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
67
67
 
68
68
  Bump version at first.
69
69
 
@@ -71,22 +71,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
71
71
  make bump-version
72
72
  ```
73
73
 
74
- Then config blocklet registry url.
75
- You can use those registry url in below.
74
+ Then config blocklet store url.
75
+ You can use those store url in below.
76
76
 
77
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
78
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
79
- 3. A blocklet registry started by yourself.
80
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
77
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
+ 3. A blocklet store started by yourself.
80
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
81
81
 
82
82
  ```shell
83
- blocklet config set registry {registry url}
83
+ blocklet config set store {store url}
84
84
  ```
85
85
 
86
- Get a `accessToken` from blocklet registry.
86
+ Get a `accessToken` from blocklet store.
87
87
 
88
88
  > Why we need a `accessToken`?
89
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
89
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
90
90
 
91
91
  Set `accessToken` to blocklet config
92
92
 
@@ -94,7 +94,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
94
94
  blocklet config set accessToken {accessToken}
95
95
  ```
96
96
 
97
- Upload a new version to a registry.
97
+ Upload a new version to a store.
98
98
 
99
99
  > Make sure the blocklet is bundled before upload.
100
100
 
@@ -104,7 +104,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
104
104
 
105
105
  Or you can simply use `npm run upload` command.
106
106
 
107
- - You also can upload a new version to blocklet registry by Github CI.
107
+ - You also can upload a new version to blocklet store by Github CI.
108
108
  Bump version at first.
109
109
 
110
110
  ```shell
@@ -112,7 +112,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
112
112
  ```
113
113
 
114
114
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
115
- The CI workflow will automatically upload a new version to a registry.
115
+ The CI workflow will automatically upload a new version to a store.
116
116
 
117
117
  ## Q & A
118
118
 
@@ -139,7 +139,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
139
139
  ## Learn More
140
140
 
141
141
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
142
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
142
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
143
143
 
144
144
  ## License
145
145
 
@@ -1,6 +1,6 @@
1
1
  name: template-react
2
2
  title: Blocklet Template React
3
- description: ABT Node blocklet project
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - react
@@ -28,17 +28,17 @@ This blocklet is a static project, which means this is a frontend application. I
28
28
 
29
29
  ## Development
30
30
 
31
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
31
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
32
32
 
33
- Blocklet needs abtnode as a dependency. So you need to install it first.
34
- `npm install -g @abtnode/cli`
33
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
34
+ `npm install -g @blocklet/cli`
35
35
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
36
36
 
37
- 2. Init abtnode & start abtnode
37
+ 2. Init blocklet server & start blocklet server
38
38
 
39
- Before starting an abtnode, you need to init abtnode.
40
- `abtnode init --mode=debug`
41
- `abtnode start`
39
+ Before starting an blocklet server, you need to init blocklet server.
40
+ `blocklet server init --mode=debug`
41
+ `blocklet server start`
42
42
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
43
43
 
44
44
  3. Go to the project directory `cd [name]`
@@ -51,19 +51,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
51
51
 
52
52
  ## Deploy
53
53
 
54
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
54
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
55
55
  > Or you can simply use `npm run deploy` command.
56
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
56
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
57
57
 
58
58
  ```shell
59
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
59
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
60
60
  ```
61
61
 
62
62
  > Make sure the blocklet is bundled before deployment.
63
63
 
64
- ## Upload to blocklet registry
64
+ ## Upload to blocklet store
65
65
 
66
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
66
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
67
67
 
68
68
  Bump version at first.
69
69
 
@@ -71,22 +71,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
71
71
  make bump-version
72
72
  ```
73
73
 
74
- Then config blocklet registry url.
75
- You can use those registry url in below.
74
+ Then config blocklet store url.
75
+ You can use those store url in below.
76
76
 
77
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
78
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
79
- 3. A blocklet registry started by yourself.
80
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
77
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
+ 3. A blocklet store started by yourself.
80
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
81
81
 
82
82
  ```shell
83
- blocklet config set registry {registry url}
83
+ blocklet config set store {store url}
84
84
  ```
85
85
 
86
- Get a `accessToken` from blocklet registry.
86
+ Get a `accessToken` from blocklet store.
87
87
 
88
88
  > Why we need a `accessToken`?
89
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
89
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
90
90
 
91
91
  Set `accessToken` to blocklet config
92
92
 
@@ -94,7 +94,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
94
94
  blocklet config set accessToken {accessToken}
95
95
  ```
96
96
 
97
- Upload a new version to a registry.
97
+ Upload a new version to a store.
98
98
 
99
99
  > Make sure the blocklet is bundled before upload.
100
100
 
@@ -104,7 +104,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
104
104
 
105
105
  Or you can simply use `npm run upload` command.
106
106
 
107
- - You also can upload a new version to blocklet registry by Github CI.
107
+ - You also can upload a new version to blocklet store by Github CI.
108
108
  Bump version at first.
109
109
 
110
110
  ```shell
@@ -112,7 +112,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
112
112
  ```
113
113
 
114
114
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
115
- The CI workflow will automatically upload a new version to a registry.
115
+ The CI workflow will automatically upload a new version to a store.
116
116
 
117
117
  ## Q & A
118
118
 
@@ -139,7 +139,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
139
139
  ## Learn More
140
140
 
141
141
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
142
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
142
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
143
143
 
144
144
  ## License
145
145
 
@@ -1,6 +1,6 @@
1
1
  name: template-vue
2
2
  title: Blocklet Template Vue
3
- description: ABT Node blocklet project
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - vue
@@ -28,17 +28,17 @@ This blocklet is a static project, which means this is a frontend application. I
28
28
 
29
29
  ## Development
30
30
 
31
- 1. Make sure you have [@abtnode/cli](https://www.npmjs.com/package/@abtnode/cli) installed
31
+ 1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
32
32
 
33
- Blocklet needs abtnode as a dependency. So you need to install it first.
34
- `npm install -g @abtnode/cli`
33
+ Blocklet needs blocklet server as a dependency. So you need to install it first.
34
+ `npm install -g @blocklet/cli`
35
35
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution)
36
36
 
37
- 2. Init abtnode & start abtnode
37
+ 2. Init blocklet server & start blocklet server
38
38
 
39
- Before starting an abtnode, you need to init abtnode.
40
- `abtnode init --mode=debug`
41
- `abtnode start`
39
+ Before starting an blocklet server, you need to init blocklet server.
40
+ `blocklet server init --mode=debug`
41
+ `blocklet server start`
42
42
  See details in [https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
43
43
 
44
44
  3. Go to the project directory `cd [name]`
@@ -51,19 +51,19 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
51
51
 
52
52
  ## Deploy
53
53
 
54
- - If you want to deploy this blocklet to local abtnode, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
54
+ - If you want to deploy this blocklet to local blocklet server, you can use `blocklet deploy .blocklet/bundle` command(Make sure the blocklet is bundled before deployment.)
55
55
  > Or you can simply use `npm run deploy` command.
56
- - If you want to deploy this blocklet to remote abtnode, you can use the command below.
56
+ - If you want to deploy this blocklet to remote blocklet server, you can use the command below.
57
57
 
58
58
  ```shell
59
- blocklet deploy .blocklet/bundle --endpoint {your abtnode url} --access-key {abtnode access key} --access-secret {abtnode access secret}
59
+ blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
60
60
  ```
61
61
 
62
62
  > Make sure the blocklet is bundled before deployment.
63
63
 
64
- ## Upload to blocklet registry
64
+ ## Upload to blocklet store
65
65
 
66
- - If you want to upload the blocklet to any registry for other users to download and use, you can following the following instructions.
66
+ - If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
67
67
 
68
68
  Bump version at first.
69
69
 
@@ -71,22 +71,22 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
71
71
  make bump-version
72
72
  ```
73
73
 
74
- Then config blocklet registry url.
75
- You can use those registry url in below.
74
+ Then config blocklet store url.
75
+ You can use those store url in below.
76
76
 
77
- 1. [https://registry.arcblock.io/](https://registry.arcblock.io/)
78
- 2. [https://dev.registry.arcblock.io/](https://dev.registry.arcblock.io/)
79
- 3. A blocklet registry started by yourself.
80
- > Make sure you have installed a `blocklet registry` on your own abtnode. Check it on here: [https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://registry.arcblock.io/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
77
+ 1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
+ 2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
+ 3. A blocklet store started by yourself.
80
+ > Make sure you have installed a `blocklet store` on your own blocklet server. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
81
81
 
82
82
  ```shell
83
- blocklet config set registry {registry url}
83
+ blocklet config set store {store url}
84
84
  ```
85
85
 
86
- Get a `accessToken` from blocklet registry.
86
+ Get a `accessToken` from blocklet store.
87
87
 
88
88
  > Why we need a `accessToken`?
89
- > A `accessToken` is genrate by blocklet registry, which help us upload our blocklet to any registry.
89
+ > A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
90
90
 
91
91
  Set `accessToken` to blocklet config
92
92
 
@@ -94,7 +94,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
94
94
  blocklet config set accessToken {accessToken}
95
95
  ```
96
96
 
97
- Upload a new version to a registry.
97
+ Upload a new version to a store.
98
98
 
99
99
  > Make sure the blocklet is bundled before upload.
100
100
 
@@ -104,7 +104,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
104
104
 
105
105
  Or you can simply use `npm run upload` command.
106
106
 
107
- - You also can upload a new version to blocklet registry by Github CI.
107
+ - You also can upload a new version to blocklet store by Github CI.
108
108
  Bump version at first.
109
109
 
110
110
  ```shell
@@ -112,7 +112,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
112
112
  ```
113
113
 
114
114
  Push your code to Github main/master branch, or make a pull request to the main/master branch.
115
- The CI workflow will automatically upload a new version to a registry.
115
+ The CI workflow will automatically upload a new version to a store.
116
116
 
117
117
  ## Q & A
118
118
 
@@ -139,7 +139,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
139
139
  ## Learn More
140
140
 
141
141
  - Full specification of `blocklet.yml`: [https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md](https://github.com/blocklet/blocklet-specification/blob/main/docs/meta.md)
142
- - Full document of AbtNode & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
142
+ - Full document of Blocklet Server & blocklet development: [https://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
143
143
 
144
144
  ## License
145
145
 
@@ -1,6 +1,6 @@
1
1
  name: template-vue2
2
2
  title: Blocklet Template Vue2
3
- description: ABT Node blocklet project
3
+ description: A Blocklet Server blocklet
4
4
  keywords:
5
5
  - blocklet
6
6
  - vue
package/CHANGELOG.md DELETED
@@ -1,70 +0,0 @@
1
- ## 0.2.7 (十一月 21, 2021)
2
-
3
- - chore: prettier default useTabs: false
4
-
5
- ## 0.2.6 (十一月 20, 2021)
6
-
7
- - feat: add vue2 + @vue/cli template
8
-
9
- ## 0.2.5 (十一月 20, 2021)
10
-
11
- - feat: add vite + vue3 template
12
-
13
- ## 0.2.4 (October 28, 2021)
14
-
15
- - chore: bump deps to latest
16
-
17
- ## 0.2.3 (十一月 08, 2021)
18
-
19
- - chore: update README.md
20
- - chore: remove sharp
21
-
22
- ## 0.2.2 (十月 19, 2021)
23
-
24
- - chore: use blocklet/sdk WalletHandlers
25
-
26
- ## 0.2.1 (十月 15, 2021)
27
-
28
- - feat: use action-workflow
29
-
30
- ## 0.2.0 (九月 30, 2021)
31
-
32
- - feat: add npm script "upload"
33
- - fix #25
34
- - fix #22
35
- - fix #21
36
- - fix #24
37
- - fix #23
38
-
39
- ## 0.1.7 (八月 12, 2021)
40
-
41
- - feat: support generate did
42
- - fix: remove yarn command
43
-
44
- ## 0.1.6 (八月 06, 2021)
45
-
46
- - fix: [#8](https://github.com/blocklet/create-blocklet/issues/8)
47
-
48
- ## 0.1.5 (八月 03, 2021)
49
-
50
- - chore: enhanced use of blocklet command
51
-
52
- ## 0.1.4 (八月 02, 2021)
53
-
54
- - fix: add 'lib' to npm publish files
55
-
56
- ## 0.1.3 (八月 02, 2021)
57
-
58
- - feat: add react-dom-router
59
- - fix: #4
60
- - fix: #3
61
- - fix: #2
62
- - fix: #1
63
-
64
- ## 0.1.2 (七月 23, 2021)
65
-
66
- - fix: dapp npm bundle
67
-
68
- ## 0.1.1 (七月 23, 2021)
69
-
70
- - fix: add folder to npm publish
package/lib/abtnode.js DELETED
@@ -1,45 +0,0 @@
1
- import semver from 'semver';
2
- import { getOutput } from './index.js';
3
-
4
- export function checkAbtnodeInstalled() {
5
- const output = getOutput('which abtnode');
6
- return !!output;
7
- }
8
-
9
- export function getAbtnodeVersion() {
10
- const output = getOutput('abtnode --version');
11
- return output.trim();
12
- }
13
-
14
- export function getAbtnodeStatus() {
15
- const output = getOutput('abtnode status');
16
- const [matchStr] = output.match(/ABT Node status:[\s\S]*?\n/gm) || [];
17
- if (!matchStr) {
18
- return 'stop';
19
- }
20
- const status = matchStr.replace(/ABT Node status:[\s]*([\S]+)\n/gm, '$1');
21
- return status.toLowerCase();
22
- }
23
- export function checkAbtnodeRunning() {
24
- const status = getAbtnodeStatus();
25
- return status === 'running';
26
- }
27
-
28
- export function checkSatisfiedVersion() {
29
- const output = getOutput('abtnode --version');
30
- const version = output.trim();
31
- return semver.satisfies(version, '>= 1.5.10');
32
- }
33
-
34
- export function getAbtnodeDirectory() {
35
- const output = getOutput('abtnode status');
36
- const [matchStr] = output.match(/ABT Node Data Directory:[\s\S]*?\n/gm) || [];
37
- if (!matchStr) return null;
38
-
39
- const directory = matchStr.replace(/ABT Node Data Directory:[\s]*([\S]+)\/\.abtnode\n/gm, '$1');
40
- return directory;
41
- }
42
-
43
- const dic = getAbtnodeDirectory();
44
-
45
- console.log(dic);