create-blocklet 0.2.8 → 0.2.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.
@@ -22,15 +22,15 @@ jobs:
22
22
  run: yarn
23
23
 
24
24
  - name: Blocklet workflow
25
- uses: blocklet/action-workflow@v1.1
25
+ uses: blocklet/action-workflow@v1
26
26
  with:
27
27
  skip-upload: false
28
28
  skip-deploy: false
29
29
  bundle-command: yarn bundle
30
30
  store-endpoint: ${{ secrets.STORE_ENDPOINT_STAGING }}
31
31
  store-access-token: ${{ secrets.STORE_ACCESS_TOKEN_STAGING }}
32
- abtnode-endpoint: ${{ secrets.STAGING_NODE_ENDPOINT }}
33
- access-key: ${{ secrets.STAGING_NODE_ACCESS_KEY }}
34
- access-secret: ${{ secrets.STAGING_NODE_ACCESS_SECRET }}
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
@@ -199,43 +199,43 @@ async function init() {
199
199
  await echoBrand();
200
200
  await echoDocument();
201
201
 
202
- console.log('Checking abtnode runtime environment...', '\n');
202
+ console.log('Checking blocklet server runtime environment...', '\n');
203
203
 
204
204
  const isAbtnodeInstalled = checkAbtnodeInstalled();
205
205
  const isSatisfiedVersion = checkSatisfiedVersion();
206
206
  const isAbtnodeRunning = checkAbtnodeRunning();
207
207
 
208
208
  if (!isAbtnodeInstalled) {
209
- // 未安装 abtnode
210
- console.log(red('To run the blocklet, you need a running abtnode instance on local machine.'), '\n');
209
+ // 未安装 blocklet server
210
+ console.log(red('To run the blocklet, you need a running blocklet server instance on local machine.'), '\n');
211
211
  console.log(`Checkout ${green('README.md')} for more usage instructions.`);
212
212
  console.log('Now you should run:', '\n');
213
- console.log(cyan('npm install -g @abtnode/cli'));
214
- console.log(cyan('abtnode start -a'));
213
+ console.log(cyan('npm install -g @blocklet/cli'));
214
+ console.log(cyan('blocklet server start -a'));
215
215
  } else if (!isSatisfiedVersion) {
216
- // 已安装 abtnode,但版本不满足
217
- console.log(red('Your abtnode version is outdate, please update it to the latest version.'));
216
+ // 已安装 blocklet server,但版本不满足
217
+ console.log(red('Your blocklet server version is outdate, please update it to the latest version.'));
218
218
  console.log('Now you should run:', '\n');
219
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'));
220
+ // blocklet server 已经启动
221
+ const serverPath = getAbtnodeDirectory();
222
+ console.log(cyan(`cd ${serverPath}`));
223
+ console.log(cyan('blocklet server stop'));
224
+ console.log(cyan('npm install -g @blocklet/cli'));
225
+ console.log(cyan('blocklet server start'));
226
226
  console.log(cyan(`cd ${cwd}`));
227
227
  } else {
228
- // abtnode 未启动
229
- // TODO: 如何获取未启动的 abtnode 实例目录?
230
- console.log(cyan('npm install -g @abtnode/cli'));
231
- console.log(cyan('abtnode start -a'));
228
+ // blocklet server 未启动
229
+ // TODO: 如何获取未启动的 blocklet server 实例目录?
230
+ console.log(cyan('npm install -g @blocklet/cli'));
231
+ console.log(cyan('blocklet server start -a'));
232
232
  }
233
233
  } else if (!isAbtnodeRunning) {
234
- // 已经安装 abtnode,且版本满足,并且 abtnode 未启动
235
- console.log(red('You need to start your abtnode before develop this blocklet.'));
234
+ // 已经安装 blocklet server,且版本满足,并且 blocklet server 未启动
235
+ console.log(red('You need to start your blocklet server before develop this blocklet.'));
236
236
  console.log('Now you should run:', '\n');
237
- // TODO: 如何获取未启动的 abtnode 实例目录?
238
- console.log(cyan('abtnode start -a'));
237
+ // TODO: 如何获取未启动的 blocklet server 实例目录?
238
+ console.log(cyan('blocklet server start -a'));
239
239
  }
240
240
 
241
241
  console.log(`\n\nScaffolding project in ${root}...`);
package/lib/abtnode.js CHANGED
@@ -2,17 +2,17 @@ import semver from 'semver';
2
2
  import { getOutput } from './index.js';
3
3
 
4
4
  export function checkAbtnodeInstalled() {
5
- const output = getOutput('which abtnode');
5
+ const output = getOutput('which blocklet');
6
6
  return !!output;
7
7
  }
8
8
 
9
9
  export function getAbtnodeVersion() {
10
- const output = getOutput('abtnode --version');
10
+ const output = getOutput('blocklet --version');
11
11
  return output.trim();
12
12
  }
13
13
 
14
14
  export function getAbtnodeStatus() {
15
- const output = getOutput('abtnode status');
15
+ const output = getOutput('blocklet server status');
16
16
  const [matchStr] = output.match(/ABT Node status:[\s\S]*?\n/gm) || [];
17
17
  if (!matchStr) {
18
18
  return 'stop';
@@ -26,17 +26,17 @@ export function checkAbtnodeRunning() {
26
26
  }
27
27
 
28
28
  export function checkSatisfiedVersion() {
29
- const output = getOutput('abtnode --version');
29
+ const output = getOutput('blocklet --version');
30
30
  const version = output.trim();
31
- return semver.satisfies(version, '>= 1.5.10');
31
+ return semver.satisfies(version, '>= 1.6.1');
32
32
  }
33
33
 
34
34
  export function getAbtnodeDirectory() {
35
- const output = getOutput('abtnode status');
36
- const [matchStr] = output.match(/ABT Node Data Directory:[\s\S]*?\n/gm) || [];
35
+ const output = getOutput('blocklet server status');
36
+ const [matchStr] = output.match(/Blocklet Server Data Directory:[\s\S]*?\n/gm) || [];
37
37
  if (!matchStr) return null;
38
38
 
39
- const directory = matchStr.replace(/ABT Node Data Directory:[\s]*([\S]+)\/\.abtnode\n/gm, '$1');
39
+ const directory = matchStr.replace(/Blocklet Server Data Directory:[\s]*([\S]+)\/\.abtnode\n/gm, '$1');
40
40
  return directory;
41
41
  }
42
42
 
package/lib/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
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,12 +57,12 @@ 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.
@@ -83,7 +83,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
83
83
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
84
84
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
85
85
  3. A blocklet store started by yourself.
86
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
89
  blocklet config set store {store url}
@@ -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,12 +51,12 @@ 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.
@@ -77,7 +77,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
78
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
79
  3. A blocklet store started by yourself.
80
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
83
  blocklet config set store {store url}
@@ -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,12 +51,12 @@ 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.
@@ -77,7 +77,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
78
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
79
  3. A blocklet store started by yourself.
80
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
83
  blocklet config set store {store url}
@@ -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,12 +51,12 @@ 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.
@@ -77,7 +77,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
78
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
79
  3. A blocklet store started by yourself.
80
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
83
  blocklet config set store {store url}
@@ -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,12 +51,12 @@ 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.
@@ -77,7 +77,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
78
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
79
  3. A blocklet store started by yourself.
80
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
83
  blocklet config set store {store url}
@@ -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,12 +51,12 @@ 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.
@@ -77,7 +77,7 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
77
77
  1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
78
78
  2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
79
79
  3. A blocklet store started by yourself.
80
- > Make sure you have installed a `blocklet store` on your own abtnode. Check it on here: [https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ](https://store.blocklet.dev/blocklet/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ)
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
83
  blocklet config set store {store url}
package/CHANGELOG.md DELETED
@@ -1,74 +0,0 @@
1
- ## 0.2.8 (十一月 26, 2021)
2
-
3
- - feat: rebrand blocklet registry -> blocklet store
4
-
5
- ## 0.2.7 (十一月 21, 2021)
6
-
7
- - chore: prettier default useTabs: false
8
-
9
- ## 0.2.6 (十一月 20, 2021)
10
-
11
- - feat: add vue2 + @vue/cli template
12
-
13
- ## 0.2.5 (十一月 20, 2021)
14
-
15
- - feat: add vite + vue3 template
16
-
17
- ## 0.2.4 (October 28, 2021)
18
-
19
- - chore: bump deps to latest
20
-
21
- ## 0.2.3 (十一月 08, 2021)
22
-
23
- - chore: update README.md
24
- - chore: remove sharp
25
-
26
- ## 0.2.2 (十月 19, 2021)
27
-
28
- - chore: use blocklet/sdk WalletHandlers
29
-
30
- ## 0.2.1 (十月 15, 2021)
31
-
32
- - feat: use action-workflow
33
-
34
- ## 0.2.0 (九月 30, 2021)
35
-
36
- - feat: add npm script "upload"
37
- - fix #25
38
- - fix #22
39
- - fix #21
40
- - fix #24
41
- - fix #23
42
-
43
- ## 0.1.7 (八月 12, 2021)
44
-
45
- - feat: support generate did
46
- - fix: remove yarn command
47
-
48
- ## 0.1.6 (八月 06, 2021)
49
-
50
- - fix: [#8](https://github.com/blocklet/create-blocklet/issues/8)
51
-
52
- ## 0.1.5 (八月 03, 2021)
53
-
54
- - chore: enhanced use of blocklet command
55
-
56
- ## 0.1.4 (八月 02, 2021)
57
-
58
- - fix: add 'lib' to npm publish files
59
-
60
- ## 0.1.3 (八月 02, 2021)
61
-
62
- - feat: add react-dom-router
63
- - fix: #4
64
- - fix: #3
65
- - fix: #2
66
- - fix: #1
67
-
68
- ## 0.1.2 (七月 23, 2021)
69
-
70
- - fix: dapp npm bundle
71
-
72
- ## 0.1.1 (七月 23, 2021)
73
-
74
- - fix: add folder to npm publish