svelte-entitlement 1.2.25 → 1.2.28

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +11 -11
  3. package/vite.config.js +0 -47
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)
2
2
  [![npm](https://img.shields.io/npm/v/svelte-entitlement.svg)](https://www.npmjs.com/package/svelte-entitlement)
3
3
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
- [![minified size](https://badgen.net/bundlephobia/min/svelte-entitlement)](https://bundlephobia.com/result?p=svelte-entitlement)
4
+ [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=svelte-entitlement)
5
5
  [![downloads](http://img.shields.io/npm/dm/svelte-entitlement.svg?style=flat-square)](https://npmjs.org/package/svelte-entitlement)
6
6
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/arlac77/svelte-entitlement.git)
7
7
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fsvelte-entitlement%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/arlac77/svelte-entitlement/goto)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-entitlement",
3
- "version": "1.2.25",
3
+ "version": "1.2.28",
4
4
  "svelte": "./src/index.svelte",
5
5
  "keywords": [
6
6
  "component",
@@ -10,10 +10,10 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "prepare": "vite build",
13
- "start": "vite dev",
13
+ "start": "vite",
14
14
  "test": "npm run test:ava && npm run test:cafe",
15
15
  "test:ava": "ava --timeout 2m tests/*.mjs",
16
- "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 9000 --app-init-delay 3000 --app \"vite\"",
16
+ "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app vite",
17
17
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
18
18
  "docs": "documentation readme --section=API ./src/**/*.mjs",
19
19
  "lint": "npm run lint:docs",
@@ -29,17 +29,17 @@
29
29
  "@semantic-release/release-notes-generator": "^10.0.3",
30
30
  "@sveltejs/vite-plugin-svelte": "^1.0.1",
31
31
  "ava": "^4.3.1",
32
- "c8": "^7.11.3",
32
+ "c8": "^7.12.0",
33
33
  "documentation": "^13.2.5",
34
- "mf-styling": "^1.2.26",
35
- "npm-pkgbuild": "^10.11.2",
34
+ "mf-styling": "^1.2.33",
35
+ "npm-pkgbuild": "^10.12.2",
36
36
  "semantic-release": "^19.0.3",
37
37
  "svelte": "^3.49.0",
38
- "testcafe": "^1.19.0",
39
- "vite": "^3.0.0"
38
+ "testcafe": "^1.20.0",
39
+ "vite": "^3.0.2"
40
40
  },
41
41
  "optionalDependencies": {
42
- "mf-hosting": "^1.7.0"
42
+ "mf-hosting": "^1.7.1"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",
@@ -54,8 +54,8 @@
54
54
  "${install.dir}": "build/",
55
55
  "${nginx.sites.dir}${name}.conf": "pkg/nginx.conf"
56
56
  },
57
- "http.base.path": "/examples",
58
- "groups": "examples"
57
+ "groups": "examples",
58
+ "description": "example showing ${name} features in action"
59
59
  },
60
60
  "release": {
61
61
  "plugins": [
package/vite.config.js DELETED
@@ -1,47 +0,0 @@
1
- import { svelte } from "@sveltejs/vite-plugin-svelte";
2
- //import { extractFromPackage } from "npm-pkgbuild/src/module.mjs";
3
- import { defineConfig } from "vite";
4
-
5
- export default defineConfig(async ({ command, mode }) => {
6
- const { extractFromPackage } = await import(
7
- new URL("node_modules/npm-pkgbuild/src/module.mjs", import.meta.url)
8
- );
9
- const res = extractFromPackage({
10
- dir: new URL("./", import.meta.url).pathname
11
- });
12
- const first = await res.next();
13
- const pkg = first.value;
14
- const properties = pkg.properties;
15
- const base = properties["http.path"] + "/";
16
- const production = mode === "production";
17
-
18
- process.env["VITE_NAME"] = properties.name;
19
- process.env["VITE_DESCRIPTION"] = properties.description;
20
- process.env["VITE_VERSION"] = properties.version;
21
-
22
- return {
23
- base,
24
- root: "tests/app/src",
25
- worker: { format: "es" },
26
- plugins: [
27
- svelte({
28
- compilerOptions: {
29
- dev: !production
30
- }
31
- })
32
- ],
33
- optimizeDeps: {
34
- exclude: [
35
- ...Object.keys(pkg.dependencies).filter(d => d.startsWith("svelte"))
36
- ]
37
- },
38
- server: { host: true },
39
- build: {
40
- outDir: "../../../build",
41
- target: "esnext",
42
- emptyOutDir: true,
43
- minify: production,
44
- sourcemap: true
45
- }
46
- };
47
- });