svelte-entitlement 1.2.27 → 1.2.30
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/README.md +1 -1
- package/package.json +12 -8
- package/vite.config.js +0 -43
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://svelte.dev)
|
|
2
2
|
[](https://www.npmjs.com/package/svelte-entitlement)
|
|
3
3
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
4
|
-
[](https://bundlejs.com/?q=svelte-entitlement)
|
|
5
5
|
[](https://npmjs.org/package/svelte-entitlement)
|
|
6
6
|
[](https://github.com/arlac77/svelte-entitlement.git)
|
|
7
7
|
[](https://actions-badge.atrox.dev/arlac77/svelte-entitlement/goto)
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-entitlement",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.30",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
4
7
|
"svelte": "./src/index.svelte",
|
|
5
8
|
"keywords": [
|
|
6
9
|
"component",
|
|
@@ -13,7 +16,7 @@
|
|
|
13
16
|
"start": "vite",
|
|
14
17
|
"test": "npm run test:ava && npm run test:cafe",
|
|
15
18
|
"test:ava": "ava --timeout 2m tests/*.mjs",
|
|
16
|
-
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout
|
|
19
|
+
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app vite",
|
|
17
20
|
"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
21
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
19
22
|
"lint": "npm run lint:docs",
|
|
@@ -29,14 +32,14 @@
|
|
|
29
32
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
30
33
|
"@sveltejs/vite-plugin-svelte": "^1.0.1",
|
|
31
34
|
"ava": "^4.3.1",
|
|
32
|
-
"c8": "^7.
|
|
35
|
+
"c8": "^7.12.0",
|
|
33
36
|
"documentation": "^13.2.5",
|
|
34
|
-
"mf-styling": "^1.2.
|
|
35
|
-
"npm-pkgbuild": "^10.
|
|
37
|
+
"mf-styling": "^1.2.33",
|
|
38
|
+
"npm-pkgbuild": "^10.12.2",
|
|
36
39
|
"semantic-release": "^19.0.3",
|
|
37
40
|
"svelte": "^3.49.0",
|
|
38
|
-
"testcafe": "^1.
|
|
39
|
-
"vite": "^3.0.
|
|
41
|
+
"testcafe": "^1.20.0",
|
|
42
|
+
"vite": "^3.0.2"
|
|
40
43
|
},
|
|
41
44
|
"optionalDependencies": {
|
|
42
45
|
"mf-hosting": "^1.7.1"
|
|
@@ -54,7 +57,8 @@
|
|
|
54
57
|
"${install.dir}": "build/",
|
|
55
58
|
"${nginx.sites.dir}${name}.conf": "pkg/nginx.conf"
|
|
56
59
|
},
|
|
57
|
-
"groups": "examples"
|
|
60
|
+
"groups": "examples",
|
|
61
|
+
"description": "example showing ${name} features in action"
|
|
58
62
|
},
|
|
59
63
|
"release": {
|
|
60
64
|
"plugins": [
|
package/vite.config.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
2
|
-
import { defineConfig } from "vite";
|
|
3
|
-
|
|
4
|
-
export default defineConfig(async ({ command, mode }) => {
|
|
5
|
-
const { extractFromPackage } = await import(
|
|
6
|
-
new URL("node_modules/npm-pkgbuild/src/module.mjs", import.meta.url)
|
|
7
|
-
);
|
|
8
|
-
const res = extractFromPackage({
|
|
9
|
-
dir: new URL("./", import.meta.url).pathname
|
|
10
|
-
});
|
|
11
|
-
const first = await res.next();
|
|
12
|
-
const pkg = first.value;
|
|
13
|
-
const properties = pkg.properties;
|
|
14
|
-
const base = properties["http.path"] + "/";
|
|
15
|
-
const production = mode === "production";
|
|
16
|
-
|
|
17
|
-
process.env["VITE_NAME"] = properties.name;
|
|
18
|
-
process.env["VITE_DESCRIPTION"] = properties.description;
|
|
19
|
-
process.env["VITE_VERSION"] = properties.version;
|
|
20
|
-
|
|
21
|
-
const open = process.env.CI ? {} : { open: base };
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
base,
|
|
25
|
-
root: "tests/app/src",
|
|
26
|
-
worker: { format: "es" },
|
|
27
|
-
plugins: [
|
|
28
|
-
svelte({
|
|
29
|
-
compilerOptions: {
|
|
30
|
-
dev: !production
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
],
|
|
34
|
-
server: { host: true, ...open },
|
|
35
|
-
build: {
|
|
36
|
-
outDir: "../../../build",
|
|
37
|
-
target: "esnext",
|
|
38
|
-
emptyOutDir: true,
|
|
39
|
-
minify: production,
|
|
40
|
-
sourcemap: true
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
});
|