create-blocklet 0.2.7 → 0.2.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.8 (十一月 26, 2021)
2
+
3
+ - feat: rebrand blocklet registry -> blocklet store
4
+
1
5
  ## 0.2.7 (十一月 21, 2021)
2
6
 
3
7
  - chore: prettier default useTabs: false
@@ -22,13 +22,13 @@ jobs:
22
22
  run: yarn
23
23
 
24
24
  - name: Blocklet workflow
25
- uses: blocklet/action-workflow@v1
25
+ uses: blocklet/action-workflow@v1.1
26
26
  with:
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 }}
30
+ store-endpoint: ${{ secrets.STORE_ENDPOINT_STAGING }}
31
+ store-access-token: ${{ secrets.STORE_ACCESS_TOKEN_STAGING }}
32
32
  abtnode-endpoint: ${{ secrets.STAGING_NODE_ENDPOINT }}
33
33
  access-key: ${{ secrets.STAGING_NODE_ACCESS_KEY }}
34
34
  access-secret: ${{ secrets.STAGING_NODE_ACCESS_SECRET }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -67,9 +67,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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
 
@@ -61,9 +61,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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
 
@@ -61,9 +61,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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
 
@@ -61,9 +61,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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
 
@@ -61,9 +61,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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
 
@@ -61,9 +61,9 @@ After developing a blocklet, you may need to bundle it. Use `npm run bundle` com
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 abtnode. 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