mf-examples 1.3.15 → 1.3.17

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 by mf-examples
1
+ Copyright (c) 2022-2023 by mf-examples
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![npm](https://img.shields.io/npm/v/mf-examples.svg)](https://www.npmjs.com/package/mf-examples)
2
2
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3
+ [![install size](https://packagephobia.now.sh/badge?p=mf-examples/@1.3.3)](https://packagephobia.now.sh/result?p=mf-examples@1.3.3)
3
4
  [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=mf-examples)
4
5
  [![downloads](http://img.shields.io/npm/dm/mf-examples.svg?style=flat-square)](https://npmjs.org/package/mf-examples)
5
6
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/mf-examples.svg?style=flat-square)](https://github.com/arlac77/mf-examples/issues)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mf-examples",
3
- "version": "1.3.15",
3
+ "version": "1.3.17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,17 +28,17 @@
28
28
  "@semantic-release/commit-analyzer": "^9.0.2",
29
29
  "@semantic-release/exec": "^6.0.3",
30
30
  "@semantic-release/release-notes-generator": "^10.0.3",
31
- "mf-hosting-frontend": "^1.5.3",
32
- "mf-styling": "^1.7.37",
33
- "npm-pkgbuild": "^11.0.0",
34
- "semantic-release": "^20.0.2",
35
- "stylelint": "^14.16.0",
31
+ "mf-hosting-frontend": "^1.6.2",
32
+ "mf-styling": "^1.7.42",
33
+ "npm-pkgbuild": "^11.1.14",
34
+ "semantic-release": "^20.1.0",
35
+ "stylelint": "^14.16.1",
36
36
  "stylelint-config-standard": "^29.0.0",
37
- "vite": "^4.0.4"
37
+ "vite": "^4.1.0"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "https://github.com/arlac77/mf-examples.git"
41
+ "url": "https://github.com/arlac77/mf-examples"
42
42
  },
43
43
  "bugs": {
44
44
  "url": "https://github.com/arlac77/mf-examples/issues"
@@ -58,10 +58,10 @@
58
58
  "svelte-session-manager": ">=2.0.11",
59
59
  "svelte-websocket-store": ">=1.1.33"
60
60
  },
61
- "http.path": "${http.base.path}",
62
- "install.dir": "${install.base.dir}",
61
+ "example": true,
63
62
  "frontend": true,
64
- "example": true
63
+ "http.path": "${http.base.path}",
64
+ "install.dir": "${install.base.dir}"
65
65
  },
66
66
  "release": {
67
67
  "plugins": [
package/src/index.html CHANGED
@@ -2,7 +2,6 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf8" />
5
- {{html.base.href}}
6
5
  <meta name="description" content="{{description}}" />
7
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
8
7
  <meta name="application-name" content="{{name}}" />
@@ -10,9 +9,7 @@
10
9
  <meta name="apple-mobile-web-app-capable" content="yes" />
11
10
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
12
11
  <meta name="mobile-web-app-capable" content="yes" />
13
-
14
- <title>{{name}}</title>
15
-
12
+ <title>{{name}}@{{version}}</title>
16
13
  <link rel="icon" href="images/icon.ico" type="image/x-icon" />
17
14
  <link rel="icon" href="images/icon.svg" type="image/svg+xml" sizes="any" />
18
15
  <link rel="apple-touch-icon" href="images/icon.png" />
package/vite.config.mts CHANGED
@@ -2,26 +2,27 @@ import { defineConfig } from "vite";
2
2
  import { extractFromPackage } from "npm-pkgbuild";
3
3
 
4
4
  export default defineConfig(async ({ command, mode }) => {
5
- const res = extractFromPackage({
6
- dir: new URL("./", import.meta.url).pathname
7
- });
5
+ const res = extractFromPackage(
6
+ {
7
+ dir: new URL("./", import.meta.url).pathname,
8
+ mode
9
+ },
10
+ process.env
11
+ );
8
12
  const first = await res.next();
9
13
  const pkg = first.value;
10
14
  const properties = pkg.properties;
11
- const base = properties["http.path"] + "/";
15
+ const base = properties["http.path"];
12
16
  const production = mode === "production";
13
17
 
14
18
  process.env["VITE_NAME"] = properties.name;
15
19
  process.env["VITE_DESCRIPTION"] = properties.description;
16
20
  process.env["VITE_VERSION"] = properties.version;
17
21
 
18
- const open = process.env.CI ? {} : { open: base };
19
-
20
22
  return {
21
23
  base,
22
24
  root: "src",
23
- worker: { format: "es" },
24
- server: { host: true, ...open },
25
+ server: { host: true },
25
26
  build: {
26
27
  outDir: "../build",
27
28
  target: "esnext",