@alexaegis/autotool-plugin-svelte 0.3.0 → 0.3.2
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 +25 -20
- package/index.cjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +25 -20
- package/index.js.map +1 -1
- package/package.json +29 -21
package/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const node_path = require("node:path");
|
|
4
4
|
const name = "@alexaegis/autotool-plugin-svelte";
|
|
5
5
|
const description = "Setup svelte";
|
|
6
|
-
const version = "0.3.
|
|
6
|
+
const version = "0.3.2";
|
|
7
7
|
const license = "MIT";
|
|
8
8
|
const archetype = {
|
|
9
9
|
platform: "node",
|
|
@@ -28,14 +28,16 @@ const scripts = {
|
|
|
28
28
|
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
29
29
|
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
30
30
|
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
31
|
-
"lint:format_": "prettier --check .",
|
|
31
|
+
"lint:format_": "prettier --no-plugin-search --cache-location .cache/prettier --check .",
|
|
32
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
|
|
33
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
34
34
|
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
35
35
|
"lint:tsc_": "tsc --noEmit",
|
|
36
36
|
publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
37
37
|
publint_: "publint dist",
|
|
38
|
-
|
|
38
|
+
all: "turbo run all_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
39
|
+
format: "turbo run format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
40
|
+
format_: "prettier --no-plugin-search --cache-location .cache/prettier --write .",
|
|
39
41
|
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
40
42
|
test_: "vitest --passWithNoTests --coverage --run",
|
|
41
43
|
"test:watch": "vitest --passWithNoTests --coverage"
|
|
@@ -50,25 +52,25 @@ const exports$1 = {
|
|
|
50
52
|
"./svelte.config": "./static/svelte.config.txt"
|
|
51
53
|
};
|
|
52
54
|
const dependencies = {
|
|
53
|
-
"@alexaegis/coverage-tools": "^0.
|
|
54
|
-
"@alexaegis/logging": "^0.
|
|
55
|
-
"@sveltejs/kit": "^1.
|
|
56
|
-
"autotool-plugin": "^0.0.
|
|
55
|
+
"@alexaegis/coverage-tools": "^0.2.2",
|
|
56
|
+
"@alexaegis/logging": "^0.2.2",
|
|
57
|
+
"@sveltejs/kit": "^1.20.4",
|
|
58
|
+
"autotool-plugin": "^0.0.5",
|
|
57
59
|
svelte: "^3.59.1",
|
|
58
|
-
"svelte-check": "^3.3
|
|
59
|
-
"svelte-preprocess": "^5.0.
|
|
60
|
+
"svelte-check": "^3.4.3",
|
|
61
|
+
"svelte-preprocess": "^5.0.4"
|
|
60
62
|
};
|
|
61
63
|
const devDependencies = {
|
|
62
|
-
"@alexaegis/eslint-config-vitest": "^0.3.
|
|
63
|
-
"@alexaegis/ts": "^0.3.
|
|
64
|
-
"@alexaegis/vite": "^0.3.
|
|
65
|
-
"@alexaegis/vitest": "^0.3.
|
|
66
|
-
"@types/node": "^20.
|
|
67
|
-
"@vitest/coverage-c8": "^0.
|
|
68
|
-
publint: "^0.1.
|
|
69
|
-
typescript: "^5.
|
|
70
|
-
vite: "^4.3.
|
|
71
|
-
vitest: "^0.
|
|
64
|
+
"@alexaegis/eslint-config-vitest": "^0.3.2",
|
|
65
|
+
"@alexaegis/ts": "^0.3.2",
|
|
66
|
+
"@alexaegis/vite": "^0.3.2",
|
|
67
|
+
"@alexaegis/vitest": "^0.3.2",
|
|
68
|
+
"@types/node": "^20.3.1",
|
|
69
|
+
"@vitest/coverage-c8": "^0.32.2",
|
|
70
|
+
publint: "^0.1.12",
|
|
71
|
+
typescript: "^5.1.3",
|
|
72
|
+
vite: "^4.3.9",
|
|
73
|
+
vitest: "^0.32.2"
|
|
72
74
|
};
|
|
73
75
|
const packageJson = {
|
|
74
76
|
name,
|
|
@@ -99,6 +101,7 @@ const plugin = (_options) => {
|
|
|
99
101
|
executor: "fileCopy",
|
|
100
102
|
packageKind: "regular",
|
|
101
103
|
packageJsonFilter,
|
|
104
|
+
formatWithPrettier: true,
|
|
102
105
|
sourceFile: node_path.join("static", "svelte.config.txt"),
|
|
103
106
|
targetFile: "svelte.config.js",
|
|
104
107
|
sourcePluginPackageName: packageJson.name
|
|
@@ -125,6 +128,8 @@ const plugin = (_options) => {
|
|
|
125
128
|
data: {
|
|
126
129
|
scripts: {
|
|
127
130
|
start: "TARGET_ENV='local' vite",
|
|
131
|
+
postinstall: "svelte-kit sync",
|
|
132
|
+
// This will make sure you get the autogenerated tsconfig file immediately
|
|
128
133
|
"lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
|
|
129
134
|
"lint:svelte_": "svelte-check --tsconfig ./tsconfig.json"
|
|
130
135
|
},
|
package/index.cjs.map
CHANGED
|
@@ -1 +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":"
|
|
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\tformatWithPrettier: true,\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\tpostinstall: 'svelte-kit sync', // This will make sure you get the autogenerated tsconfig file immediately\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,oBAAoB;AAAA,QACpB,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,aAAa;AAAA;AAAA,YACb,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.map
CHANGED
|
@@ -1 +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,
|
|
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,cA0DpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
const name = "@alexaegis/autotool-plugin-svelte";
|
|
3
3
|
const description = "Setup svelte";
|
|
4
|
-
const version = "0.3.
|
|
4
|
+
const version = "0.3.2";
|
|
5
5
|
const license = "MIT";
|
|
6
6
|
const archetype = {
|
|
7
7
|
platform: "node",
|
|
@@ -26,14 +26,16 @@ const scripts = {
|
|
|
26
26
|
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
27
27
|
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
28
28
|
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
29
|
-
"lint:format_": "prettier --check .",
|
|
29
|
+
"lint:format_": "prettier --no-plugin-search --cache-location .cache/prettier --check .",
|
|
30
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
|
|
31
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
32
32
|
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
33
33
|
"lint:tsc_": "tsc --noEmit",
|
|
34
34
|
publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
35
35
|
publint_: "publint dist",
|
|
36
|
-
|
|
36
|
+
all: "turbo run all_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
37
|
+
format: "turbo run format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
38
|
+
format_: "prettier --no-plugin-search --cache-location .cache/prettier --write .",
|
|
37
39
|
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
38
40
|
test_: "vitest --passWithNoTests --coverage --run",
|
|
39
41
|
"test:watch": "vitest --passWithNoTests --coverage"
|
|
@@ -48,25 +50,25 @@ const exports = {
|
|
|
48
50
|
"./svelte.config": "./static/svelte.config.txt"
|
|
49
51
|
};
|
|
50
52
|
const dependencies = {
|
|
51
|
-
"@alexaegis/coverage-tools": "^0.
|
|
52
|
-
"@alexaegis/logging": "^0.
|
|
53
|
-
"@sveltejs/kit": "^1.
|
|
54
|
-
"autotool-plugin": "^0.0.
|
|
53
|
+
"@alexaegis/coverage-tools": "^0.2.2",
|
|
54
|
+
"@alexaegis/logging": "^0.2.2",
|
|
55
|
+
"@sveltejs/kit": "^1.20.4",
|
|
56
|
+
"autotool-plugin": "^0.0.5",
|
|
55
57
|
svelte: "^3.59.1",
|
|
56
|
-
"svelte-check": "^3.3
|
|
57
|
-
"svelte-preprocess": "^5.0.
|
|
58
|
+
"svelte-check": "^3.4.3",
|
|
59
|
+
"svelte-preprocess": "^5.0.4"
|
|
58
60
|
};
|
|
59
61
|
const devDependencies = {
|
|
60
|
-
"@alexaegis/eslint-config-vitest": "^0.3.
|
|
61
|
-
"@alexaegis/ts": "^0.3.
|
|
62
|
-
"@alexaegis/vite": "^0.3.
|
|
63
|
-
"@alexaegis/vitest": "^0.3.
|
|
64
|
-
"@types/node": "^20.
|
|
65
|
-
"@vitest/coverage-c8": "^0.
|
|
66
|
-
publint: "^0.1.
|
|
67
|
-
typescript: "^5.
|
|
68
|
-
vite: "^4.3.
|
|
69
|
-
vitest: "^0.
|
|
62
|
+
"@alexaegis/eslint-config-vitest": "^0.3.2",
|
|
63
|
+
"@alexaegis/ts": "^0.3.2",
|
|
64
|
+
"@alexaegis/vite": "^0.3.2",
|
|
65
|
+
"@alexaegis/vitest": "^0.3.2",
|
|
66
|
+
"@types/node": "^20.3.1",
|
|
67
|
+
"@vitest/coverage-c8": "^0.32.2",
|
|
68
|
+
publint: "^0.1.12",
|
|
69
|
+
typescript: "^5.1.3",
|
|
70
|
+
vite: "^4.3.9",
|
|
71
|
+
vitest: "^0.32.2"
|
|
70
72
|
};
|
|
71
73
|
const packageJson = {
|
|
72
74
|
name,
|
|
@@ -97,6 +99,7 @@ const plugin = (_options) => {
|
|
|
97
99
|
executor: "fileCopy",
|
|
98
100
|
packageKind: "regular",
|
|
99
101
|
packageJsonFilter,
|
|
102
|
+
formatWithPrettier: true,
|
|
100
103
|
sourceFile: join("static", "svelte.config.txt"),
|
|
101
104
|
targetFile: "svelte.config.js",
|
|
102
105
|
sourcePluginPackageName: packageJson.name
|
|
@@ -123,6 +126,8 @@ const plugin = (_options) => {
|
|
|
123
126
|
data: {
|
|
124
127
|
scripts: {
|
|
125
128
|
start: "TARGET_ENV='local' vite",
|
|
129
|
+
postinstall: "svelte-kit sync",
|
|
130
|
+
// This will make sure you get the autogenerated tsconfig file immediately
|
|
126
131
|
"lint:svelte": "turbo run lint:svelte_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
|
|
127
132
|
"lint:svelte_": "svelte-check --tsconfig ./tsconfig.json"
|
|
128
133
|
},
|
package/index.js.map
CHANGED
|
@@ -1 +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":"
|
|
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\tformatWithPrettier: true,\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\tpostinstall: 'svelte-kit sync', // This will make sure you get the autogenerated tsconfig file immediately\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,oBAAoB;AAAA,QACpB,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,aAAa;AAAA;AAAA,YACb,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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexaegis/autotool-plugin-svelte",
|
|
3
3
|
"description": "Setup svelte",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"license": "mit",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"url": "https://github.com/AlexAegis"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/AlexAegis/js-tooling",
|
|
29
|
+
"repository": {
|
|
30
|
+
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
31
|
+
"type": "git",
|
|
32
|
+
"directory": "packages/autotool-plugin-svelte"
|
|
33
|
+
},
|
|
29
34
|
"bugs": {
|
|
30
35
|
"email": "alexaegis@gmail.com",
|
|
31
36
|
"url": "https://github.com/AlexAegis/js-tooling/issues"
|
|
@@ -38,7 +43,8 @@
|
|
|
38
43
|
"access": "public"
|
|
39
44
|
},
|
|
40
45
|
"engines": {
|
|
41
|
-
"node": ">=18.
|
|
46
|
+
"node": ">=18.10.0",
|
|
47
|
+
"pnpm": ">=8.0.0"
|
|
42
48
|
},
|
|
43
49
|
"exports": {
|
|
44
50
|
".": {
|
|
@@ -50,25 +56,25 @@
|
|
|
50
56
|
"./svelte.config": "./static/svelte.config.txt"
|
|
51
57
|
},
|
|
52
58
|
"dependencies": {
|
|
53
|
-
"@alexaegis/coverage-tools": "^0.
|
|
54
|
-
"@alexaegis/logging": "^0.
|
|
55
|
-
"@sveltejs/kit": "^1.
|
|
56
|
-
"autotool-plugin": "^0.0.
|
|
59
|
+
"@alexaegis/coverage-tools": "^0.2.2",
|
|
60
|
+
"@alexaegis/logging": "^0.2.2",
|
|
61
|
+
"@sveltejs/kit": "^1.20.4",
|
|
62
|
+
"autotool-plugin": "^0.0.5",
|
|
57
63
|
"svelte": "^3.59.1",
|
|
58
|
-
"svelte-check": "^3.3
|
|
59
|
-
"svelte-preprocess": "^5.0.
|
|
64
|
+
"svelte-check": "^3.4.3",
|
|
65
|
+
"svelte-preprocess": "^5.0.4"
|
|
60
66
|
},
|
|
61
67
|
"devDependencies": {
|
|
62
|
-
"@alexaegis/eslint-config-vitest": "^0.3.
|
|
63
|
-
"@alexaegis/ts": "^0.3.
|
|
64
|
-
"@alexaegis/vite": "^0.3.
|
|
65
|
-
"@alexaegis/vitest": "^0.3.
|
|
66
|
-
"@types/node": "^20.
|
|
67
|
-
"@vitest/coverage-c8": "^0.
|
|
68
|
-
"publint": "^0.1.
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"vite": "^4.3.
|
|
71
|
-
"vitest": "^0.
|
|
68
|
+
"@alexaegis/eslint-config-vitest": "^0.3.2",
|
|
69
|
+
"@alexaegis/ts": "^0.3.2",
|
|
70
|
+
"@alexaegis/vite": "^0.3.2",
|
|
71
|
+
"@alexaegis/vitest": "^0.3.2",
|
|
72
|
+
"@types/node": "^20.3.1",
|
|
73
|
+
"@vitest/coverage-c8": "^0.32.2",
|
|
74
|
+
"publint": "^0.1.12",
|
|
75
|
+
"typescript": "^5.1.3",
|
|
76
|
+
"vite": "^4.3.9",
|
|
77
|
+
"vitest": "^0.32.2"
|
|
72
78
|
},
|
|
73
79
|
"scripts": {
|
|
74
80
|
"build": "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
@@ -78,14 +84,16 @@
|
|
|
78
84
|
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
79
85
|
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
80
86
|
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
81
|
-
"lint:format_": "prettier --check .",
|
|
87
|
+
"lint:format_": "prettier --no-plugin-search --cache-location .cache/prettier --check .",
|
|
82
88
|
"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
|
|
89
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
84
90
|
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
85
91
|
"lint:tsc_": "tsc --noEmit",
|
|
86
92
|
"publint": "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
87
93
|
"publint_": "publint dist",
|
|
88
|
-
"
|
|
94
|
+
"all": "turbo run all_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
95
|
+
"format": "turbo run format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
96
|
+
"format_": "prettier --no-plugin-search --cache-location .cache/prettier --write .",
|
|
89
97
|
"test": "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-svelte",
|
|
90
98
|
"test_": "vitest --passWithNoTests --coverage --run",
|
|
91
99
|
"test:watch": "vitest --passWithNoTests --coverage"
|