create-blocklet 0.3.11 → 0.3.14
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/common/_eslintrc.js +0 -8
- package/package.json +13 -22
- package/templates/blocklet-page-static/blocklet.yml +0 -2
- package/templates/blocklet-page-static/package.json +1 -1
- package/templates/express-api/blocklet.yml +0 -2
- package/templates/express-api/package.json +2 -2
- package/templates/html-static/README.md +142 -0
- package/templates/html-static/blocklet.yml +0 -2
- package/templates/html-static/package.json +3 -3
- package/templates/nextjs-dapp/blocklet.yml +0 -2
- package/templates/nextjs-dapp/next.config.js +1 -1
- package/templates/nextjs-dapp/package.json +9 -8
- package/templates/react-dapp/blocklet.yml +0 -2
- package/templates/react-dapp/package.json +11 -18
- package/templates/react-dapp/src/{app.js → app.jsx} +3 -6
- package/templates/{react-gun-dapp/src/index.js → react-dapp/src/index.jsx} +0 -3
- package/templates/react-dapp/src/pages/{about.js → about.jsx} +2 -3
- package/templates/react-dapp/src/pages/{home.js → home.jsx} +2 -3
- package/templates/react-gun-dapp/blocklet.yml +0 -2
- package/templates/react-gun-dapp/package.json +10 -18
- package/templates/react-gun-dapp/src/{app.js → app.jsx} +3 -6
- package/templates/{react-static/src/index.js → react-gun-dapp/src/index.jsx} +0 -3
- package/templates/react-gun-dapp/src/pages/{about.js → about.jsx} +2 -3
- package/templates/react-gun-dapp/src/pages/{home.js → home.jsx} +1 -1
- package/templates/react-static/blocklet.yml +0 -2
- package/templates/react-static/package.json +5 -13
- package/templates/react-static/src/{app.js → app.jsx} +3 -6
- package/templates/{react-dapp/src/index.js → react-static/src/index.jsx} +0 -3
- package/templates/react-static/src/pages/{about.js → about.jsx} +2 -3
- package/templates/react-static/src/pages/{home.js → home.jsx} +2 -3
- package/templates/solidjs-dapp/blocklet.yml +0 -2
- package/templates/solidjs-dapp/package.json +11 -10
- package/templates/solidjs-static/blocklet.yml +0 -2
- package/templates/solidjs-static/package.json +6 -5
- package/templates/svelte-dapp/blocklet.yml +0 -2
- package/templates/svelte-dapp/package.json +9 -9
- package/templates/svelte-static/blocklet.yml +0 -2
- package/templates/svelte-static/package.json +5 -4
- package/templates/vue-dapp/blocklet.yml +0 -2
- package/templates/vue-dapp/package.json +10 -9
- package/templates/vue-static/blocklet.yml +0 -2
- package/templates/vue-static/package.json +5 -4
- package/templates/vue2-dapp/blocklet.yml +0 -2
- package/templates/vue2-dapp/package.json +13 -12
- package/templates/vue2-static/blocklet.yml +0 -2
- package/templates/vue2-static/package.json +8 -7
- package/common/_eslintignore +0 -10
package/common/_eslintrc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-blocklet",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"exports": "./index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "git@github.com:blocklet/create-blocklet.git",
|
|
@@ -24,40 +24,31 @@
|
|
|
24
24
|
"homepage": "https://github.com/blocklet/create-blocklet/tree/main#readme",
|
|
25
25
|
"scripts": {
|
|
26
26
|
"lint": "eslint .",
|
|
27
|
-
"test": "vitest",
|
|
27
|
+
"test": "NODE_ENV=development vitest",
|
|
28
28
|
"test:ui": "vitest --ui",
|
|
29
29
|
"test:run": "vitest run"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcblock/did": "^1.16.
|
|
33
|
-
"@ocap/mcrypto": "^1.16.
|
|
34
|
-
"@ocap/util": "^1.16.
|
|
32
|
+
"@arcblock/did": "^1.16.15",
|
|
33
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
34
|
+
"@ocap/util": "^1.16.15",
|
|
35
35
|
"boxen": "^6.2.1",
|
|
36
|
-
"ejs": "^3.1.
|
|
36
|
+
"ejs": "^3.1.8",
|
|
37
37
|
"envfile": "^6.17.0",
|
|
38
38
|
"figlet": "^1.5.2",
|
|
39
39
|
"get-port": "^6.1.2",
|
|
40
|
-
"gradient-string": "^2.0.
|
|
40
|
+
"gradient-string": "^2.0.1",
|
|
41
41
|
"jdenticon": "^3.1.1",
|
|
42
42
|
"ora": "^6.1.0",
|
|
43
43
|
"prompts": "^2.4.2",
|
|
44
|
-
"semver": "^7.3.
|
|
44
|
+
"semver": "^7.3.7",
|
|
45
45
|
"terminal-link": "^3.0.0",
|
|
46
|
-
"zx": "
|
|
46
|
+
"zx": "6.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@arcblock/eslint-config": "0.1
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint-config-prettier": "^8.3.0",
|
|
54
|
-
"eslint-plugin-import": "^2.23.4",
|
|
55
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
56
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
57
|
-
"eslint-plugin-react": "^7.24.0",
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
59
|
-
"eslint-plugin-unicorn": "^34.0.1",
|
|
60
|
-
"prettier": "^2.3.2",
|
|
61
|
-
"vitest": "^0.9.0"
|
|
49
|
+
"@arcblock/eslint-config": "0.2.1",
|
|
50
|
+
"eslint": "^8.16.0",
|
|
51
|
+
"prettier": "^2.6.2",
|
|
52
|
+
"vitest": "^0.13.1"
|
|
62
53
|
}
|
|
63
54
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
18
|
-
"@blocklet/sdk": "^1.7.
|
|
19
|
-
"@ocap/client": "^1.16.
|
|
18
|
+
"@blocklet/sdk": "^1.7.20",
|
|
19
|
+
"@ocap/client": "^1.16.15",
|
|
20
20
|
"dotenv-flow": "^3.2.0",
|
|
21
21
|
"express": "^4.18.1"
|
|
22
22
|
},
|
|
@@ -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 static project, which means this is a frontend application. It's contained `client` code.
|
|
6
|
+
|
|
7
|
+
## File Structure
|
|
8
|
+
|
|
9
|
+
- app/ - Client side code (A static html project structure)
|
|
10
|
+
- .env - Environment variables
|
|
11
|
+
- .env.local - Local environment variables
|
|
12
|
+
- .eslintrc.js - ESLint configuration
|
|
13
|
+
- .gitignore - Git ignore file
|
|
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://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)
|
|
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://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node](https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node)
|
|
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` from blocklet store.
|
|
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 blocklet 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": "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://docs.arcblock.io/abtnode/en/introduction](https://docs.arcblock.io/abtnode/en/introduction)
|
|
138
|
+
|
|
139
|
+
## License
|
|
140
|
+
|
|
141
|
+
The code is licensed under the Apache 2.0 license found in the
|
|
142
|
+
[LICENSE](LICENSE) file.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rm -rf .blocklet",
|
|
6
|
-
"
|
|
7
|
-
"deploy": "npm run
|
|
8
|
-
"upload": "npm run
|
|
6
|
+
"bundle": "npm run clean && blocklet bundle --create-release",
|
|
7
|
+
"deploy": "npm run bundle && blocklet deploy .blocklet/bundle --skip-hooks",
|
|
8
|
+
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [],
|
|
11
11
|
"author": "",
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"build": "next build",
|
|
8
8
|
"start": "NODE_ENV=production node api/index.js",
|
|
9
9
|
"lint": "next lint",
|
|
10
|
+
"lint:fix": "npm run lint -- --fix",
|
|
10
11
|
"clean": "rm -rf .blocklet",
|
|
11
12
|
"bundle": "npm run bundle:client && npm run bundle:api",
|
|
12
13
|
"bundle:client": "PUBLIC_URL='/.blocklet/proxy/<%= did %>' npm run build",
|
|
@@ -25,12 +26,12 @@
|
|
|
25
26
|
]
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@arcblock/did-auth": "^1.16.
|
|
29
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
29
30
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
30
|
-
"@blocklet/sdk": "^1.7.
|
|
31
|
-
"@ocap/client": "^1.16.
|
|
32
|
-
"@ocap/mcrypto": "^1.16.
|
|
33
|
-
"@ocap/wallet": "^1.16.
|
|
31
|
+
"@blocklet/sdk": "^1.7.20",
|
|
32
|
+
"@ocap/client": "^1.16.15",
|
|
33
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
34
|
+
"@ocap/wallet": "^1.16.15",
|
|
34
35
|
"dotenv-flow": "^3.2.0",
|
|
35
36
|
"express": "^4.18.1",
|
|
36
37
|
"next": "12.1.6",
|
|
@@ -38,10 +39,10 @@
|
|
|
38
39
|
"react-dom": "18.1.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"eslint": "8.
|
|
42
|
+
"eslint": "8.16.0",
|
|
42
43
|
"eslint-config-next": "12.1.6",
|
|
43
|
-
"husky": "^
|
|
44
|
-
"lint-staged": "^12.
|
|
44
|
+
"husky": "^8.0.1",
|
|
45
|
+
"lint-staged": "^12.5.0",
|
|
45
46
|
"nodemon": "^2.0.16",
|
|
46
47
|
"npm-run-all": "^4.1.5"
|
|
47
48
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"build": "craco build",
|
|
7
7
|
"eject": "react-scripts eject",
|
|
8
8
|
"lint": "eslint src api --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"start": "npm-run-all --parallel start:*",
|
|
10
11
|
"start:client": "npm run dev",
|
|
11
12
|
"start:api": "NODE_ENV=development nodemon api/index.js -w api",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
]
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@arcblock/did-auth": "^1.16.
|
|
43
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
43
44
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
44
|
-
"@blocklet/sdk": "^1.7.
|
|
45
|
-
"@ocap/client": "^1.16.
|
|
46
|
-
"@ocap/mcrypto": "^1.16.
|
|
47
|
-
"@ocap/wallet": "^1.16.
|
|
45
|
+
"@blocklet/sdk": "^1.7.20",
|
|
46
|
+
"@ocap/client": "^1.16.15",
|
|
47
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
48
|
+
"@ocap/wallet": "^1.16.15",
|
|
48
49
|
"axios": "^0.27.2",
|
|
49
50
|
"compression": "^1.7.4",
|
|
50
51
|
"cookie-parser": "^1.4.6",
|
|
@@ -58,23 +59,15 @@
|
|
|
58
59
|
"react-router-dom": "^6.3.0"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@arcblock/eslint-config": "^0.1
|
|
62
|
+
"@arcblock/eslint-config": "^0.2.1",
|
|
62
63
|
"@craco/craco": "^6.4.3",
|
|
63
64
|
"babel-eslint": "^10.1.0",
|
|
64
|
-
"eslint": "^
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"eslint-plugin-import": "^2.23.4",
|
|
68
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
69
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
70
|
-
"eslint-plugin-react": "^7.24.0",
|
|
71
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
72
|
-
"eslint-plugin-unicorn": "^34.0.1",
|
|
73
|
-
"husky": "^7.0.4",
|
|
74
|
-
"lint-staged": "^12.4.1",
|
|
65
|
+
"eslint": "^8.16.0",
|
|
66
|
+
"husky": "^8.0.1",
|
|
67
|
+
"lint-staged": "^12.5.0",
|
|
75
68
|
"nodemon": "^2.0.16",
|
|
76
69
|
"npm-run-all": "^4.1.5",
|
|
77
|
-
"prettier": "^2.6.
|
|
70
|
+
"prettier": "^2.6.2",
|
|
78
71
|
"react-scripts": "5.0.1"
|
|
79
72
|
}
|
|
80
73
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import './app.css';
|
|
@@ -18,15 +17,13 @@ function App() {
|
|
|
18
17
|
);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export default () => {
|
|
20
|
+
export default function WrappedApp() {
|
|
24
21
|
// While the blocklet is deploy to a sub path, this will be work properly.
|
|
25
22
|
const basename = window?.blocklet?.prefix || '/';
|
|
26
23
|
|
|
27
24
|
return (
|
|
28
25
|
<Router basename={basename}>
|
|
29
|
-
<
|
|
26
|
+
<App />
|
|
30
27
|
</Router>
|
|
31
28
|
);
|
|
32
|
-
}
|
|
29
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Link } from 'react-router-dom';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
function About() {
|
|
5
4
|
return (
|
|
6
5
|
<div>
|
|
7
6
|
<h1>
|
|
@@ -12,6 +11,6 @@ const About = () => {
|
|
|
12
11
|
<h2>Hello, i'm a dapp blocklet</h2>
|
|
13
12
|
</div>
|
|
14
13
|
);
|
|
15
|
-
}
|
|
14
|
+
}
|
|
16
15
|
|
|
17
16
|
export default About;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Link } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import logo from '../logo.svg';
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
function Home() {
|
|
7
6
|
return (
|
|
8
7
|
<header className="app-header">
|
|
9
8
|
<img src={logo} className="app-logo" alt="logo" />
|
|
@@ -18,6 +17,6 @@ const Home = () => {
|
|
|
18
17
|
</a>
|
|
19
18
|
</header>
|
|
20
19
|
);
|
|
21
|
-
}
|
|
20
|
+
}
|
|
22
21
|
|
|
23
22
|
export default Home;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"build": "craco build",
|
|
7
7
|
"eject": "react-scripts eject",
|
|
8
8
|
"lint": "eslint src api --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"start": "npm-run-all --parallel start:*",
|
|
10
11
|
"start:client": "npm run dev",
|
|
11
12
|
"start:api": "NODE_ENV=development nodemon api/index.js -w api",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
]
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@arcblock/did-auth": "^1.16.
|
|
43
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
43
44
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
44
|
-
"@blocklet/sdk": "^1.7.
|
|
45
|
-
"@ocap/client": "^1.16.
|
|
46
|
-
"@ocap/mcrypto": "^1.16.
|
|
47
|
-
"@ocap/wallet": "^1.16.
|
|
45
|
+
"@blocklet/sdk": "^1.7.20",
|
|
46
|
+
"@ocap/client": "^1.16.15",
|
|
47
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
48
|
+
"@ocap/wallet": "^1.16.15",
|
|
48
49
|
"axios": "^0.27.2",
|
|
49
50
|
"compression": "^1.7.4",
|
|
50
51
|
"cookie-parser": "^1.4.6",
|
|
@@ -59,20 +60,11 @@
|
|
|
59
60
|
"react-router-dom": "^6.3.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@arcblock/eslint-config": "^0.1
|
|
63
|
+
"@arcblock/eslint-config": "^0.2.1",
|
|
63
64
|
"@craco/craco": "^6.4.3",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"eslint-config-prettier": "^8.3.0",
|
|
68
|
-
"eslint-plugin-import": "^2.23.4",
|
|
69
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
70
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
71
|
-
"eslint-plugin-react": "^7.24.0",
|
|
72
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
73
|
-
"eslint-plugin-unicorn": "^34.0.1",
|
|
74
|
-
"husky": "^7.0.4",
|
|
75
|
-
"lint-staged": "^12.4.1",
|
|
65
|
+
"eslint": "^8.16.0",
|
|
66
|
+
"husky": "^8.0.1",
|
|
67
|
+
"lint-staged": "^12.5.0",
|
|
76
68
|
"nodemon": "^2.0.16",
|
|
77
69
|
"npm-run-all": "^4.1.5",
|
|
78
70
|
"prettier": "^2.6.2",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import './app.css';
|
|
@@ -18,15 +17,13 @@ function App() {
|
|
|
18
17
|
);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export default () => {
|
|
20
|
+
export default function WrappedApp() {
|
|
24
21
|
// While the blocklet is deploy to a sub path, this will be work properly.
|
|
25
22
|
const basename = window?.blocklet?.prefix || '/';
|
|
26
23
|
|
|
27
24
|
return (
|
|
28
25
|
<Router basename={basename}>
|
|
29
|
-
<
|
|
26
|
+
<App />
|
|
30
27
|
</Router>
|
|
31
28
|
);
|
|
32
|
-
}
|
|
29
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Link } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import logo from '../logo.svg';
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
function About() {
|
|
7
6
|
return (
|
|
8
7
|
<header className="app-header">
|
|
9
8
|
<img src={logo} className="app-logo" alt="logo" />
|
|
@@ -21,6 +20,6 @@ const About = () => {
|
|
|
21
20
|
</a>
|
|
22
21
|
</header>
|
|
23
22
|
);
|
|
24
|
-
}
|
|
23
|
+
}
|
|
25
24
|
|
|
26
25
|
export default About;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"build": "craco build",
|
|
7
7
|
"eject": "react-scripts eject",
|
|
8
8
|
"lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"start": "npm run dev",
|
|
10
11
|
"clean": "rm -rf .blocklet",
|
|
11
12
|
"bundle": "npm run clean && PUBLIC_URL='/.blocklet/proxy/<%= did %>' npm run build && blocklet bundle --zip --create-release",
|
|
@@ -40,20 +41,11 @@
|
|
|
40
41
|
"react-router-dom": "^6.3.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@arcblock/eslint-config": "^0.1
|
|
44
|
+
"@arcblock/eslint-config": "^0.2.1",
|
|
44
45
|
"@craco/craco": "^6.4.3",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint-config-prettier": "^8.3.0",
|
|
49
|
-
"eslint-plugin-import": "^2.23.4",
|
|
50
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
51
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
52
|
-
"eslint-plugin-react": "^7.24.0",
|
|
53
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
54
|
-
"eslint-plugin-unicorn": "^34.0.1",
|
|
55
|
-
"husky": "^7.0.4",
|
|
56
|
-
"lint-staged": "^12.4.1",
|
|
46
|
+
"eslint": "^8.16.0",
|
|
47
|
+
"husky": "^8.0.1",
|
|
48
|
+
"lint-staged": "^12.5.0",
|
|
57
49
|
"prettier": "^2.6.2",
|
|
58
50
|
"react-scripts": "5.0.1"
|
|
59
51
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import './app.css';
|
|
@@ -18,15 +17,13 @@ function App() {
|
|
|
18
17
|
);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export default () => {
|
|
20
|
+
export default function WrappedApp() {
|
|
24
21
|
// While the blocklet is deploy to a sub path, this will be work properly.
|
|
25
22
|
const basename = window?.blocklet?.prefix || '/';
|
|
26
23
|
|
|
27
24
|
return (
|
|
28
25
|
<Router basename={basename}>
|
|
29
|
-
<
|
|
26
|
+
<App />
|
|
30
27
|
</Router>
|
|
31
28
|
);
|
|
32
|
-
}
|
|
29
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Link } from 'react-router-dom';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
function About() {
|
|
5
4
|
return (
|
|
6
5
|
<div>
|
|
7
6
|
<h1>
|
|
@@ -12,6 +11,6 @@ const About = () => {
|
|
|
12
11
|
<h2>Hello, i'm a static blocklet</h2>
|
|
13
12
|
</div>
|
|
14
13
|
);
|
|
15
|
-
}
|
|
14
|
+
}
|
|
16
15
|
|
|
17
16
|
export default About;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Link } from 'react-router-dom';
|
|
3
2
|
|
|
4
3
|
import logo from '../logo.svg';
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
function Home() {
|
|
7
6
|
return (
|
|
8
7
|
<header className="app-header">
|
|
9
8
|
<img src={logo} className="app-logo" alt="logo" />
|
|
@@ -18,6 +17,6 @@ const Home = () => {
|
|
|
18
17
|
</a>
|
|
19
18
|
</header>
|
|
20
19
|
);
|
|
21
|
-
}
|
|
20
|
+
}
|
|
22
21
|
|
|
23
22
|
export default Home;
|
|
@@ -16,16 +16,17 @@
|
|
|
16
16
|
"deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
|
|
17
17
|
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
18
18
|
"lint": "eslint src --ext .mjs,.js,.jsx",
|
|
19
|
+
"lint:fix": "npm run lint -- --fix",
|
|
19
20
|
"prepare": "husky install"
|
|
20
21
|
},
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"eslint": "^8.
|
|
24
|
+
"eslint": "^8.16.0",
|
|
24
25
|
"eslint-config-prettier": "^8.5.0",
|
|
25
26
|
"eslint-plugin-prettier": "^4.0.0",
|
|
26
|
-
"eslint-plugin-solid": "0.
|
|
27
|
-
"husky": "^
|
|
28
|
-
"lint-staged": "^12.
|
|
27
|
+
"eslint-plugin-solid": "0.6.0",
|
|
28
|
+
"husky": "^8.0.1",
|
|
29
|
+
"lint-staged": "^12.5.0",
|
|
29
30
|
"nodemon": "^2.0.16",
|
|
30
31
|
"npm-run-all": "^4.1.5",
|
|
31
32
|
"prettier": "^2.6.2",
|
|
@@ -35,12 +36,12 @@
|
|
|
35
36
|
"vite-plugin-html": "^3.2.0"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@arcblock/did-auth": "^1.16.
|
|
39
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
39
40
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
40
|
-
"@blocklet/sdk": "^1.7.
|
|
41
|
-
"@ocap/client": "^1.16.
|
|
42
|
-
"@ocap/mcrypto": "^1.16.
|
|
43
|
-
"@ocap/wallet": "^1.16.
|
|
41
|
+
"@blocklet/sdk": "^1.7.20",
|
|
42
|
+
"@ocap/client": "^1.16.15",
|
|
43
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
44
|
+
"@ocap/wallet": "^1.16.15",
|
|
44
45
|
"axios": "^0.27.2",
|
|
45
46
|
"compression": "^1.7.4",
|
|
46
47
|
"cookie-parser": "^1.4.6",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"express": "^4.18.1",
|
|
50
51
|
"express-async-errors": "^3.1.1",
|
|
51
52
|
"express-history-api-fallback": "^2.2.1",
|
|
52
|
-
"solid-js": "^1.4.
|
|
53
|
+
"solid-js": "^1.4.3"
|
|
53
54
|
},
|
|
54
55
|
"lint-staged": {
|
|
55
56
|
"*.{mjs,js,vue}": [
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "vite build",
|
|
9
9
|
"lint": "eslint src --ext .mjs,.js,.jsx",
|
|
10
|
+
"lint:fix": "npm run lint -- --fix",
|
|
10
11
|
"serve": "vite preview",
|
|
11
12
|
"clean": "rm -rf .blocklet",
|
|
12
13
|
"bundle": "npm run clean && vite build --base /.blocklet/proxy/<%= did %>/ && blocklet bundle --zip --create-release",
|
|
@@ -16,12 +17,12 @@
|
|
|
16
17
|
},
|
|
17
18
|
"license": "MIT",
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"eslint": "^8.
|
|
20
|
+
"eslint": "^8.16.0",
|
|
20
21
|
"eslint-config-prettier": "^8.5.0",
|
|
21
22
|
"eslint-plugin-prettier": "^4.0.0",
|
|
22
|
-
"eslint-plugin-solid": "0.
|
|
23
|
-
"husky": "^
|
|
24
|
-
"lint-staged": "^12.
|
|
23
|
+
"eslint-plugin-solid": "0.6.0",
|
|
24
|
+
"husky": "^8.0.1",
|
|
25
|
+
"lint-staged": "^12.5.0",
|
|
25
26
|
"prettier": "^2.6.2",
|
|
26
27
|
"vite": "^2.9.9",
|
|
27
28
|
"vite-plugin-solid": "^2.2.6",
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"vite-plugin-html": "^3.2.0"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"solid-js": "^1.4.
|
|
33
|
+
"solid-js": "^1.4.3"
|
|
33
34
|
},
|
|
34
35
|
"lint-staged": {
|
|
35
36
|
"*.{mjs,js,vue}": [
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"prepare": "husky install"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.16.
|
|
21
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
22
22
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
23
|
-
"@blocklet/sdk": "^1.7.
|
|
24
|
-
"@ocap/client": "^1.16.
|
|
25
|
-
"@ocap/mcrypto": "^1.16.
|
|
26
|
-
"@ocap/wallet": "^1.16.
|
|
23
|
+
"@blocklet/sdk": "^1.7.20",
|
|
24
|
+
"@ocap/client": "^1.16.15",
|
|
25
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
26
|
+
"@ocap/wallet": "^1.16.15",
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
28
|
"compression": "^1.7.4",
|
|
29
29
|
"cookie-parser": "^1.4.6",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"express-history-api-fallback": "^2.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@sveltejs/vite-plugin-svelte": "1.0.0-next.
|
|
38
|
-
"eslint": "^8.
|
|
37
|
+
"@sveltejs/vite-plugin-svelte": "1.0.0-next.47",
|
|
38
|
+
"eslint": "^8.16.0",
|
|
39
39
|
"eslint-config-prettier": "^8.5.0",
|
|
40
40
|
"eslint-plugin-prettier": "^4.0.0",
|
|
41
41
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
42
|
-
"husky": "^
|
|
43
|
-
"lint-staged": "^12.
|
|
42
|
+
"husky": "^8.0.1",
|
|
43
|
+
"lint-staged": "^12.5.0",
|
|
44
44
|
"prettier": "^2.6.2",
|
|
45
45
|
"svelte": "^3.48.0",
|
|
46
46
|
"vite": "^2.9.9",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"build": "vite build",
|
|
9
9
|
"preview": "vite preview",
|
|
10
10
|
"lint": "eslint src --ext .mjs,.js,.svelte",
|
|
11
|
+
"lint:fix": "npm run lint -- --fix",
|
|
11
12
|
"clean": "rm -rf .blocklet",
|
|
12
13
|
"bundle": "npm run clean && vite build --base /.blocklet/proxy/<%= did %>/ && blocklet bundle --zip --create-release",
|
|
13
14
|
"deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
|
|
@@ -15,13 +16,13 @@
|
|
|
15
16
|
"prepare": "husky install"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@sveltejs/vite-plugin-svelte": "1.0.0-next.
|
|
19
|
-
"eslint": "^8.
|
|
19
|
+
"@sveltejs/vite-plugin-svelte": "1.0.0-next.47",
|
|
20
|
+
"eslint": "^8.16.0",
|
|
20
21
|
"eslint-config-prettier": "^8.5.0",
|
|
21
22
|
"eslint-plugin-prettier": "^4.0.0",
|
|
22
23
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
23
|
-
"husky": "^
|
|
24
|
-
"lint-staged": "^12.
|
|
24
|
+
"husky": "^8.0.1",
|
|
25
|
+
"lint-staged": "^12.5.0",
|
|
25
26
|
"prettier": "^2.6.2",
|
|
26
27
|
"svelte": "^3.48.0",
|
|
27
28
|
"vite": "^2.9.9",
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
"deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
|
|
16
16
|
"upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
|
|
17
17
|
"lint": "eslint src api --ext .mjs,.js,.vue",
|
|
18
|
+
"lint:fix": "npm run lint -- --fix",
|
|
18
19
|
"prepare": "husky install"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.16.
|
|
22
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
22
23
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
23
|
-
"@blocklet/sdk": "^1.7.
|
|
24
|
-
"@ocap/client": "^1.16.
|
|
25
|
-
"@ocap/mcrypto": "^1.16.
|
|
26
|
-
"@ocap/wallet": "^1.16.
|
|
24
|
+
"@blocklet/sdk": "^1.7.20",
|
|
25
|
+
"@ocap/client": "^1.16.15",
|
|
26
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
27
|
+
"@ocap/wallet": "^1.16.15",
|
|
27
28
|
"axios": "^0.27.2",
|
|
28
29
|
"compression": "^1.7.4",
|
|
29
30
|
"cookie-parser": "^1.4.6",
|
|
@@ -37,12 +38,12 @@
|
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
40
|
-
"eslint": "^8.
|
|
41
|
+
"eslint": "^8.16.0",
|
|
41
42
|
"eslint-config-prettier": "^8.5.0",
|
|
42
43
|
"eslint-plugin-prettier": "^4.0.0",
|
|
43
|
-
"eslint-plugin-vue": "^9.0
|
|
44
|
-
"husky": "^
|
|
45
|
-
"lint-staged": "^12.
|
|
44
|
+
"eslint-plugin-vue": "^9.1.0",
|
|
45
|
+
"husky": "^8.0.1",
|
|
46
|
+
"lint-staged": "^12.5.0",
|
|
46
47
|
"nodemon": "^2.0.16",
|
|
47
48
|
"npm-run-all": "^4.1.5",
|
|
48
49
|
"prettier": "^2.6.2",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"start": "npm run dev",
|
|
7
7
|
"build": "vite build",
|
|
8
8
|
"lint": "eslint src --ext .mjs,.js,.vue",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"serve": "vite preview",
|
|
10
11
|
"clean": "rm -rf .blocklet",
|
|
11
12
|
"bundle": "npm run clean && vite build --base /.blocklet/proxy/<%= did %>/ && blocklet bundle --zip --create-release",
|
|
@@ -18,12 +19,12 @@
|
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
21
|
-
"eslint": "^8.
|
|
22
|
+
"eslint": "^8.16.0",
|
|
22
23
|
"eslint-config-prettier": "^8.5.0",
|
|
23
24
|
"eslint-plugin-prettier": "^4.0.0",
|
|
24
|
-
"eslint-plugin-vue": "^9.0
|
|
25
|
-
"husky": "^
|
|
26
|
-
"lint-staged": "^12.
|
|
25
|
+
"eslint-plugin-vue": "^9.1.0",
|
|
26
|
+
"husky": "^8.0.1",
|
|
27
|
+
"lint-staged": "^12.5.0",
|
|
27
28
|
"prettier": "^2.6.2",
|
|
28
29
|
"vite": "^2.9.9",
|
|
29
30
|
"vite-plugin-blocklet": "^0.1.2",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
7
7
|
"build": "vue-cli-service build",
|
|
8
8
|
"lint": "eslint src api --ext .mjs,.js,.vue",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"start": "npm-run-all --parallel start:*",
|
|
10
11
|
"start:client": "npm run serve",
|
|
11
12
|
"start:api": "NODE_ENV=development nodemon api/index.js -w api",
|
|
@@ -18,12 +19,12 @@
|
|
|
18
19
|
"prepare": "husky install"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.16.
|
|
22
|
+
"@arcblock/did-auth": "^1.16.15",
|
|
22
23
|
"@arcblock/did-auth-storage-nedb": "^1.6.3",
|
|
23
|
-
"@blocklet/sdk": "^1.7.
|
|
24
|
-
"@ocap/client": "^1.16.
|
|
25
|
-
"@ocap/mcrypto": "^1.16.
|
|
26
|
-
"@ocap/wallet": "^1.16.
|
|
24
|
+
"@blocklet/sdk": "^1.7.20",
|
|
25
|
+
"@ocap/client": "^1.16.15",
|
|
26
|
+
"@ocap/mcrypto": "^1.16.15",
|
|
27
|
+
"@ocap/wallet": "^1.16.15",
|
|
27
28
|
"axios": "^0.27.2",
|
|
28
29
|
"compression": "^1.7.4",
|
|
29
30
|
"cookie-parser": "^1.4.6",
|
|
@@ -35,18 +36,18 @@
|
|
|
35
36
|
"vue": "^2.6.14"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@babel/core": "^7.18.
|
|
39
|
-
"@babel/eslint-parser": "^7.
|
|
39
|
+
"@babel/core": "^7.18.2",
|
|
40
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
40
41
|
"@vue/cli-plugin-babel": "~5.0.4",
|
|
41
42
|
"@vue/cli-plugin-eslint": "~5.0.4",
|
|
42
43
|
"@vue/cli-service": "~5.0.4",
|
|
43
|
-
"core-js": "^3.22.
|
|
44
|
-
"eslint": "^8.
|
|
44
|
+
"core-js": "^3.22.8",
|
|
45
|
+
"eslint": "^8.16.0",
|
|
45
46
|
"eslint-config-prettier": "^8.5.0",
|
|
46
47
|
"eslint-plugin-prettier": "^4.0.0",
|
|
47
|
-
"eslint-plugin-vue": "^9.0
|
|
48
|
-
"husky": "^
|
|
49
|
-
"lint-staged": "^12.
|
|
48
|
+
"eslint-plugin-vue": "^9.1.0",
|
|
49
|
+
"husky": "^8.0.1",
|
|
50
|
+
"lint-staged": "^12.5.0",
|
|
50
51
|
"nodemon": "^2.0.16",
|
|
51
52
|
"npm-run-all": "^4.1.5",
|
|
52
53
|
"vue-template-compiler": "^2.6.14"
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
7
7
|
"build": "vue-cli-service build",
|
|
8
8
|
"lint": "eslint src --ext .mjs,.js,.vue",
|
|
9
|
+
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"start": "npm run serve",
|
|
10
11
|
"clean": "rm -rf .blocklet",
|
|
11
12
|
"bundle": "npm run clean && PUBLIC_PATH=/.blocklet/proxy/<%= did %> npm run build && blocklet bundle --zip --create-release",
|
|
@@ -17,18 +18,18 @@
|
|
|
17
18
|
"vue": "^2.6.14"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"@babel/core": "^7.18.
|
|
21
|
-
"@babel/eslint-parser": "^7.
|
|
21
|
+
"@babel/core": "^7.18.2",
|
|
22
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
22
23
|
"@vue/cli-plugin-babel": "~5.0.4",
|
|
23
24
|
"@vue/cli-plugin-eslint": "~5.0.4",
|
|
24
25
|
"@vue/cli-service": "~5.0.4",
|
|
25
|
-
"core-js": "^3.22.
|
|
26
|
-
"eslint": "^8.
|
|
26
|
+
"core-js": "^3.22.8",
|
|
27
|
+
"eslint": "^8.16.0",
|
|
27
28
|
"eslint-config-prettier": "^8.5.0",
|
|
28
29
|
"eslint-plugin-prettier": "^4.0.0",
|
|
29
|
-
"eslint-plugin-vue": "^9.0
|
|
30
|
-
"husky": "^
|
|
31
|
-
"lint-staged": "^12.
|
|
30
|
+
"eslint-plugin-vue": "^9.1.0",
|
|
31
|
+
"husky": "^8.0.1",
|
|
32
|
+
"lint-staged": "^12.5.0",
|
|
32
33
|
"vue-template-compiler": "^2.6.14"
|
|
33
34
|
},
|
|
34
35
|
"lint-staged": {
|