@abtnode/webapp 1.16.8-next-3bd50116 → 1.16.8-next-20cc4536
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/README.md +19 -18
- package/blocklet.js +1 -1
- package/blocklet.yml +36 -0
- package/package.json +6 -212
- package/public/images/blocklet.png +0 -0
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
### Start Blocklet Server Develop Environment
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
9
|
+
1. create `.env.development` file, in the current(core/webapp) directory
|
|
10
|
+
2. copy follow texts to `.env.development`, change `ABT_NODE_BASE_URL` to your local lan ip
|
|
11
11
|
|
|
12
12
|
```ini
|
|
13
13
|
# CAUTION: this is required to eliminate create-react-scripts complainings
|
|
@@ -31,7 +31,7 @@ ABT_NODE_SERVICE_FE_PORT=""
|
|
|
31
31
|
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
3.
|
|
34
|
+
3. Start the client and server
|
|
35
35
|
|
|
36
36
|
```shell
|
|
37
37
|
|
|
@@ -61,9 +61,9 @@ Now, you are ready to hacking the Blocklet Server.
|
|
|
61
61
|
|
|
62
62
|
If you want to develop blocklet service client, additional action you need to do
|
|
63
63
|
|
|
64
|
-
1.
|
|
65
|
-
2.
|
|
66
|
-
3.
|
|
64
|
+
1. Set `ABT_NODE_SERVICE_FE_PORT="3040"` in `.env.development`
|
|
65
|
+
2. Start the client and server as same as above
|
|
66
|
+
3. Start Blocklet Service Client
|
|
67
67
|
|
|
68
68
|
```shell
|
|
69
69
|
cd core/blocklet-services
|
|
@@ -123,28 +123,29 @@ yarn test:e2e
|
|
|
123
123
|
|
|
124
124
|
Coverage for this package contains 3 parts:
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
* api: collected using jest, configured in `jest.config.js`, result in `coverage-api`
|
|
127
|
+
* src: collected using react-script, configured in `jest` in `package.json`, result in `coverage`
|
|
128
|
+
* e2e: collected using cypress, configured in `nyc` in `package.json`, result in `coverage-e2e`
|
|
129
129
|
|
|
130
130
|
### Develop blocklet in dev server
|
|
131
131
|
|
|
132
|
-
0.
|
|
132
|
+
0. Make sure your dev server is running
|
|
133
133
|
|
|
134
|
-
1.
|
|
135
|
-
|
|
134
|
+
1. Goto blocklet root dir
|
|
135
|
+
|
|
136
|
+
2. Run command `<blocklet-server-source-dir>/core/cli/tools/dev.js` (Replace `<blocklet-server-source-dir>` to your custom folder)
|
|
136
137
|
|
|
137
138
|
Create a link for dev.js
|
|
138
139
|
|
|
139
|
-
1.
|
|
140
|
-
2.
|
|
140
|
+
1. Run command `ln -s <blocklet-server-source-dir>/core/cli/tools/dev.js /usr/local/bin/bn-dev`
|
|
141
|
+
2. Then you can use `bn-dev` to develop blocklet in dev server
|
|
141
142
|
|
|
142
143
|
### Deploy blocklet to dev server
|
|
143
144
|
|
|
144
|
-
1.
|
|
145
|
-
2.
|
|
146
|
-
3.
|
|
147
|
-
4.
|
|
145
|
+
1. Create an access key pair in Server Dashboard
|
|
146
|
+
2. Goto blocklet root dir
|
|
147
|
+
3. Bundle your blocklet
|
|
148
|
+
4. Deploy to dev server: `bn deploy .blocklet/bundle --endpoint http://127.0.0.1:3030 --access-key <your-access-key> --access-secret <your-access-secret>`
|
|
148
149
|
|
|
149
150
|
### Run migration for dev server
|
|
150
151
|
|