@alexaegis/autotool-plugin-svelte 0.3.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.
package/index.cjs ADDED
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const node_path = require("node:path");
4
+ const name = "@alexaegis/autotool-plugin-svelte";
5
+ const description = "Setup svelte";
6
+ const version = "0.3.0";
7
+ const license = "MIT";
8
+ const archetype = {
9
+ platform: "node",
10
+ framework: "autotool",
11
+ language: "ts",
12
+ kind: "lib"
13
+ };
14
+ const keywords = [
15
+ "autotool-plugin",
16
+ "managed-by-autotool",
17
+ "svelte"
18
+ ];
19
+ const type = "module";
20
+ const publishConfig = {
21
+ access: "public"
22
+ };
23
+ const scripts = {
24
+ build: "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
25
+ "build-lib_": "vite build",
26
+ "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
27
+ "lint:depcheck_": "depcheck",
28
+ "lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
29
+ "lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
30
+ "lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
31
+ "lint:format_": "prettier --check .",
32
+ "lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
33
+ "lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
34
+ "lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
35
+ "lint:tsc_": "tsc --noEmit",
36
+ publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
37
+ publint_: "publint dist",
38
+ format: "prettier --write .",
39
+ test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
40
+ test_: "vitest --passWithNoTests --coverage --run",
41
+ "test:watch": "vitest --passWithNoTests --coverage"
42
+ };
43
+ const exports$1 = {
44
+ ".": {
45
+ types: "./src/index.ts",
46
+ "import": "./dist/index.js",
47
+ require: "./dist/index.cjs"
48
+ },
49
+ "./readme": "./readme.md",
50
+ "./svelte.config": "./static/svelte.config.txt"
51
+ };
52
+ const dependencies = {
53
+ "@alexaegis/coverage-tools": "^0.1.8",
54
+ "@alexaegis/logging": "^0.1.8",
55
+ "@sveltejs/kit": "^1.18.0",
56
+ "autotool-plugin": "^0.0.4",
57
+ svelte: "^3.59.1",
58
+ "svelte-check": "^3.3.2",
59
+ "svelte-preprocess": "^5.0.3"
60
+ };
61
+ const devDependencies = {
62
+ "@alexaegis/eslint-config-vitest": "^0.3.0",
63
+ "@alexaegis/ts": "^0.3.0",
64
+ "@alexaegis/vite": "^0.3.0",
65
+ "@alexaegis/vitest": "^0.3.0",
66
+ "@types/node": "^20.2.1",
67
+ "@vitest/coverage-c8": "^0.31.1",
68
+ publint: "^0.1.11",
69
+ typescript: "^5.0.4",
70
+ vite: "^4.3.8",
71
+ vitest: "^0.31.1"
72
+ };
73
+ const packageJson = {
74
+ name,
75
+ description,
76
+ version,
77
+ license,
78
+ "private": false,
79
+ archetype,
80
+ keywords,
81
+ type,
82
+ publishConfig,
83
+ scripts,
84
+ exports: exports$1,
85
+ dependencies,
86
+ devDependencies
87
+ };
88
+ const plugin = (_options) => {
89
+ const packageJsonFilter = {
90
+ archetype: {
91
+ framework: "svelte"
92
+ }
93
+ };
94
+ return {
95
+ name: packageJson.name,
96
+ elements: [
97
+ {
98
+ description: "package svelte config file",
99
+ executor: "fileCopy",
100
+ packageKind: "regular",
101
+ packageJsonFilter,
102
+ sourceFile: node_path.join("static", "svelte.config.txt"),
103
+ targetFile: "svelte.config.js",
104
+ sourcePluginPackageName: packageJson.name
105
+ },
106
+ {
107
+ description: "workspace scripts and devDependencies",
108
+ executor: "packageJson",
109
+ packageKind: "root",
110
+ data: {
111
+ scripts: {
112
+ "lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo"
113
+ },
114
+ devDependencies: {
115
+ "svelte-check": packageJson.dependencies["svelte-check"]
116
+ // added to the root for lint-staged
117
+ }
118
+ }
119
+ },
120
+ {
121
+ description: "package svelte scripts and devDependencies",
122
+ executor: "packageJson",
123
+ packageKind: "regular",
124
+ packageJsonFilter,
125
+ data: {
126
+ scripts: {
127
+ start: "TARGET_ENV='local' vite",
128
+ "lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
129
+ "lint:svelte_": "svelte-check --tsconfig ./tsconfig.json"
130
+ },
131
+ devDependencies: {
132
+ svelte: packageJson.dependencies.svelte,
133
+ "svelte-check": packageJson.dependencies["svelte-check"],
134
+ "svelte-preprocess": packageJson.dependencies["svelte-preprocess"],
135
+ "@sveltejs/kit": packageJson.dependencies["@sveltejs/kit"]
136
+ }
137
+ }
138
+ }
139
+ ]
140
+ };
141
+ };
142
+ exports.default = plugin;
143
+ exports.plugin = plugin;
144
+ //# sourceMappingURL=index.cjs.map
package/index.cjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype PackageJsonFilter,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json';\n\nexport const plugin: AutotoolPlugin = (_options): AutotoolPluginObject => {\n\tconst packageJsonFilter: PackageJsonFilter = {\n\t\tarchetype: {\n\t\t\tframework: 'svelte',\n\t\t},\n\t};\n\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'package svelte config file',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter,\n\t\t\t\tsourceFile: join('static', 'svelte.config.txt'),\n\t\t\t\ttargetFile: 'svelte.config.js',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\t'lint:svelte':\n\t\t\t\t\t\t\t'turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'svelte-check': packageJson.dependencies['svelte-check'], // added to the root for lint-staged\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package svelte scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter,\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tstart: \"TARGET_ENV='local' vite\",\n\t\t\t\t\t\t'lint:svelte':\n\t\t\t\t\t\t\t'turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}',\n\t\t\t\t\t\t'lint:svelte_': 'svelte-check --tsconfig ./tsconfig.json',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\tsvelte: packageJson.dependencies.svelte,\n\t\t\t\t\t\t'svelte-check': packageJson.dependencies['svelte-check'],\n\t\t\t\t\t\t'svelte-preprocess': packageJson.dependencies['svelte-preprocess'],\n\t\t\t\t\t\t'@sveltejs/kit': packageJson.dependencies['@sveltejs/kit'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"names":["join"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQa,MAAA,SAAyB,CAAC,aAAmC;AACzE,QAAM,oBAAuC;AAAA,IAC5C,WAAW;AAAA,MACV,WAAW;AAAA,IACZ;AAAA,EAAA;AAGM,SAAA;AAAA,IACN,MAAM,YAAY;AAAA,IAClB,UAAU;AAAA,MACT;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb;AAAA,QACA,YAAYA,UAAAA,KAAK,UAAU,mBAAmB;AAAA,QAC9C,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MAEA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,MAAM;AAAA,UACL,SAAS;AAAA,YACR,eACC;AAAA,UACF;AAAA,UACA,iBAAiB;AAAA,YAChB,gBAAgB,YAAY,aAAa,cAAc;AAAA;AAAA,UACxD;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb;AAAA,QACA,MAAM;AAAA,UACL,SAAS;AAAA,YACR,OAAO;AAAA,YACP,eACC;AAAA,YACD,gBAAgB;AAAA,UACjB;AAAA,UACA,iBAAiB;AAAA,YAChB,QAAQ,YAAY,aAAa;AAAA,YACjC,gBAAgB,YAAY,aAAa,cAAc;AAAA,YACvD,qBAAqB,YAAY,aAAa,mBAAmB;AAAA,YACjE,iBAAiB,YAAY,aAAa,eAAe;AAAA,UAC1D;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EAAA;AAEF;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { type AutotoolPlugin } from 'autotool-plugin';
2
+ export declare const plugin: AutotoolPlugin;
3
+ export default plugin;
4
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,iBAAiB,CAAC;AAIzB,eAAO,MAAM,MAAM,EAAE,cAwDpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/index.js ADDED
@@ -0,0 +1,144 @@
1
+ import { join } from "node:path";
2
+ const name = "@alexaegis/autotool-plugin-svelte";
3
+ const description = "Setup svelte";
4
+ const version = "0.3.0";
5
+ const license = "MIT";
6
+ const archetype = {
7
+ platform: "node",
8
+ framework: "autotool",
9
+ language: "ts",
10
+ kind: "lib"
11
+ };
12
+ const keywords = [
13
+ "autotool-plugin",
14
+ "managed-by-autotool",
15
+ "svelte"
16
+ ];
17
+ const type = "module";
18
+ const publishConfig = {
19
+ access: "public"
20
+ };
21
+ const scripts = {
22
+ build: "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
23
+ "build-lib_": "vite build",
24
+ "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
25
+ "lint:depcheck_": "depcheck",
26
+ "lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
27
+ "lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
28
+ "lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
29
+ "lint:format_": "prettier --check .",
30
+ "lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
31
+ "lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
32
+ "lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
33
+ "lint:tsc_": "tsc --noEmit",
34
+ publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
35
+ publint_: "publint dist",
36
+ format: "prettier --write .",
37
+ test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
38
+ test_: "vitest --passWithNoTests --coverage --run",
39
+ "test:watch": "vitest --passWithNoTests --coverage"
40
+ };
41
+ const exports = {
42
+ ".": {
43
+ types: "./src/index.ts",
44
+ "import": "./dist/index.js",
45
+ require: "./dist/index.cjs"
46
+ },
47
+ "./readme": "./readme.md",
48
+ "./svelte.config": "./static/svelte.config.txt"
49
+ };
50
+ const dependencies = {
51
+ "@alexaegis/coverage-tools": "^0.1.8",
52
+ "@alexaegis/logging": "^0.1.8",
53
+ "@sveltejs/kit": "^1.18.0",
54
+ "autotool-plugin": "^0.0.4",
55
+ svelte: "^3.59.1",
56
+ "svelte-check": "^3.3.2",
57
+ "svelte-preprocess": "^5.0.3"
58
+ };
59
+ const devDependencies = {
60
+ "@alexaegis/eslint-config-vitest": "^0.3.0",
61
+ "@alexaegis/ts": "^0.3.0",
62
+ "@alexaegis/vite": "^0.3.0",
63
+ "@alexaegis/vitest": "^0.3.0",
64
+ "@types/node": "^20.2.1",
65
+ "@vitest/coverage-c8": "^0.31.1",
66
+ publint: "^0.1.11",
67
+ typescript: "^5.0.4",
68
+ vite: "^4.3.8",
69
+ vitest: "^0.31.1"
70
+ };
71
+ const packageJson = {
72
+ name,
73
+ description,
74
+ version,
75
+ license,
76
+ "private": false,
77
+ archetype,
78
+ keywords,
79
+ type,
80
+ publishConfig,
81
+ scripts,
82
+ exports,
83
+ dependencies,
84
+ devDependencies
85
+ };
86
+ const plugin = (_options) => {
87
+ const packageJsonFilter = {
88
+ archetype: {
89
+ framework: "svelte"
90
+ }
91
+ };
92
+ return {
93
+ name: packageJson.name,
94
+ elements: [
95
+ {
96
+ description: "package svelte config file",
97
+ executor: "fileCopy",
98
+ packageKind: "regular",
99
+ packageJsonFilter,
100
+ sourceFile: join("static", "svelte.config.txt"),
101
+ targetFile: "svelte.config.js",
102
+ sourcePluginPackageName: packageJson.name
103
+ },
104
+ {
105
+ description: "workspace scripts and devDependencies",
106
+ executor: "packageJson",
107
+ packageKind: "root",
108
+ data: {
109
+ scripts: {
110
+ "lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo"
111
+ },
112
+ devDependencies: {
113
+ "svelte-check": packageJson.dependencies["svelte-check"]
114
+ // added to the root for lint-staged
115
+ }
116
+ }
117
+ },
118
+ {
119
+ description: "package svelte scripts and devDependencies",
120
+ executor: "packageJson",
121
+ packageKind: "regular",
122
+ packageJsonFilter,
123
+ data: {
124
+ scripts: {
125
+ start: "TARGET_ENV='local' vite",
126
+ "lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
127
+ "lint:svelte_": "svelte-check --tsconfig ./tsconfig.json"
128
+ },
129
+ devDependencies: {
130
+ svelte: packageJson.dependencies.svelte,
131
+ "svelte-check": packageJson.dependencies["svelte-check"],
132
+ "svelte-preprocess": packageJson.dependencies["svelte-preprocess"],
133
+ "@sveltejs/kit": packageJson.dependencies["@sveltejs/kit"]
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ };
139
+ };
140
+ export {
141
+ plugin as default,
142
+ plugin
143
+ };
144
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype PackageJsonFilter,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json';\n\nexport const plugin: AutotoolPlugin = (_options): AutotoolPluginObject => {\n\tconst packageJsonFilter: PackageJsonFilter = {\n\t\tarchetype: {\n\t\t\tframework: 'svelte',\n\t\t},\n\t};\n\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'package svelte config file',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter,\n\t\t\t\tsourceFile: join('static', 'svelte.config.txt'),\n\t\t\t\ttargetFile: 'svelte.config.js',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\t'lint:svelte':\n\t\t\t\t\t\t\t'turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'svelte-check': packageJson.dependencies['svelte-check'], // added to the root for lint-staged\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package svelte scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter,\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tstart: \"TARGET_ENV='local' vite\",\n\t\t\t\t\t\t'lint:svelte':\n\t\t\t\t\t\t\t'turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}',\n\t\t\t\t\t\t'lint:svelte_': 'svelte-check --tsconfig ./tsconfig.json',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\tsvelte: packageJson.dependencies.svelte,\n\t\t\t\t\t\t'svelte-check': packageJson.dependencies['svelte-check'],\n\t\t\t\t\t\t'svelte-preprocess': packageJson.dependencies['svelte-preprocess'],\n\t\t\t\t\t\t'@sveltejs/kit': packageJson.dependencies['@sveltejs/kit'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQa,MAAA,SAAyB,CAAC,aAAmC;AACzE,QAAM,oBAAuC;AAAA,IAC5C,WAAW;AAAA,MACV,WAAW;AAAA,IACZ;AAAA,EAAA;AAGM,SAAA;AAAA,IACN,MAAM,YAAY;AAAA,IAClB,UAAU;AAAA,MACT;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb;AAAA,QACA,YAAY,KAAK,UAAU,mBAAmB;AAAA,QAC9C,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MAEA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,MAAM;AAAA,UACL,SAAS;AAAA,YACR,eACC;AAAA,UACF;AAAA,UACA,iBAAiB;AAAA,YAChB,gBAAgB,YAAY,aAAa,cAAc;AAAA;AAAA,UACxD;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb;AAAA,QACA,MAAM;AAAA,UACL,SAAS;AAAA,YACR,OAAO;AAAA,YACP,eACC;AAAA,YACD,gBAAgB;AAAA,UACjB;AAAA,UACA,iBAAiB;AAAA,YAChB,QAAQ,YAAY,aAAa;AAAA,YACjC,gBAAgB,YAAY,aAAa,cAAc;AAAA,YACvD,qBAAqB,YAAY,aAAa,mBAAmB;AAAA,YACjE,iBAAiB,YAAY,aAAa,eAAe;AAAA,UAC1D;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EAAA;AAEF;"}
package/license ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Győri Sándor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/manifest.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "src/index.ts": {
3
+ "file": "index.cjs",
4
+ "isEntry": true,
5
+ "src": "src/index.ts"
6
+ }
7
+ }
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@alexaegis/autotool-plugin-svelte",
3
+ "description": "Setup svelte",
4
+ "version": "0.3.0",
5
+ "license": "mit",
6
+ "private": false,
7
+ "archetype": {
8
+ "platform": "node",
9
+ "framework": "autotool",
10
+ "language": "ts",
11
+ "kind": "lib"
12
+ },
13
+ "keywords": [
14
+ "eslint",
15
+ "javascript",
16
+ "js",
17
+ "managed-by-autotool",
18
+ "ts",
19
+ "tsconfig",
20
+ "turbo",
21
+ "typescript"
22
+ ],
23
+ "author": {
24
+ "email": "alexaegis@gmail.com",
25
+ "name": "Alex Aegis",
26
+ "url": "https://github.com/AlexAegis"
27
+ },
28
+ "homepage": "https://github.com/AlexAegis/js-tooling",
29
+ "bugs": {
30
+ "email": "alexaegis@gmail.com",
31
+ "url": "https://github.com/AlexAegis/js-tooling/issues"
32
+ },
33
+ "type": "module",
34
+ "config": {
35
+ "engine-strict": true
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "engines": {
41
+ "node": ">=18.13.0"
42
+ },
43
+ "exports": {
44
+ ".": {
45
+ "types": "./index.d.ts",
46
+ "import": "./index.js",
47
+ "require": "./index.cjs"
48
+ },
49
+ "./readme": "./readme.md",
50
+ "./svelte.config": "./static/svelte.config.txt"
51
+ },
52
+ "dependencies": {
53
+ "@alexaegis/coverage-tools": "^0.1.8",
54
+ "@alexaegis/logging": "^0.1.8",
55
+ "@sveltejs/kit": "^1.18.0",
56
+ "autotool-plugin": "^0.0.4",
57
+ "svelte": "^3.59.1",
58
+ "svelte-check": "^3.3.2",
59
+ "svelte-preprocess": "^5.0.3"
60
+ },
61
+ "devDependencies": {
62
+ "@alexaegis/eslint-config-vitest": "^0.3.0",
63
+ "@alexaegis/ts": "^0.3.0",
64
+ "@alexaegis/vite": "^0.3.0",
65
+ "@alexaegis/vitest": "^0.3.0",
66
+ "@types/node": "^20.2.1",
67
+ "@vitest/coverage-c8": "^0.31.1",
68
+ "publint": "^0.1.11",
69
+ "typescript": "^5.0.4",
70
+ "vite": "^4.3.8",
71
+ "vitest": "^0.31.1"
72
+ },
73
+ "scripts": {
74
+ "build": "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
75
+ "build-lib_": "vite build",
76
+ "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
77
+ "lint:depcheck_": "depcheck",
78
+ "lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
79
+ "lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
80
+ "lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
81
+ "lint:format_": "prettier --check .",
82
+ "lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
83
+ "lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
84
+ "lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
85
+ "lint:tsc_": "tsc --noEmit",
86
+ "publint": "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
87
+ "publint_": "publint dist",
88
+ "format": "prettier --write .",
89
+ "test": "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
90
+ "test_": "vitest --passWithNoTests --coverage --run",
91
+ "test:watch": "vitest --passWithNoTests --coverage"
92
+ }
93
+ }
package/readme.md ADDED
@@ -0,0 +1,5 @@
1
+ # [@alexaegis/autotool-plugin-svelte](https://github.com/AlexAegis/js-tooling/tree/master/packages/autotool-plugin-svelte)
2
+
3
+ [![npm](https://img.shields.io/npm/v/@alexaegis/autotool-plugin-svelte/latest)](https://www.npmjs.com/package/@alexaegis/autotool-plugin-svelte)
4
+ [![ci](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml/badge.svg)](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml)
5
+ [![codacy](https://app.codacy.com/project/badge/Grade/7939332dc9454dc1b0529e720ff902e6)](https://www.codacy.com/gh/AlexAegis/js-tooling/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AlexAegis/js-tooling&utm_campaign=Badge_Grade)
@@ -0,0 +1,16 @@
1
+ // managed-by-autotool
2
+
3
+ import sveltePreprocess from 'svelte-preprocess';
4
+
5
+ /** @type {import('@sveltejs/kit').Config} */
6
+ export default {
7
+ // Consult https://github.com/sveltejs/svelte-preprocess
8
+ // for more information about preprocessors
9
+ preprocess: sveltePreprocess(),
10
+ vitePlugin: {
11
+ inspector: {
12
+ holdMode: true,
13
+ toggleKeyCombo: 'shift',
14
+ },
15
+ },
16
+ };