create-blocklet 0.4.81 → 0.5.0

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.
Files changed (73) hide show
  1. package/README.md +4 -4
  2. package/index.js +42 -65
  3. package/package.json +5 -6
  4. package/templates/docsite/package.json +4 -4
  5. package/templates/express-api/package.json +5 -5
  6. package/templates/html-static/package.json +2 -2
  7. package/templates/monorepo/package.json +1 -1
  8. package/templates/nextjs-dapp/package.json +7 -7
  9. package/templates/react-dapp/api/dev.js +4 -0
  10. package/templates/react-dapp/api/index.js +10 -12
  11. package/templates/react-dapp/index.html +0 -1
  12. package/templates/react-dapp/package.json +11 -14
  13. package/templates/react-dapp/vite.config.js +3 -28
  14. package/templates/react-gun-dapp/api/dev.js +4 -0
  15. package/templates/react-gun-dapp/api/index.js +4 -12
  16. package/templates/react-gun-dapp/index.html +0 -1
  17. package/templates/react-gun-dapp/package.json +15 -17
  18. package/templates/react-gun-dapp/vite.config.js +3 -33
  19. package/templates/react-static/index.html +0 -1
  20. package/templates/react-static/package.json +8 -9
  21. package/templates/react-static/vite.config.js +3 -18
  22. package/templates/solidjs-dapp/api/dev.js +4 -0
  23. package/templates/solidjs-dapp/api/index.js +10 -12
  24. package/templates/solidjs-dapp/index.html +0 -1
  25. package/templates/solidjs-dapp/package.json +14 -17
  26. package/templates/solidjs-dapp/vite.config.js +3 -23
  27. package/templates/solidjs-static/index.html +0 -1
  28. package/templates/solidjs-static/package.json +7 -8
  29. package/templates/solidjs-static/vite.config.js +3 -17
  30. package/templates/svelte-dapp/api/dev.js +4 -0
  31. package/templates/svelte-dapp/api/index.js +10 -12
  32. package/templates/svelte-dapp/index.html +0 -1
  33. package/templates/svelte-dapp/package.json +13 -15
  34. package/templates/svelte-dapp/vite.config.js +3 -23
  35. package/templates/svelte-static/index.html +0 -1
  36. package/templates/svelte-static/package.json +6 -7
  37. package/templates/svelte-static/vite.config.js +3 -17
  38. package/templates/vue-dapp/api/dev.js +4 -0
  39. package/templates/vue-dapp/api/index.js +10 -12
  40. package/templates/vue-dapp/index.html +0 -1
  41. package/templates/vue-dapp/package.json +14 -17
  42. package/templates/vue-dapp/vite.config.js +3 -27
  43. package/templates/vue-static/index.html +0 -1
  44. package/templates/vue-static/package.json +7 -8
  45. package/templates/vue-static/vite.config.js +3 -17
  46. package/templates/vue2-dapp/.eslintrc.js +0 -3
  47. package/templates/vue2-dapp/api/dev.js +4 -0
  48. package/templates/vue2-dapp/api/index.js +10 -12
  49. package/templates/vue2-dapp/{public/index.html → index.html} +4 -6
  50. package/templates/vue2-dapp/package.json +19 -24
  51. package/templates/vue2-dapp/vite.config.js +10 -0
  52. package/templates/vue2-static/.eslintrc.js +0 -3
  53. package/templates/vue2-static/index.html +15 -0
  54. package/templates/vue2-static/package.json +13 -16
  55. package/templates/vue2-static/vite.config.js +10 -0
  56. package/templates/website/package.json +3 -3
  57. package/templates/react-dapp/.env +0 -2
  58. package/templates/react-gun-dapp/.env +0 -2
  59. package/templates/react-static/.env +0 -2
  60. package/templates/solidjs-dapp/.env +0 -1
  61. package/templates/solidjs-static/.env +0 -1
  62. package/templates/svelte-dapp/.env +0 -1
  63. package/templates/svelte-static/.env +0 -1
  64. package/templates/vue-dapp/.env +0 -1
  65. package/templates/vue-static/.env +0 -1
  66. package/templates/vue2-dapp/.env +0 -1
  67. package/templates/vue2-dapp/babel.config.js +0 -3
  68. package/templates/vue2-dapp/jsconfig.json +0 -19
  69. package/templates/vue2-dapp/vue.config.js +0 -25
  70. package/templates/vue2-static/.env +0 -1
  71. package/templates/vue2-static/babel.config.js +0 -3
  72. package/templates/vue2-static/jsconfig.json +0 -19
  73. package/templates/vue2-static/vue.config.js +0 -17
@@ -3,10 +3,7 @@
3
3
  "version": "0.1.0",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
- "serve": "vite preview",
7
- "start": "npm-run-all --parallel start:*",
8
- "start:client": "vite --host",
9
- "start:api": "NODE_ENV=development nodemon api/index.js -w api",
6
+ "start": "cross-env NODE_ENV=development nodemon api/dev.js -w api",
10
7
  "clean": "node scripts/build-clean.js",
11
8
  "bundle": "npm run bundle:client && npm run bundle:api",
12
9
  "bundle:client": "vite build",
@@ -21,12 +18,12 @@
21
18
  "bump-version": "zx scripts/bump-version.mjs"
22
19
  },
23
20
  "dependencies": {
24
- "@arcblock/did-auth": "^1.17.23",
21
+ "@arcblock/did-auth": "^1.18.6",
25
22
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
26
- "@blocklet/sdk": "^1.8.30",
27
- "@ocap/client": "^1.17.23",
28
- "@ocap/mcrypto": "^1.17.23",
29
- "@ocap/wallet": "^1.17.23",
23
+ "@blocklet/sdk": "^1.8.33",
24
+ "@ocap/client": "^1.18.6",
25
+ "@ocap/mcrypto": "^1.18.6",
26
+ "@ocap/wallet": "^1.18.6",
30
27
  "axios": "^0.27.2",
31
28
  "compression": "^1.7.4",
32
29
  "cookie-parser": "^1.4.6",
@@ -35,25 +32,25 @@
35
32
  "express": "^4.18.2",
36
33
  "express-async-errors": "^3.1.1",
37
34
  "express-history-api-fallback": "^2.2.1",
38
- "vite-plugin-html": "^3.2.0",
39
35
  "vue": "^3.2.41"
40
36
  },
41
37
  "devDependencies": {
42
- "@vitejs/plugin-vue": "^3.1.2",
43
- "eslint": "^8.25.0",
38
+ "@vitejs/plugin-vue": "^3.2.0",
39
+ "bumpp": "^8.2.1",
40
+ "cross-env": "^7.0.3",
41
+ "eslint": "^8.26.0",
44
42
  "eslint-config-prettier": "^8.5.0",
45
43
  "eslint-plugin-prettier": "^4.2.1",
46
- "eslint-plugin-vue": "^9.6.0",
44
+ "eslint-plugin-vue": "^9.7.0",
47
45
  "husky": "^8.0.1",
48
46
  "lint-staged": "^12.5.0",
49
47
  "nodemon": "^2.0.20",
50
48
  "npm-run-all": "^4.1.5",
51
49
  "prettier": "^2.7.1",
52
- "vite": "^3.1.8",
53
- "vite-plugin-blocklet": "^0.4.81",
54
- "zx": "^7.1.1",
55
50
  "rimraf": "^3.0.2",
56
- "bumpp": "^8.2.1"
51
+ "vite": "^3.2.2",
52
+ "vite-plugin-blocklet": "^0.5.0",
53
+ "zx": "^7.1.1"
57
54
  },
58
55
  "lint-staged": {
59
56
  "*.{mjs,js,vue}": [
@@ -1,34 +1,10 @@
1
- import { defineConfig, loadEnv } from 'vite';
1
+ import { defineConfig } from 'vite';
2
2
  import vue from '@vitejs/plugin-vue';
3
- import { createHtmlPlugin } from 'vite-plugin-html';
4
3
  import { createBlockletPlugin } from 'vite-plugin-blocklet';
5
4
 
6
5
  // https://vitejs.dev/config/
7
- export default defineConfig(async ({ mode }) => {
8
- const envMap = loadEnv(mode, process.cwd(), '');
9
- const apiPort = envMap.API_PORT || 3030;
10
- const apiPrefix = `${process.env.BLOCKLET_DEV_MOUNT_POINT || ''}/api`;
11
-
6
+ export default defineConfig(() => {
12
7
  return {
13
- plugins: [
14
- vue(),
15
- createHtmlPlugin({
16
- minify: true,
17
- inject: {
18
- data: {
19
- title: envMap.APP_TITLE,
20
- },
21
- },
22
- }),
23
- createBlockletPlugin(),
24
- ],
25
- server: {
26
- proxy: {
27
- [apiPrefix]: {
28
- target: `http://127.0.0.1:${apiPort}`,
29
- rewrite: (path) => path.replace(apiPrefix, '/api'), // rewrite path when blocklet dev
30
- },
31
- },
32
- },
8
+ plugins: [vue(), createBlockletPlugin()],
33
9
  };
34
10
  });
@@ -6,7 +6,6 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
7
7
  <meta name="theme-color" content="#4F6AF5" />
8
8
  <meta name="description" content="Web site created using create-blocklet" />
9
- <title><%- title %></title>
10
9
  </head>
11
10
  <body>
12
11
  <noscript>You need to enable JavaScript to run this app.</noscript>
@@ -20,20 +20,19 @@
20
20
  "vue": "^3.2.41"
21
21
  },
22
22
  "devDependencies": {
23
- "@vitejs/plugin-vue": "^3.1.2",
24
- "eslint": "^8.25.0",
23
+ "@vitejs/plugin-vue": "^3.2.0",
24
+ "bumpp": "^8.2.1",
25
+ "eslint": "^8.26.0",
25
26
  "eslint-config-prettier": "^8.5.0",
26
27
  "eslint-plugin-prettier": "^4.2.1",
27
- "eslint-plugin-vue": "^9.6.0",
28
+ "eslint-plugin-vue": "^9.7.0",
28
29
  "husky": "^8.0.1",
29
30
  "lint-staged": "^12.5.0",
30
31
  "prettier": "^2.7.1",
31
- "vite": "^3.1.8",
32
- "vite-plugin-blocklet": "^0.4.81",
33
- "vite-plugin-html": "^3.2.0",
34
- "zx": "^7.1.1",
35
32
  "rimraf": "^3.0.2",
36
- "bumpp": "^8.2.1"
33
+ "vite": "^3.2.2",
34
+ "vite-plugin-blocklet": "^0.5.0",
35
+ "zx": "^7.1.1"
37
36
  },
38
37
  "lint-staged": {
39
38
  "*.{mjs,js,vue}": [
@@ -1,24 +1,10 @@
1
- import { defineConfig, loadEnv } from 'vite';
1
+ import { defineConfig } from 'vite';
2
2
  import vue from '@vitejs/plugin-vue';
3
- import { createHtmlPlugin } from 'vite-plugin-html';
4
3
  import { createBlockletPlugin } from 'vite-plugin-blocklet';
5
4
 
6
5
  // https://vitejs.dev/config/
7
- export default defineConfig(async ({ mode }) => {
8
- const envMap = loadEnv(mode, process.cwd(), '');
9
-
6
+ export default defineConfig(() => {
10
7
  return {
11
- plugins: [
12
- vue(),
13
- createHtmlPlugin({
14
- minify: true,
15
- inject: {
16
- data: {
17
- title: envMap.APP_TITLE,
18
- },
19
- },
20
- }),
21
- createBlockletPlugin(),
22
- ],
8
+ plugins: [vue(), createBlockletPlugin()],
23
9
  };
24
10
  });
@@ -4,9 +4,6 @@ module.exports = {
4
4
  node: true,
5
5
  },
6
6
  extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
7
- parserOptions: {
8
- parser: '@babel/eslint-parser',
9
- },
10
7
  rules: {
11
8
  'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
12
9
  'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
@@ -0,0 +1,4 @@
1
+ const { setupClient } = require('vite-plugin-blocklet');
2
+ const { server, app } = require('./index');
3
+
4
+ setupClient(app, server);
@@ -16,36 +16,34 @@ app.set('trust proxy', true);
16
16
  app.use(cookieParser());
17
17
  app.use(express.json({ limit: '1 mb' }));
18
18
  app.use(express.urlencoded({ extended: true, limit: '1 mb' }));
19
+ app.use(cors());
19
20
 
20
21
  const router = express.Router();
21
22
  router.use('/api', require('./routes'));
23
+ app.use(router);
22
24
 
23
- const isDevelopment = process.env.NODE_ENV === 'development';
24
25
  const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NODE_SERVICE_ENV === 'production';
25
26
 
26
27
  if (isProduction) {
27
- app.use(cors());
28
+ const staticDir = path.resolve(__dirname, '../dist');
28
29
  app.use(compression());
29
-
30
- const staticDir = path.resolve(process.env.BLOCKLET_APP_DIR, 'dist');
31
30
  app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
- app.use(router);
33
31
  app.use(fallback('index.html', { root: staticDir }));
34
32
 
35
- app.use((req, res) => {
36
- res.status(404).send('404 NOT FOUND');
37
- });
38
33
  app.use((err, req, res) => {
39
34
  logger.error(err.stack);
40
35
  res.status(500).send('Something broke!');
41
36
  });
42
- } else {
43
- app.use(router);
44
37
  }
45
38
 
46
- const port = (isDevelopment ? parseInt(process.env.API_PORT, 10) : parseInt(process.env.BLOCKLET_PORT, 10)) || 3030;
39
+ const port = parseInt(process.env.BLOCKLET_PORT, 10);
47
40
 
48
- app.listen(port, (err) => {
41
+ const server = app.listen(port, (err) => {
49
42
  if (err) throw err;
50
43
  logger.info(`> ${name} v${version} ready on ${port}`);
51
44
  });
45
+
46
+ module.exports = {
47
+ app,
48
+ server,
49
+ };
@@ -1,17 +1,15 @@
1
1
  <!DOCTYPE html>
2
- <html lang="">
2
+ <html lang="en">
3
3
  <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="/favicon.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
7
7
  <meta name="theme-color" content="#4F6AF5" />
8
8
  <meta name="description" content="Web site created using create-blocklet" />
9
- <title><%= htmlWebpackPlugin.options.title %></title>
10
- <script src="__blocklet__.js"></script>
11
9
  </head>
12
10
  <body>
13
11
  <noscript>You need to enable JavaScript to run this app.</noscript>
14
12
  <div id="app"></div>
15
- <!-- built files will be auto injected -->
13
+ <script type="module" src="/src/main.js"></script>
16
14
  </body>
17
15
  </html>
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "name": "template-vue2",
3
3
  "version": "0.1.0",
4
- "private": true,
5
4
  "scripts": {
6
5
  "dev": "blocklet dev",
7
- "lint": "eslint src api --ext .mjs,.js,.vue",
8
- "lint:fix": "npm run lint -- --fix",
9
- "start": "npm-run-all --parallel start:*",
10
- "start:client": "vue-cli-service serve",
11
- "start:api": "NODE_ENV=development nodemon api/index.js -w api",
6
+ "start": "cross-env NODE_ENV=development nodemon api/dev.js -w api",
12
7
  "clean": "node scripts/build-clean.js",
13
8
  "bundle": "npm run bundle:client && npm run bundle:api",
14
- "bundle:client": "PUBLIC_PATH=/.blocklet/proxy/<%= did %> vue-cli-service build",
9
+ "bundle:client": "vite build",
15
10
  "bundle:api": "npm run clean && blocklet bundle --zip --create-release",
16
11
  "deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
17
12
  "upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
13
+ "lint": "eslint src api --ext .mjs,.js,.vue",
14
+ "lint:fix": "npm run lint -- --fix",
18
15
  "deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
19
16
  "dev:child": "blocklet dev --component --app-did=<%= did %>",
20
17
  "prepare": "husky install",
21
18
  "bump-version": "zx scripts/bump-version.mjs"
22
19
  },
23
20
  "dependencies": {
24
- "@arcblock/did-auth": "^1.17.23",
21
+ "@arcblock/did-auth": "^1.18.6",
25
22
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
26
- "@blocklet/sdk": "^1.8.30",
27
- "@ocap/client": "^1.17.23",
28
- "@ocap/mcrypto": "^1.17.23",
29
- "@ocap/wallet": "^1.17.23",
23
+ "@blocklet/sdk": "^1.8.33",
24
+ "@ocap/client": "^1.18.6",
25
+ "@ocap/mcrypto": "^1.18.6",
26
+ "@ocap/wallet": "^1.18.6",
30
27
  "axios": "^0.27.2",
31
28
  "compression": "^1.7.4",
32
29
  "cookie-parser": "^1.4.6",
@@ -35,27 +32,25 @@
35
32
  "express": "^4.18.2",
36
33
  "express-async-errors": "^3.1.1",
37
34
  "express-history-api-fallback": "^2.2.1",
38
- "vue": "~2.6.14"
35
+ "vue": "^2.7.13"
39
36
  },
40
37
  "devDependencies": {
41
- "@babel/core": "^7.19.3",
42
- "@babel/eslint-parser": "^7.19.1",
43
- "@vue/cli-plugin-babel": "~5.0.8",
44
- "@vue/cli-plugin-eslint": "~5.0.8",
45
- "@vue/cli-service": "~5.0.8",
46
- "core-js": "^3.25.5",
47
- "eslint": "^8.25.0",
38
+ "@vitejs/plugin-vue2": "^2.0.0",
39
+ "bumpp": "^8.2.1",
40
+ "cross-env": "^7.0.3",
41
+ "eslint": "^8.26.0",
48
42
  "eslint-config-prettier": "^8.5.0",
49
43
  "eslint-plugin-prettier": "^4.2.1",
50
- "eslint-plugin-vue": "^9.6.0",
44
+ "eslint-plugin-vue": "^9.7.0",
51
45
  "husky": "^8.0.1",
52
46
  "lint-staged": "^12.5.0",
53
47
  "nodemon": "^2.0.20",
54
48
  "npm-run-all": "^4.1.5",
55
- "vue-template-compiler": "~2.6.14",
56
- "zx": "^7.1.1",
49
+ "prettier": "^2.7.1",
57
50
  "rimraf": "^3.0.2",
58
- "bumpp": "^8.2.1"
51
+ "vite": "^3.2.2",
52
+ "vite-plugin-blocklet": "^0.5.0",
53
+ "zx": "^7.1.1"
59
54
  },
60
55
  "lint-staged": {
61
56
  "*.{mjs,js,vue}": [
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'vite';
2
+ import vue from '@vitejs/plugin-vue2';
3
+ import { createBlockletPlugin } from 'vite-plugin-blocklet';
4
+
5
+ // https://vitejs.dev/config/
6
+ export default defineConfig(() => {
7
+ return {
8
+ plugins: [vue(), createBlockletPlugin()],
9
+ };
10
+ });
@@ -4,9 +4,6 @@ module.exports = {
4
4
  node: true,
5
5
  },
6
6
  extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
7
- parserOptions: {
8
- parser: '@babel/eslint-parser',
9
- },
10
7
  rules: {
11
8
  'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
12
9
  'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
7
+ <meta name="theme-color" content="#4F6AF5" />
8
+ <meta name="description" content="Web site created using create-blocklet" />
9
+ </head>
10
+ <body>
11
+ <noscript>You need to enable JavaScript to run this app.</noscript>
12
+ <div id="app"></div>
13
+ <script type="module" src="/src/main.js"></script>
14
+ </body>
15
+ </html>
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "template-vue2",
3
3
  "version": "0.1.0",
4
- "private": true,
5
4
  "scripts": {
6
- "dev": "vue-cli-service serve",
5
+ "dev": "blocklet dev",
6
+ "start": "vite --host",
7
7
  "lint": "eslint src --ext .mjs,.js,.vue",
8
8
  "lint:fix": "npm run lint -- --fix",
9
- "start": "vue-cli-service serve",
9
+ "serve": "vite preview",
10
10
  "clean": "node scripts/build-clean.js",
11
- "bundle": "npm run clean && PUBLIC_PATH=/.blocklet/proxy/<%= did %> vue-cli-service build && blocklet bundle --zip --create-release",
11
+ "bundle": "npm run clean && vite build && blocklet bundle --zip --create-release",
12
12
  "deploy": "npm run bundle && blocklet deploy .blocklet/bundle",
13
13
  "upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json",
14
14
  "deploy:child": "npm run bundle && blocklet deploy .blocklet/bundle --app-did=<%= did %>",
@@ -17,25 +17,22 @@
17
17
  "bump-version": "zx scripts/bump-version.mjs"
18
18
  },
19
19
  "dependencies": {
20
- "vue": "~2.6.14"
20
+ "vue": "^2.7.13"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/core": "^7.19.3",
24
- "@babel/eslint-parser": "^7.19.1",
25
- "@vue/cli-plugin-babel": "~5.0.8",
26
- "@vue/cli-plugin-eslint": "~5.0.8",
27
- "@vue/cli-service": "~5.0.8",
28
- "core-js": "^3.25.5",
29
- "eslint": "^8.25.0",
23
+ "@vitejs/plugin-vue2": "^2.0.0",
24
+ "bumpp": "^8.2.1",
25
+ "eslint": "^8.26.0",
30
26
  "eslint-config-prettier": "^8.5.0",
31
27
  "eslint-plugin-prettier": "^4.2.1",
32
- "eslint-plugin-vue": "^9.6.0",
28
+ "eslint-plugin-vue": "^9.7.0",
33
29
  "husky": "^8.0.1",
34
30
  "lint-staged": "^12.5.0",
35
- "vue-template-compiler": "~2.6.14",
36
- "zx": "^7.1.1",
31
+ "prettier": "^2.7.1",
37
32
  "rimraf": "^3.0.2",
38
- "bumpp": "^8.2.1"
33
+ "vite": "^3.2.2",
34
+ "vite-plugin-blocklet": "^0.5.0",
35
+ "zx": "^7.1.1"
39
36
  },
40
37
  "lint-staged": {
41
38
  "*.{mjs,js,vue}": [
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'vite';
2
+ import vue from '@vitejs/plugin-vue2';
3
+ import { createBlockletPlugin } from 'vite-plugin-blocklet';
4
+
5
+ // https://vitejs.dev/config/
6
+ export default defineConfig(() => {
7
+ return {
8
+ plugins: [vue(), createBlockletPlugin()],
9
+ };
10
+ });
@@ -15,9 +15,9 @@
15
15
  "bump-version": "zx scripts/bump-version.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@xmark/cli": "^2.4.83",
19
- "zx": "^7.1.1",
18
+ "@xmark/cli": "^2.4.85",
19
+ "bumpp": "^8.2.1",
20
20
  "rimraf": "^3.0.2",
21
- "bumpp": "^8.2.1"
21
+ "zx": "^7.1.1"
22
22
  }
23
23
  }
@@ -1,2 +0,0 @@
1
- GENERATE_SOURCEMAP=false
2
- APP_TITLE=''
@@ -1,2 +0,0 @@
1
- GENERATE_SOURCEMAP=false
2
- APP_TITLE=''
@@ -1,2 +0,0 @@
1
- GENERATE_SOURCEMAP=false
2
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['@vue/cli-plugin-babel/preset'],
3
- };
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "moduleResolution": "node",
7
- "paths": {
8
- "@/*": [
9
- "src/*"
10
- ]
11
- },
12
- "lib": [
13
- "esnext",
14
- "dom",
15
- "dom.iterable",
16
- "scripthost"
17
- ]
18
- }
19
- }
@@ -1,25 +0,0 @@
1
- require('dotenv-flow').config();
2
-
3
- const mountPoint = process.env.BLOCKLET_DEV_MOUNT_POINT || '';
4
- const port = process.env.BLOCKLET_PORT || process.env.PORT || 3000;
5
- const apiPort = process.env.API_PORT || 3030;
6
- const apiPrefix = `${mountPoint}/api`;
7
- const whenDev = process.env.NODE_ENV === 'development';
8
-
9
- module.exports = {
10
- publicPath: whenDev ? '' : process.env.PUBLIC_PATH || '/',
11
- devServer: {
12
- port,
13
- allowedHosts: 'all',
14
- client: {
15
- // If you want to development this blocklet without blocklet-server, you can delete next line, otherwise the hot reload will be failed.
16
- webSocketURL: `wss://0.0.0.0${mountPoint}/ws`,
17
- },
18
- proxy: {
19
- [apiPrefix]: {
20
- target: `http://127.0.0.1:${apiPort}`,
21
- rewrite: (path) => path.replace(apiPrefix, '/api'), // rewrite path when blocklet dev
22
- },
23
- },
24
- },
25
- };
@@ -1 +0,0 @@
1
- APP_TITLE=''
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['@vue/cli-plugin-babel/preset'],
3
- };
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "moduleResolution": "node",
7
- "paths": {
8
- "@/*": [
9
- "src/*"
10
- ]
11
- },
12
- "lib": [
13
- "esnext",
14
- "dom",
15
- "dom.iterable",
16
- "scripthost"
17
- ]
18
- }
19
- }
@@ -1,17 +0,0 @@
1
- const port = process.env.BLOCKLET_PORT || process.env.PORT || 3000;
2
-
3
- const whenDev = process.env.NODE_ENV === 'development';
4
-
5
- const mountPoint = process.env.BLOCKLET_DEV_MOUNT_POINT || '';
6
-
7
- module.exports = {
8
- publicPath: whenDev ? '' : process.env.PUBLIC_PATH || '/',
9
- devServer: {
10
- port,
11
- allowedHosts: 'all',
12
- client: {
13
- // If you want to development this blocklet without blocklet-server, you can delete next line, otherwise the hot reload will be failed.
14
- webSocketURL: `wss://0.0.0.0${mountPoint}/ws`,
15
- },
16
- },
17
- };