create-blocklet 0.6.2 → 0.6.5
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/index.js +5 -0
- package/package.json +5 -5
- package/templates/docsite/package.json +2 -2
- package/templates/express-api/package.json +5 -5
- package/templates/html-static/package.json +2 -2
- package/templates/monorepo/package.json +3 -3
- package/templates/nestjs-api/.eslintrc.js +24 -0
- package/templates/nestjs-api/README.md +142 -0
- package/templates/nestjs-api/api/app.controller.ts +12 -0
- package/templates/nestjs-api/api/app.module.ts +10 -0
- package/templates/nestjs-api/api/app.service.ts +23 -0
- package/templates/nestjs-api/api/hooks/pre-start.js +33 -0
- package/templates/nestjs-api/api/libs/auth.js +22 -0
- package/templates/nestjs-api/api/libs/env.js +6 -0
- package/templates/nestjs-api/api/libs/logger.js +3 -0
- package/templates/nestjs-api/api/main.ts +13 -0
- package/templates/nestjs-api/blocklet.md +3 -0
- package/templates/nestjs-api/blocklet.yml +54 -0
- package/templates/nestjs-api/nest-cli.json +8 -0
- package/templates/nestjs-api/package.json +66 -0
- package/templates/nestjs-api/template-info.json +11 -0
- package/templates/nestjs-api/tsconfig.build.json +4 -0
- package/templates/nestjs-api/tsconfig.json +16 -0
- package/templates/nextjs-dapp/package.json +7 -7
- package/templates/react-dapp/package.json +11 -11
- package/templates/react-dapp-ts/package.json +13 -13
- package/templates/react-gun-dapp/package.json +11 -11
- package/templates/react-static/package.json +6 -6
- package/templates/solidjs-dapp/package.json +11 -11
- package/templates/solidjs-static/package.json +6 -6
- package/templates/svelte-dapp/package.json +11 -11
- package/templates/svelte-static/package.json +6 -6
- package/templates/vue-dapp/package.json +12 -12
- package/templates/vue-static/package.json +7 -7
- package/templates/vue2-dapp/package.json +11 -11
- package/templates/vue2-static/package.json +6 -6
- package/templates/website/package.json +2 -2
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-blocklet",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"exports": "./index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "git@github.com:blocklet/create-blocklet.git",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"test:run": "vitest run"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcblock/did": "^1.18.
|
|
33
|
-
"@ocap/mcrypto": "^1.18.
|
|
34
|
-
"@ocap/util": "^1.18.
|
|
32
|
+
"@arcblock/did": "^1.18.78",
|
|
33
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
34
|
+
"@ocap/util": "^1.18.78",
|
|
35
35
|
"boxen": "^6.2.1",
|
|
36
36
|
"ejs": "^3.1.9",
|
|
37
37
|
"envfile": "^6.18.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@arcblock/eslint-config-base": "0.2.2",
|
|
49
|
-
"eslint": "^8.
|
|
49
|
+
"eslint": "^8.40.0",
|
|
50
50
|
"prettier": "^2.8.8",
|
|
51
51
|
"vitest": "^0.19.1"
|
|
52
52
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
13
13
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
14
14
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
15
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
15
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@xmark/cli": "^2.5.4",
|
|
19
19
|
"@xmark/theme-docs": "^2.5.4",
|
|
20
20
|
"bumpp": "^8.2.1",
|
|
21
21
|
"rimraf": "^3.0.2",
|
|
22
|
-
"zx": "^7.2.
|
|
22
|
+
"zx": "^7.2.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"lint-staged": {
|
|
21
21
|
"*.{mjs,js,ts}": [
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
34
|
-
"@blocklet/sdk": "^1.16.
|
|
35
|
-
"@ocap/client": "^1.18.
|
|
34
|
+
"@blocklet/sdk": "^1.16.7",
|
|
35
|
+
"@ocap/client": "^1.18.78",
|
|
36
36
|
"dotenv-flow": "^3.2.0",
|
|
37
37
|
"express": "^4.18.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@arcblock/eslint-config-base": "^0.2.3",
|
|
41
41
|
"bumpp": "^8.2.1",
|
|
42
|
-
"eslint": "^8.
|
|
42
|
+
"eslint": "^8.40.0",
|
|
43
43
|
"husky": "^8.0.3",
|
|
44
44
|
"lint-staged": "^12.5.0",
|
|
45
45
|
"nodemon": "^2.0.22",
|
|
46
46
|
"prettier": "^2.8.8",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
|
-
"zx": "^7.2.
|
|
48
|
+
"zx": "^7.2.2"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
10
10
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
11
11
|
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
12
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
12
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"bumpp": "^8.2.1",
|
|
19
19
|
"rimraf": "^3.0.2",
|
|
20
|
-
"zx": "^7.2.
|
|
20
|
+
"zx": "^7.2.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lint:fix": "lerna run lint:fix",
|
|
17
17
|
"build": "lerna run clean && lerna run build",
|
|
18
18
|
"clean": "lerna clean && lerna run clean",
|
|
19
|
-
"bump-version": "zx scripts/bump-version.mjs
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs",
|
|
20
20
|
"update:deps": "lerna exec --no-bail -- \"ncu -u -f /arcblock\\|ocap\\|abtnode\\|blocklet\\|did-connect/\" && lerna bootstrap && npx yarn-deduplicate yarn.lock && yarn"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [],
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@arcblock/eslint-config": "0.2.2",
|
|
27
27
|
"bumpp": "^7.2.0",
|
|
28
|
-
"eslint": "^8.
|
|
28
|
+
"eslint": "^8.40.0",
|
|
29
29
|
"husky": "^4.3.8",
|
|
30
30
|
"prettier": "^2.8.8",
|
|
31
|
-
"zx": "^7.2.
|
|
31
|
+
"zx": "^7.2.2"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
+
root: true,
|
|
10
|
+
extends: '@arcblock/eslint-config-base',
|
|
11
|
+
globals: {
|
|
12
|
+
logger: true,
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
'no-console': 'off',
|
|
16
|
+
'no-restricted-syntax': [
|
|
17
|
+
'error',
|
|
18
|
+
{
|
|
19
|
+
selector: "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
|
|
20
|
+
message: 'Unexpected property on console object was called',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Getting Started with Create Blocklet
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create Blocklet](https://github.com/blocklet/create-blocklet).
|
|
4
|
+
|
|
5
|
+
This blocklet is a dapp project, which means this is a full-stack application. It's contained both `server` and `client` code.
|
|
6
|
+
|
|
7
|
+
## File Structure
|
|
8
|
+
|
|
9
|
+
- screenshots/ - Screenshots
|
|
10
|
+
- api/ - Api side code
|
|
11
|
+
- hooks/ - blocklet lifecycle hooks
|
|
12
|
+
- libs/ - Api side libraries
|
|
13
|
+
- main.ts - Api side entry point
|
|
14
|
+
- .prettierrc - Prettier configuration
|
|
15
|
+
- blocklet.md - Blocklet README
|
|
16
|
+
- blocklet.yml - Blocklet configuration
|
|
17
|
+
- LICENSE - License file
|
|
18
|
+
- logo.png - Blocklet logo file
|
|
19
|
+
- Makefile - Makefile
|
|
20
|
+
- package.json - Npm package file
|
|
21
|
+
- README.md - A guide for this blocklet
|
|
22
|
+
- version - Version file
|
|
23
|
+
|
|
24
|
+
## Development
|
|
25
|
+
|
|
26
|
+
1. Make sure you have [@blocklet/cli](https://www.npmjs.com/package/@blocklet/cli) installed
|
|
27
|
+
|
|
28
|
+
Blocklet needs blocklet server as a dependency. So you need to install it first.
|
|
29
|
+
`npm install -g @blocklet/cli`
|
|
30
|
+
See details in [https://developer.blocklet.io/docs/en/quick-start/blocklet-server#use-the-binary-distribution](https://developer.blocklet.io/docs/en/quick-start/blocklet-server#use-the-binary-distribution)
|
|
31
|
+
|
|
32
|
+
2. Init blocklet server & start blocklet server
|
|
33
|
+
|
|
34
|
+
Before starting an blocklet server, you need to init blocklet server.
|
|
35
|
+
`blocklet server init --mode=debug`
|
|
36
|
+
`blocklet server start`
|
|
37
|
+
See details in [https://developer.blocklet.io/docs/en/quick-start/blocklet-server](https://developer.blocklet.io/docs/en/quick-start/blocklet-server)
|
|
38
|
+
|
|
39
|
+
3. Go to the project directory `cd [name]`
|
|
40
|
+
4. Install dependencies: `npm install` or `yarn`
|
|
41
|
+
5. Start development server: `blocklet dev`
|
|
42
|
+
|
|
43
|
+
## Bundle
|
|
44
|
+
|
|
45
|
+
After developing a blocklet, you may need to bundle it. Use `npm run bundle` command.
|
|
46
|
+
|
|
47
|
+
## Deploy
|
|
48
|
+
|
|
49
|
+
- 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).
|
|
50
|
+
> Or you can simply use `npm run deploy` command.
|
|
51
|
+
- If you want to deploy this blocklet to remote blocklet server, you can use the command below.
|
|
52
|
+
|
|
53
|
+
```shell
|
|
54
|
+
blocklet deploy .blocklet/bundle --endpoint {your blocklet server url} --access-key {blocklet server access key} --access-secret {blocklet server access secret}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
> Make sure the blocklet is bundled before deployment.
|
|
58
|
+
|
|
59
|
+
## Upload to blocklet store
|
|
60
|
+
|
|
61
|
+
- If you want to upload the blocklet to any store for other users to download and use, you can following the following instructions.
|
|
62
|
+
|
|
63
|
+
Bump version at first.
|
|
64
|
+
|
|
65
|
+
```shell
|
|
66
|
+
make bump-version
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Then config blocklet store url.
|
|
70
|
+
You can use those store url in below.
|
|
71
|
+
|
|
72
|
+
1. [https://store.blocklet.dev/](https://store.blocklet.dev/)
|
|
73
|
+
2. [https://dev.store.blocklet.dev/](https://dev.store.blocklet.dev/)
|
|
74
|
+
3. A blocklet store started by yourself.
|
|
75
|
+
> 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)
|
|
76
|
+
|
|
77
|
+
```shell
|
|
78
|
+
blocklet config set store {store url}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Get a `accessToken` by using this command.
|
|
82
|
+
|
|
83
|
+
> Why we need a `accessToken`?
|
|
84
|
+
> A `accessToken` is genrate by blocklet store, which help us upload our blocklet to any store.
|
|
85
|
+
|
|
86
|
+
Set `accessToken` to blocklet config
|
|
87
|
+
|
|
88
|
+
```shell
|
|
89
|
+
blocklet config set accessToken {accessToken}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Upload a new version to a store.
|
|
93
|
+
|
|
94
|
+
> Make sure the blocklet is bundled before upload.
|
|
95
|
+
|
|
96
|
+
```shell
|
|
97
|
+
blocklet upload
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Or you can simply use `npm run upload` command.
|
|
101
|
+
|
|
102
|
+
- You also can upload a new version to a store by Github CI.
|
|
103
|
+
Bump version at first.
|
|
104
|
+
|
|
105
|
+
```shell
|
|
106
|
+
make bump-version
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Push your code to Github main/master branch, or make a pull request to the main/master branch.
|
|
110
|
+
The CI workflow will automatically upload a new version to a store.
|
|
111
|
+
|
|
112
|
+
## Q & A
|
|
113
|
+
|
|
114
|
+
1. Q: How to change a blocklet's name?
|
|
115
|
+
|
|
116
|
+
A: Change the `name` field in the `package.json` file, change the `name` field in the `blocklet.yml` file.
|
|
117
|
+
|
|
118
|
+
You can also change the `title` field and `description` field in the `blocklet.yml` file.
|
|
119
|
+
|
|
120
|
+
Run `blocklet meta` command, you will get a `did` config, copy the `did` value.
|
|
121
|
+
|
|
122
|
+
Replace this command `"bundle:client": "PUBLIC_URL='/.blocklet/proxy/{did}' npm run build",` in `package.json`
|
|
123
|
+
|
|
124
|
+
Replace `did` field in the `blocklet.yml`
|
|
125
|
+
|
|
126
|
+
2. Q: How to change a blocklet's logo?
|
|
127
|
+
|
|
128
|
+
Change the `logo.png` file root folder.
|
|
129
|
+
|
|
130
|
+
Or you can change the `logo` field in the `blocklet.yml` file.
|
|
131
|
+
|
|
132
|
+
> Make sure you have added the logo path to the `blocklet.yml` file `files` field.
|
|
133
|
+
|
|
134
|
+
## Learn More
|
|
135
|
+
|
|
136
|
+
- 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)
|
|
137
|
+
- Full document of Blocklet Server & blocklet development: [https://developer.blocklet.io/docs/en](https://developer.blocklet.io/docs/en)
|
|
138
|
+
|
|
139
|
+
## License
|
|
140
|
+
|
|
141
|
+
The code is licensed under the Apache 2.0 license found in the
|
|
142
|
+
[LICENSE](LICENSE) file.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Controller, Get } from '@nestjs/common';
|
|
2
|
+
import { AppService } from './app.service';
|
|
3
|
+
|
|
4
|
+
@Controller()
|
|
5
|
+
export class AppController {
|
|
6
|
+
constructor(private readonly appService: AppService) {}
|
|
7
|
+
|
|
8
|
+
@Get()
|
|
9
|
+
getHello(): string {
|
|
10
|
+
return this.appService.getHello();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
const env = require('@blocklet/sdk/lib/env');
|
|
3
|
+
const environment = {
|
|
4
|
+
...env,
|
|
5
|
+
chainHost: process.env.CHAIN_HOST || '',
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
@Injectable()
|
|
9
|
+
export class AppService {
|
|
10
|
+
getHello(): string {
|
|
11
|
+
return `
|
|
12
|
+
<div style="display:flex;flex-direction:column;align-items:center;padding:64px 0;">
|
|
13
|
+
<h1 style="margin:64px 0;">
|
|
14
|
+
<span style="display:inline-block;padding:8px 24px;background:#1dc1c7;color:#fff;">Blocklet</span>
|
|
15
|
+
<span style="color:#777;">+ NestJS</span>
|
|
16
|
+
</h1>
|
|
17
|
+
<pre>
|
|
18
|
+
${JSON.stringify(environment, null, 2)}
|
|
19
|
+
</pre>
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require('@blocklet/sdk/lib/error-handler');
|
|
2
|
+
require('dotenv-flow').config();
|
|
3
|
+
|
|
4
|
+
const Client = require('@ocap/client');
|
|
5
|
+
|
|
6
|
+
const env = require('../libs/env');
|
|
7
|
+
const logger = require('../libs/logger');
|
|
8
|
+
const { wallet } = require('../libs/auth');
|
|
9
|
+
const { name } = require('../../package.json');
|
|
10
|
+
|
|
11
|
+
const ensureAccountDeclared = async () => {
|
|
12
|
+
if (env.isComponent) return;
|
|
13
|
+
if (!env.chainHost) return;
|
|
14
|
+
|
|
15
|
+
const client = new Client(env.chainHost);
|
|
16
|
+
const { state } = await client.getAccountState({ address: wallet.toAddress() }, { ignoreFields: ['context'] });
|
|
17
|
+
if (!state) {
|
|
18
|
+
const hash = await client.declare({ moniker: name, wallet });
|
|
19
|
+
logger.log(`app account declared on chain ${env.chainHost}`, hash);
|
|
20
|
+
} else {
|
|
21
|
+
logger.log(`app account already declared on chain ${env.chainHost}`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
(async () => {
|
|
26
|
+
try {
|
|
27
|
+
await ensureAccountDeclared();
|
|
28
|
+
process.exit(0);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
logger.error(`${name} pre-start error`, err.message);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
})();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const AuthStorage = require('@arcblock/did-auth-storage-nedb');
|
|
3
|
+
const getWallet = require('@blocklet/sdk/lib/wallet');
|
|
4
|
+
const WalletAuthenticator = require('@blocklet/sdk/lib/wallet-authenticator');
|
|
5
|
+
const WalletHandler = require('@blocklet/sdk/lib/wallet-handler');
|
|
6
|
+
|
|
7
|
+
const env = require('./env');
|
|
8
|
+
|
|
9
|
+
const wallet = getWallet();
|
|
10
|
+
const authenticator = new WalletAuthenticator();
|
|
11
|
+
const handlers = new WalletHandler({
|
|
12
|
+
authenticator,
|
|
13
|
+
tokenStorage: new AuthStorage({
|
|
14
|
+
dbPath: path.join(env.dataDir, 'auth.db'),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = {
|
|
19
|
+
authenticator,
|
|
20
|
+
handlers,
|
|
21
|
+
wallet,
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NestFactory } from '@nestjs/core';
|
|
2
|
+
import { AppModule } from './app.module';
|
|
3
|
+
|
|
4
|
+
const port = process.env.BLOCKLET_PORT || process.env.PORT || 3000;
|
|
5
|
+
|
|
6
|
+
async function bootstrap() {
|
|
7
|
+
const app = await NestFactory.create(AppModule, {
|
|
8
|
+
logger: false,
|
|
9
|
+
});
|
|
10
|
+
await app.listen(port);
|
|
11
|
+
console.log(`Blocklet app listening on port ${port}`);
|
|
12
|
+
}
|
|
13
|
+
bootstrap();
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: template-nestjs
|
|
2
|
+
title: Blocklet Template NestJS
|
|
3
|
+
description: A Blocklet Api blocklet
|
|
4
|
+
keywords:
|
|
5
|
+
- blocklet
|
|
6
|
+
- nestjs
|
|
7
|
+
group: dapp
|
|
8
|
+
did: ''
|
|
9
|
+
main: dist/main.js
|
|
10
|
+
author:
|
|
11
|
+
name: Blocklet
|
|
12
|
+
email: blocklet@arcblock.io
|
|
13
|
+
repository:
|
|
14
|
+
type: git
|
|
15
|
+
url: 'git+https://github.com/blocklet/create-blocklet.git'
|
|
16
|
+
specVersion: 1.1.1
|
|
17
|
+
version: 0.1.0
|
|
18
|
+
logo: logo.png
|
|
19
|
+
files:
|
|
20
|
+
- logo.png
|
|
21
|
+
- screenshots
|
|
22
|
+
- dist
|
|
23
|
+
interfaces:
|
|
24
|
+
- type: web
|
|
25
|
+
name: publicUrl
|
|
26
|
+
path: /
|
|
27
|
+
prefix: '*'
|
|
28
|
+
port: BLOCKLET_PORT
|
|
29
|
+
protocol: http
|
|
30
|
+
community: ''
|
|
31
|
+
documentation: ''
|
|
32
|
+
homepage: ''
|
|
33
|
+
license: ''
|
|
34
|
+
payment:
|
|
35
|
+
price: []
|
|
36
|
+
share: []
|
|
37
|
+
timeout:
|
|
38
|
+
start: 60
|
|
39
|
+
requirements:
|
|
40
|
+
server: '>=1.6.29'
|
|
41
|
+
os: '*'
|
|
42
|
+
cpu: '*'
|
|
43
|
+
scripts:
|
|
44
|
+
preStart: node api/hooks/pre-start.js
|
|
45
|
+
dev: npm run start
|
|
46
|
+
environments:
|
|
47
|
+
- name: CHAIN_HOST
|
|
48
|
+
description: What's endpoint of the chain?
|
|
49
|
+
required: true
|
|
50
|
+
default: 'https://beta.abtnetwork.io/api/'
|
|
51
|
+
secure: false
|
|
52
|
+
capabilities: {}
|
|
53
|
+
screenshots: []
|
|
54
|
+
components: []
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nestjs",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "api/main.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"lint": "eslint api --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
8
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
|
+
"build": "nest build",
|
|
10
|
+
"dev": "blocklet dev",
|
|
11
|
+
"start": "NODE_ENV=development && nest start --watch",
|
|
12
|
+
"clean": "node scripts/build-clean.js",
|
|
13
|
+
"bundle": "npm run clean && blocklet bundle --zip --create-release",
|
|
14
|
+
"deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
|
|
15
|
+
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
16
|
+
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
17
|
+
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
18
|
+
"prepare": "husky install",
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
20
|
+
},
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"*.{mjs,js,ts}": [
|
|
23
|
+
"prettier --write",
|
|
24
|
+
"eslint"
|
|
25
|
+
],
|
|
26
|
+
"*.{css,less,scss,json,graphql}": [
|
|
27
|
+
"prettier --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"keywords": [],
|
|
31
|
+
"author": "",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
35
|
+
"@blocklet/sdk": "^1.16.7",
|
|
36
|
+
"@ocap/client": "^1.18.78",
|
|
37
|
+
"@nestjs/common": "^9.0.0",
|
|
38
|
+
"@nestjs/core": "^9.0.5",
|
|
39
|
+
"@nestjs/platform-express": "^9.0.0",
|
|
40
|
+
"dotenv-flow": "^3.2.0",
|
|
41
|
+
"express": "^4.18.2",
|
|
42
|
+
"reflect-metadata": "^0.1.13",
|
|
43
|
+
"rxjs": "^7.5.5"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@arcblock/eslint-config-base": "^0.2.3",
|
|
47
|
+
"@nestjs/cli": "^9.0.0",
|
|
48
|
+
"@nestjs/schematics": "^9.0.0",
|
|
49
|
+
"@types/express": "^4.17.13",
|
|
50
|
+
"@types/node": "^18.0.3",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
52
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
53
|
+
"bumpp": "^8.2.1",
|
|
54
|
+
"eslint": "^8.40.0",
|
|
55
|
+
"husky": "^8.0.3",
|
|
56
|
+
"lint-staged": "^12.5.0",
|
|
57
|
+
"nodemon": "^2.0.22",
|
|
58
|
+
"prettier": "^2.8.8",
|
|
59
|
+
"rimraf": "^3.0.2",
|
|
60
|
+
"source-map-support": "^0.5.21",
|
|
61
|
+
"ts-node": "^10.8.2",
|
|
62
|
+
"tsconfig-paths": "^4.0.0",
|
|
63
|
+
"typescript": "^4.7.4",
|
|
64
|
+
"zx": "^7.2.2"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nestjs-api",
|
|
3
|
+
"desc": { "en": "A server-side API application built on NestJS", "zh": "一个基于 NestJS 构建的服务端 API 应用" },
|
|
4
|
+
"displayName": "NestJS API",
|
|
5
|
+
"blockletType": "dapp",
|
|
6
|
+
"composable": true,
|
|
7
|
+
"framework": "NestJS",
|
|
8
|
+
"languages": "TypeScript",
|
|
9
|
+
"useCase": "Server Side Application",
|
|
10
|
+
"author": "Vincent Medina"
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"removeComments": true,
|
|
6
|
+
"emitDecoratorMetadata": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"target": "ES2019",
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"outDir": "./dist",
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"incremental": true,
|
|
14
|
+
"skipLibCheck": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
17
17
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
18
18
|
"prepare": "husky install",
|
|
19
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
20
20
|
},
|
|
21
21
|
"lint-staged": {
|
|
22
22
|
"*.{mjs,js,jsx,ts,tsx}": [
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arcblock/did-auth": "^1.18.
|
|
31
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
32
32
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
33
|
-
"@blocklet/sdk": "^1.16.
|
|
34
|
-
"@ocap/client": "^1.18.
|
|
35
|
-
"@ocap/mcrypto": "^1.18.
|
|
36
|
-
"@ocap/wallet": "^1.18.
|
|
33
|
+
"@blocklet/sdk": "^1.16.7",
|
|
34
|
+
"@ocap/client": "^1.18.78",
|
|
35
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
36
|
+
"@ocap/wallet": "^1.18.78",
|
|
37
37
|
"dotenv-flow": "^3.2.0",
|
|
38
38
|
"express": "^4.18.2",
|
|
39
39
|
"next": "12.2.3",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"nodemon": "^2.0.22",
|
|
50
50
|
"npm-run-all": "^4.1.5",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
|
-
"zx": "^7.2.
|
|
52
|
+
"zx": "^7.2.2"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
17
17
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
18
18
|
"prepare": "husky install",
|
|
19
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
20
20
|
},
|
|
21
21
|
"lint-staged": {
|
|
22
22
|
"*.{mjs,js,jsx,ts,tsx}": [
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did-auth": "^1.18.
|
|
43
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@blocklet/sdk": "^1.16.
|
|
46
|
-
"@ocap/client": "^1.18.
|
|
47
|
-
"@ocap/mcrypto": "^1.18.
|
|
48
|
-
"@ocap/wallet": "^1.18.
|
|
45
|
+
"@blocklet/sdk": "^1.16.7",
|
|
46
|
+
"@ocap/client": "^1.18.78",
|
|
47
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
48
|
+
"@ocap/wallet": "^1.18.78",
|
|
49
49
|
"axios": "^0.27.2",
|
|
50
50
|
"compression": "^1.7.4",
|
|
51
51
|
"cookie-parser": "^1.4.6",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"express-history-api-fallback": "^2.2.1",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
|
-
"react-router-dom": "^6.
|
|
59
|
+
"react-router-dom": "^6.11.1",
|
|
60
60
|
"rimraf": "^3.0.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
"@vitejs/plugin-react": "^2.2.0",
|
|
65
65
|
"bumpp": "^8.2.1",
|
|
66
66
|
"cross-env": "^7.0.3",
|
|
67
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.40.0",
|
|
68
68
|
"husky": "^8.0.3",
|
|
69
69
|
"lint-staged": "^12.5.0",
|
|
70
70
|
"nodemon": "^2.0.22",
|
|
71
71
|
"npm-run-all": "^4.1.5",
|
|
72
72
|
"prettier": "^2.8.8",
|
|
73
|
-
"vite": "^3.
|
|
74
|
-
"vite-plugin-blocklet": "^0.6.
|
|
73
|
+
"vite": "^4.3.5",
|
|
74
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
75
75
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
76
76
|
"vite-plugin-svgr": "^2.4.0",
|
|
77
|
-
"zx": "^7.2.
|
|
77
|
+
"zx": "^7.2.2"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcblock/did-auth": "^1.18.
|
|
41
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
42
42
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
43
|
-
"@blocklet/sdk": "^1.16.
|
|
44
|
-
"@ocap/client": "^1.18.
|
|
45
|
-
"@ocap/mcrypto": "^1.18.
|
|
46
|
-
"@ocap/wallet": "^1.18.
|
|
43
|
+
"@blocklet/sdk": "^1.16.7",
|
|
44
|
+
"@ocap/client": "^1.18.78",
|
|
45
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
46
|
+
"@ocap/wallet": "^1.18.78",
|
|
47
47
|
"axios": "^0.27.2",
|
|
48
48
|
"compression": "^1.7.4",
|
|
49
49
|
"cookie-parser": "^1.4.6",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"express-history-api-fallback": "^2.2.1",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
|
-
"react-router-dom": "^6.
|
|
57
|
+
"react-router-dom": "^6.11.1",
|
|
58
58
|
"rimraf": "^3.0.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"@types/cors": "^2.8.13",
|
|
66
66
|
"@types/dotenv-flow": "^3.2.0",
|
|
67
67
|
"@types/express": "^4.17.17",
|
|
68
|
-
"@types/node": "^18.16.
|
|
69
|
-
"@types/react": "^18.
|
|
70
|
-
"@types/react-dom": "^18.
|
|
68
|
+
"@types/node": "^18.16.8",
|
|
69
|
+
"@types/react": "^18.2.6",
|
|
70
|
+
"@types/react-dom": "^18.2.4",
|
|
71
71
|
"@vitejs/plugin-react": "^2.2.0",
|
|
72
72
|
"bumpp": "^8.2.1",
|
|
73
73
|
"cross-env": "^7.0.3",
|
|
74
|
-
"eslint": "^8.
|
|
74
|
+
"eslint": "^8.40.0",
|
|
75
75
|
"husky": "^8.0.3",
|
|
76
76
|
"import-sort-style-module": "^6.0.0",
|
|
77
77
|
"lint-staged": "^12.5.0",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
82
82
|
"ts-node": "^10.9.1",
|
|
83
83
|
"typescript": "^4.9.5",
|
|
84
|
-
"vite": "^3.
|
|
85
|
-
"vite-plugin-blocklet": "^0.6.
|
|
84
|
+
"vite": "^4.3.5",
|
|
85
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
86
86
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
87
87
|
"vite-plugin-svgr": "^2.4.0",
|
|
88
|
-
"zx": "^7.2.
|
|
88
|
+
"zx": "^7.2.2"
|
|
89
89
|
},
|
|
90
90
|
"importSort": {
|
|
91
91
|
".js, .jsx, .mjs": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
17
17
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
18
18
|
"prepare": "husky install",
|
|
19
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
20
20
|
},
|
|
21
21
|
"lint-staged": {
|
|
22
22
|
"*.{mjs,js,jsx,ts,tsx}": [
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did-auth": "^1.18.
|
|
43
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@blocklet/sdk": "^1.16.
|
|
46
|
-
"@ocap/client": "^1.18.
|
|
47
|
-
"@ocap/mcrypto": "^1.18.
|
|
48
|
-
"@ocap/wallet": "^1.18.
|
|
45
|
+
"@blocklet/sdk": "^1.16.7",
|
|
46
|
+
"@ocap/client": "^1.18.78",
|
|
47
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
48
|
+
"@ocap/wallet": "^1.18.78",
|
|
49
49
|
"axios": "^0.27.2",
|
|
50
50
|
"compression": "^1.7.4",
|
|
51
51
|
"cookie-parser": "^1.4.6",
|
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
"gun": "^0.2020.1239",
|
|
58
58
|
"react": "^18.2.0",
|
|
59
59
|
"react-dom": "^18.2.0",
|
|
60
|
-
"react-router-dom": "^6.
|
|
60
|
+
"react-router-dom": "^6.11.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@arcblock/eslint-config": "^0.2.3",
|
|
64
64
|
"@vitejs/plugin-react": "^2.2.0",
|
|
65
65
|
"bumpp": "^8.2.1",
|
|
66
66
|
"cross-env": "^7.0.3",
|
|
67
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.40.0",
|
|
68
68
|
"husky": "^8.0.3",
|
|
69
69
|
"lint-staged": "^12.5.0",
|
|
70
70
|
"nodemon": "^2.0.22",
|
|
71
71
|
"npm-run-all": "^4.1.5",
|
|
72
72
|
"prettier": "^2.8.8",
|
|
73
73
|
"rimraf": "^3.0.2",
|
|
74
|
-
"vite": "^3.
|
|
75
|
-
"vite-plugin-blocklet": "^0.6.
|
|
74
|
+
"vite": "^4.3.5",
|
|
75
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
76
76
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
77
77
|
"vite-plugin-svgr": "^2.4.0",
|
|
78
|
-
"zx": "^7.2.
|
|
78
|
+
"zx": "^7.2.2"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"lint-staged": {
|
|
21
21
|
"*.{mjs,js,jsx,ts,tsx}": [
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"react": "^18.2.0",
|
|
43
43
|
"react-dom": "^18.2.0",
|
|
44
|
-
"react-router-dom": "^6.
|
|
44
|
+
"react-router-dom": "^6.11.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@arcblock/eslint-config": "^0.2.3",
|
|
48
48
|
"@vitejs/plugin-react": "^2.2.0",
|
|
49
49
|
"bumpp": "^8.2.1",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.40.0",
|
|
51
51
|
"husky": "^8.0.3",
|
|
52
52
|
"lint-staged": "^12.5.0",
|
|
53
53
|
"prettier": "^2.8.8",
|
|
54
54
|
"rimraf": "^3.0.2",
|
|
55
|
-
"vite": "^3.
|
|
56
|
-
"vite-plugin-blocklet": "^0.6.
|
|
55
|
+
"vite": "^4.3.5",
|
|
56
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
57
57
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
58
58
|
"vite-plugin-svgr": "^2.4.0",
|
|
59
|
-
"zx": "^7.2.
|
|
59
|
+
"zx": "^7.2.2"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
17
17
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
18
18
|
"prepare": "husky install",
|
|
19
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
19
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"bumpp": "^8.2.1",
|
|
24
24
|
"cross-env": "^7.0.3",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.40.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
28
|
"eslint-plugin-solid": "0.7.1",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"npm-run-all": "^4.1.5",
|
|
33
33
|
"prettier": "^2.8.8",
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
35
|
-
"vite": "^3.
|
|
36
|
-
"vite-plugin-blocklet": "^0.6.
|
|
35
|
+
"vite": "^4.3.5",
|
|
36
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
37
37
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
38
38
|
"vite-plugin-solid": "^2.7.0",
|
|
39
|
-
"zx": "^7.2.
|
|
39
|
+
"zx": "^7.2.2"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@arcblock/did-auth": "^1.18.
|
|
42
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
43
43
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
44
|
-
"@blocklet/sdk": "^1.16.
|
|
45
|
-
"@ocap/client": "^1.18.
|
|
46
|
-
"@ocap/mcrypto": "^1.18.
|
|
47
|
-
"@ocap/wallet": "^1.18.
|
|
44
|
+
"@blocklet/sdk": "^1.16.7",
|
|
45
|
+
"@ocap/client": "^1.18.78",
|
|
46
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
47
|
+
"@ocap/wallet": "^1.18.78",
|
|
48
48
|
"axios": "^0.27.2",
|
|
49
49
|
"compression": "^1.7.4",
|
|
50
50
|
"cookie-parser": "^1.4.6",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"express": "^4.18.2",
|
|
54
54
|
"express-async-errors": "^3.1.1",
|
|
55
55
|
"express-history-api-fallback": "^2.2.1",
|
|
56
|
-
"solid-js": "^1.7.
|
|
56
|
+
"solid-js": "^1.7.5"
|
|
57
57
|
},
|
|
58
58
|
"lint-staged": {
|
|
59
59
|
"*.{mjs,js,vue}": [
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bumpp": "^8.2.1",
|
|
23
|
-
"eslint": "^8.
|
|
23
|
+
"eslint": "^8.40.0",
|
|
24
24
|
"eslint-config-prettier": "^8.8.0",
|
|
25
25
|
"eslint-plugin-prettier": "^4.2.1",
|
|
26
26
|
"eslint-plugin-solid": "0.7.1",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"lint-staged": "^12.5.0",
|
|
29
29
|
"prettier": "^2.8.8",
|
|
30
30
|
"rimraf": "^3.0.2",
|
|
31
|
-
"vite": "^3.
|
|
32
|
-
"vite-plugin-blocklet": "^0.6.
|
|
31
|
+
"vite": "^4.3.5",
|
|
32
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
33
33
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
34
34
|
"vite-plugin-solid": "^2.7.0",
|
|
35
|
-
"zx": "^7.2.
|
|
35
|
+
"zx": "^7.2.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"solid-js": "^1.7.
|
|
38
|
+
"solid-js": "^1.7.5"
|
|
39
39
|
},
|
|
40
40
|
"lint-staged": {
|
|
41
41
|
"*.{mjs,js,vue}": [
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
15
15
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
16
16
|
"prepare": "husky install",
|
|
17
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
17
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@arcblock/did-auth": "^1.18.
|
|
20
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
21
21
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
22
|
-
"@blocklet/sdk": "^1.16.
|
|
23
|
-
"@ocap/client": "^1.18.
|
|
24
|
-
"@ocap/mcrypto": "^1.18.
|
|
25
|
-
"@ocap/wallet": "^1.18.
|
|
22
|
+
"@blocklet/sdk": "^1.16.7",
|
|
23
|
+
"@ocap/client": "^1.18.78",
|
|
24
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
25
|
+
"@ocap/wallet": "^1.18.78",
|
|
26
26
|
"axios": "^0.27.2",
|
|
27
27
|
"compression": "^1.7.4",
|
|
28
28
|
"cookie-parser": "^1.4.6",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@sveltejs/vite-plugin-svelte": "1.0.1",
|
|
37
37
|
"bumpp": "^8.2.1",
|
|
38
38
|
"cross-env": "^7.0.3",
|
|
39
|
-
"eslint": "^8.
|
|
39
|
+
"eslint": "^8.40.0",
|
|
40
40
|
"eslint-config-prettier": "^8.8.0",
|
|
41
41
|
"eslint-plugin-prettier": "^4.2.1",
|
|
42
42
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"npm-run-all": "^4.1.5",
|
|
46
46
|
"prettier": "^2.8.8",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
|
-
"svelte": "^3.
|
|
49
|
-
"vite": "^3.
|
|
50
|
-
"vite-plugin-blocklet": "^0.6.
|
|
48
|
+
"svelte": "^3.59.1",
|
|
49
|
+
"vite": "^4.3.5",
|
|
50
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
51
51
|
"vite-plugin-html": "^3.2.0",
|
|
52
52
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
53
|
-
"zx": "^7.2.
|
|
53
|
+
"zx": "^7.2.2"
|
|
54
54
|
},
|
|
55
55
|
"lint-staged": {
|
|
56
56
|
"*.{mjs,js,vue}": [
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@sveltejs/vite-plugin-svelte": "1.0.1",
|
|
22
22
|
"bumpp": "^8.2.1",
|
|
23
|
-
"eslint": "^8.
|
|
23
|
+
"eslint": "^8.40.0",
|
|
24
24
|
"eslint-config-prettier": "^8.8.0",
|
|
25
25
|
"eslint-plugin-prettier": "^4.2.1",
|
|
26
26
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"lint-staged": "^12.5.0",
|
|
29
29
|
"prettier": "^2.8.8",
|
|
30
30
|
"rimraf": "^3.0.2",
|
|
31
|
-
"svelte": "^3.
|
|
32
|
-
"vite": "^3.
|
|
33
|
-
"vite-plugin-blocklet": "^0.6.
|
|
31
|
+
"svelte": "^3.59.1",
|
|
32
|
+
"vite": "^4.3.5",
|
|
33
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
34
34
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
35
|
-
"zx": "^7.2.
|
|
35
|
+
"zx": "^7.2.2"
|
|
36
36
|
},
|
|
37
37
|
"lint-staged": {
|
|
38
38
|
"*.{mjs,js,vue}": [
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.18.
|
|
21
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
22
22
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
23
|
-
"@blocklet/sdk": "^1.16.
|
|
24
|
-
"@ocap/client": "^1.18.
|
|
25
|
-
"@ocap/mcrypto": "^1.18.
|
|
26
|
-
"@ocap/wallet": "^1.18.
|
|
23
|
+
"@blocklet/sdk": "^1.16.7",
|
|
24
|
+
"@ocap/client": "^1.18.78",
|
|
25
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
26
|
+
"@ocap/wallet": "^1.18.78",
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
28
|
"compression": "^1.7.4",
|
|
29
29
|
"cookie-parser": "^1.4.6",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"express": "^4.18.2",
|
|
33
33
|
"express-async-errors": "^3.1.1",
|
|
34
34
|
"express-history-api-fallback": "^2.2.1",
|
|
35
|
-
"vue": "^3.
|
|
35
|
+
"vue": "^3.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
39
39
|
"bumpp": "^8.2.1",
|
|
40
40
|
"cross-env": "^7.0.3",
|
|
41
|
-
"eslint": "^8.
|
|
41
|
+
"eslint": "^8.40.0",
|
|
42
42
|
"eslint-config-prettier": "^8.8.0",
|
|
43
43
|
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
-
"eslint-plugin-vue": "^9.
|
|
44
|
+
"eslint-plugin-vue": "^9.12.0",
|
|
45
45
|
"husky": "^8.0.3",
|
|
46
46
|
"lint-staged": "^12.5.0",
|
|
47
47
|
"nodemon": "^2.0.22",
|
|
48
48
|
"npm-run-all": "^4.1.5",
|
|
49
49
|
"prettier": "^2.8.8",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
|
-
"vite": "^3.
|
|
52
|
-
"vite-plugin-blocklet": "^0.6.
|
|
51
|
+
"vite": "^4.3.5",
|
|
52
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
53
53
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
54
|
-
"zx": "^7.2.
|
|
54
|
+
"zx": "^7.2.2"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.{mjs,js,vue}": [
|
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
15
15
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
16
16
|
"prepare": "husky install",
|
|
17
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
17
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"vue": "^3.
|
|
20
|
+
"vue": "^3.3.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
24
24
|
"bumpp": "^8.2.1",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.40.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
|
-
"eslint-plugin-vue": "^9.
|
|
28
|
+
"eslint-plugin-vue": "^9.12.0",
|
|
29
29
|
"husky": "^8.0.3",
|
|
30
30
|
"lint-staged": "^12.5.0",
|
|
31
31
|
"prettier": "^2.8.8",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
|
-
"vite": "^3.
|
|
34
|
-
"vite-plugin-blocklet": "^0.6.
|
|
33
|
+
"vite": "^4.3.5",
|
|
34
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
35
35
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
36
|
-
"zx": "^7.2.
|
|
36
|
+
"zx": "^7.2.2"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|
|
39
39
|
"*.{mjs,js,vue}": [
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
16
16
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
17
17
|
"prepare": "husky install",
|
|
18
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
18
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.18.
|
|
21
|
+
"@arcblock/did-auth": "^1.18.78",
|
|
22
22
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
23
|
-
"@blocklet/sdk": "^1.16.
|
|
24
|
-
"@ocap/client": "^1.18.
|
|
25
|
-
"@ocap/mcrypto": "^1.18.
|
|
26
|
-
"@ocap/wallet": "^1.18.
|
|
23
|
+
"@blocklet/sdk": "^1.16.7",
|
|
24
|
+
"@ocap/client": "^1.18.78",
|
|
25
|
+
"@ocap/mcrypto": "^1.18.78",
|
|
26
|
+
"@ocap/wallet": "^1.18.78",
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
28
|
"compression": "^1.7.4",
|
|
29
29
|
"cookie-parser": "^1.4.6",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
39
39
|
"bumpp": "^8.2.1",
|
|
40
40
|
"cross-env": "^7.0.3",
|
|
41
|
-
"eslint": "^8.
|
|
41
|
+
"eslint": "^8.40.0",
|
|
42
42
|
"eslint-config-prettier": "^8.8.0",
|
|
43
43
|
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
-
"eslint-plugin-vue": "^9.
|
|
44
|
+
"eslint-plugin-vue": "^9.12.0",
|
|
45
45
|
"husky": "^8.0.3",
|
|
46
46
|
"lint-staged": "^12.5.0",
|
|
47
47
|
"nodemon": "^2.0.22",
|
|
48
48
|
"npm-run-all": "^4.1.5",
|
|
49
49
|
"prettier": "^2.8.8",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
|
-
"vite": "^3.
|
|
52
|
-
"vite-plugin-blocklet": "^0.6.
|
|
51
|
+
"vite": "^4.3.5",
|
|
52
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
53
53
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
54
|
-
"zx": "^7.2.
|
|
54
|
+
"zx": "^7.2.2"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.{mjs,js,vue}": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
15
15
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
16
16
|
"prepare": "husky install",
|
|
17
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
17
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"vue": "^2.7.14"
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
24
24
|
"bumpp": "^8.2.1",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.40.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
|
-
"eslint-plugin-vue": "^9.
|
|
28
|
+
"eslint-plugin-vue": "^9.12.0",
|
|
29
29
|
"husky": "^8.0.3",
|
|
30
30
|
"lint-staged": "^12.5.0",
|
|
31
31
|
"prettier": "^2.8.8",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
|
-
"vite": "^3.
|
|
34
|
-
"vite-plugin-blocklet": "^0.6.
|
|
33
|
+
"vite": "^4.3.5",
|
|
34
|
+
"vite-plugin-blocklet": "^0.6.5",
|
|
35
35
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
36
|
-
"zx": "^7.2.
|
|
36
|
+
"zx": "^7.2.2"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|
|
39
39
|
"*.{mjs,js,vue}": [
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
13
13
|
"deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
|
|
14
14
|
"dev:child": "blocklet dev --component --app-did=<%= did %>",
|
|
15
|
-
"bump-version": "zx scripts/bump-version.mjs"
|
|
15
|
+
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@xmark/cli": "^2.5.4",
|
|
19
19
|
"bumpp": "^8.2.1",
|
|
20
20
|
"rimraf": "^3.0.2",
|
|
21
|
-
"zx": "^7.2.
|
|
21
|
+
"zx": "^7.2.2"
|
|
22
22
|
}
|
|
23
23
|
}
|