@spicemod/creator 0.0.26 → 0.0.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.
- package/dist/bin.mjs +188 -150
- package/dist/templates/custom-app/shared/spice.config.js +6 -0
- package/dist/templates/custom-app/shared/spice.config.ts +6 -0
- package/dist/templates/custom-app/shared/tsconfig.app.json +33 -0
- package/dist/templates/custom-app/shared/tsconfig.node.json +25 -0
- package/dist/templates/custom-app/ts/react/src/extension/index.tsx +1 -1
- package/dist/templates/extension/js/react/src/app.jsx +1 -1
- package/dist/templates/extension/shared/spice.config.js +6 -0
- package/dist/templates/extension/shared/spice.config.ts +6 -0
- package/dist/templates/extension/shared/tsconfig.app.json +33 -0
- package/dist/templates/extension/shared/tsconfig.node.json +25 -0
- package/dist/templates/extension/ts/react/src/app.tsx +1 -1
- package/dist/templates/hmrCustomApp.js +284 -0
- package/dist/templates/liveReload.js +298 -45
- package/dist/templates/theme/js/react/src/app.jsx +1 -1
- package/dist/templates/theme/shared/spice.config.js +6 -0
- package/dist/templates/theme/shared/spice.config.ts +6 -0
- package/dist/templates/theme/shared/tsconfig.app.json +33 -0
- package/dist/templates/theme/shared/tsconfig.node.json +25 -0
- package/dist/templates/theme/ts/react/src/app.tsx +1 -1
- package/package.json +1 -1
- package/templates/custom-app/shared/spice.config.js +6 -0
- package/templates/custom-app/shared/spice.config.ts +6 -0
- package/templates/custom-app/shared/tsconfig.app.json +33 -0
- package/templates/custom-app/shared/tsconfig.node.json +25 -0
- package/templates/custom-app/ts/react/src/extension/index.tsx +1 -1
- package/templates/extension/js/react/src/app.jsx +1 -1
- package/templates/extension/shared/spice.config.js +6 -0
- package/templates/extension/shared/spice.config.ts +6 -0
- package/templates/extension/shared/tsconfig.app.json +33 -0
- package/templates/extension/shared/tsconfig.node.json +25 -0
- package/templates/extension/ts/react/src/app.tsx +1 -1
- package/templates/hmrCustomApp.js +284 -0
- package/templates/liveReload.js +298 -45
- package/templates/theme/js/react/src/app.jsx +1 -1
- package/templates/theme/shared/spice.config.js +6 -0
- package/templates/theme/shared/spice.config.ts +6 -0
- package/templates/theme/shared/tsconfig.app.json +33 -0
- package/templates/theme/shared/tsconfig.node.json +25 -0
- package/templates/theme/ts/react/src/app.tsx +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolve } from "path";
|
|
1
2
|
import { defineConfig } from "@spicetify/creator";
|
|
2
3
|
|
|
3
4
|
// Learn more: {{config-reference-link}}
|
|
@@ -7,4 +8,9 @@ export default defineConfig({
|
|
|
7
8
|
linter: "{{linter}}",
|
|
8
9
|
template: "{{template}}",
|
|
9
10
|
packageManager: "{{package-manager}}",
|
|
11
|
+
esbuildOptions: {
|
|
12
|
+
alias: {
|
|
13
|
+
"@": resolve(__dirname, "src"),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
10
16
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolve } from "path";
|
|
1
2
|
import { defineConfig } from "@spicetify/creator";
|
|
2
3
|
|
|
3
4
|
// Learn more: {{config-reference-link}}
|
|
@@ -7,4 +8,9 @@ export default defineConfig({
|
|
|
7
8
|
linter: "{{linter}}",
|
|
8
9
|
template: "{{template}}",
|
|
9
10
|
packageManager: "{{package-manager}}",
|
|
11
|
+
esbuildOptions: {
|
|
12
|
+
alias: {
|
|
13
|
+
"@": resolve(__dirname, "src"),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
10
16
|
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"types": ["@spicetify/creator/client"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
|
|
10
|
+
/* Bundler mode */
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
|
|
18
|
+
/* Linting */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"erasableSyntaxOnly": true,
|
|
23
|
+
"noFallthroughCasesInSwitch": true,
|
|
24
|
+
"noUncheckedSideEffectImports": true,
|
|
25
|
+
|
|
26
|
+
// Paths
|
|
27
|
+
"baseUrl": ".",
|
|
28
|
+
"paths": {
|
|
29
|
+
"@/*": ["./src/*"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"include": ["src"]
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"lib": ["ES2023"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"types": ["node"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
|
|
16
|
+
/* Linting */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"erasableSyntaxOnly": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true,
|
|
22
|
+
"noUncheckedSideEffectImports": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["spice.config.ts"]
|
|
25
|
+
}
|