create-blocklet 0.4.12 → 0.4.15
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/package.json +6 -6
- package/templates/nextjs-dapp/next.config.js +21 -0
- package/templates/solidjs-dapp/package.json +1 -1
- package/templates/solidjs-dapp/vite.config.js +1 -1
- package/templates/solidjs-static/package.json +1 -1
- package/templates/solidjs-static/vite.config.js +1 -1
- package/templates/svelte-dapp/package.json +1 -1
- package/templates/svelte-dapp/vite.config.js +1 -1
- package/templates/svelte-static/package.json +1 -1
- package/templates/svelte-static/vite.config.js +1 -1
- package/templates/vue-dapp/package.json +1 -1
- package/templates/vue-dapp/vite.config.js +1 -1
- package/templates/vue-static/package.json +1 -1
- package/templates/vue-static/vite.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-blocklet",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.15",
|
|
4
4
|
"exports": "./index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "git@github.com:blocklet/create-blocklet.git",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/blocklet/create-blocklet/tree/main#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@arcblock/did": "^1.17.
|
|
27
|
-
"@ocap/mcrypto": "^1.17.
|
|
28
|
-
"@ocap/util": "^1.17.
|
|
26
|
+
"@arcblock/did": "^1.17.3",
|
|
27
|
+
"@ocap/mcrypto": "^1.17.3",
|
|
28
|
+
"@ocap/util": "^1.17.3",
|
|
29
29
|
"boxen": "^6.2.1",
|
|
30
30
|
"ejs": "^3.1.8",
|
|
31
31
|
"envfile": "^6.17.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"prompts": "^2.4.2",
|
|
38
38
|
"semver": "^7.3.7",
|
|
39
39
|
"terminal-link": "^3.0.0",
|
|
40
|
-
"zx": "7.0.
|
|
40
|
+
"zx": "7.0.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@arcblock/eslint-config-base": "0.2.2",
|
|
44
44
|
"eslint": "^8.19.0",
|
|
45
45
|
"prettier": "^2.7.1",
|
|
46
|
-
"vitest": "^0.
|
|
46
|
+
"vitest": "^0.17.1"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"lint": "eslint .",
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
/** @type {import('next').NextConfig} */
|
|
2
|
+
|
|
3
|
+
const whenDev = process.env.NODE_ENV === 'development';
|
|
4
|
+
|
|
5
|
+
const getDevNextConfig = () => {
|
|
6
|
+
let mountPoint = process.env.BLOCKLET_DEV_MOUNT_POINT || '';
|
|
7
|
+
|
|
8
|
+
let appUrl = process.env.BLOCKLET_APP_URL || '';
|
|
9
|
+
|
|
10
|
+
let assetPrefix = `${appUrl}${mountPoint}`.replace('http://', 'https://');
|
|
11
|
+
|
|
12
|
+
let devWithBlockletServer = process.env.hasOwnProperty('BLOCKLET_DEV_MOUNT_POINT');
|
|
13
|
+
|
|
14
|
+
return whenDev && devWithBlockletServer
|
|
15
|
+
? {
|
|
16
|
+
assetPrefix: assetPrefix, // When the dev mode as component, this line required
|
|
17
|
+
basePath: '',
|
|
18
|
+
}
|
|
19
|
+
: {};
|
|
20
|
+
};
|
|
21
|
+
|
|
2
22
|
const nextConfig = {
|
|
3
23
|
reactStrictMode: false,
|
|
24
|
+
...getDevNextConfig(),
|
|
4
25
|
};
|
|
5
26
|
|
|
6
27
|
module.exports = nextConfig;
|