@abtnode/webapp 1.16.8-next-bcc85536 → 1.16.8-next-3bd50116
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 +18 -19
- package/blocklet.js +1 -1
- package/package.json +212 -6
- package/blocklet.yml +0 -36
- 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,29 +123,28 @@ 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
|
-
|
|
136
|
-
2. Run command `<blocklet-server-source-dir>/core/cli/tools/dev.js` (Replace `<blocklet-server-source-dir>` to your custom folder)
|
|
134
|
+
1. Goto blocklet root dir
|
|
135
|
+
2. Run command `<blocklet-server-source-dir>/core/cli/tools/dev.js` (Replace `<blocklet-server-source-dir>` to your custom folder)
|
|
137
136
|
|
|
138
137
|
Create a link for dev.js
|
|
139
138
|
|
|
140
|
-
1.
|
|
141
|
-
2.
|
|
139
|
+
1. Run command `ln -s <blocklet-server-source-dir>/core/cli/tools/dev.js /usr/local/bin/bn-dev`
|
|
140
|
+
2. Then you can use `bn-dev` to develop blocklet in dev server
|
|
142
141
|
|
|
143
142
|
### Deploy blocklet to dev server
|
|
144
143
|
|
|
145
|
-
1.
|
|
146
|
-
2.
|
|
147
|
-
3.
|
|
148
|
-
4.
|
|
144
|
+
1. Create an access key pair in Server Dashboard
|
|
145
|
+
2. Goto blocklet root dir
|
|
146
|
+
3. Bundle your blocklet
|
|
147
|
+
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>`
|
|
149
148
|
|
|
150
149
|
### Run migration for dev server
|
|
151
150
|
|