@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.
Files changed (40) hide show
  1. package/dist/bin.mjs +188 -150
  2. package/dist/templates/custom-app/shared/spice.config.js +6 -0
  3. package/dist/templates/custom-app/shared/spice.config.ts +6 -0
  4. package/dist/templates/custom-app/shared/tsconfig.app.json +33 -0
  5. package/dist/templates/custom-app/shared/tsconfig.node.json +25 -0
  6. package/dist/templates/custom-app/ts/react/src/extension/index.tsx +1 -1
  7. package/dist/templates/extension/js/react/src/app.jsx +1 -1
  8. package/dist/templates/extension/shared/spice.config.js +6 -0
  9. package/dist/templates/extension/shared/spice.config.ts +6 -0
  10. package/dist/templates/extension/shared/tsconfig.app.json +33 -0
  11. package/dist/templates/extension/shared/tsconfig.node.json +25 -0
  12. package/dist/templates/extension/ts/react/src/app.tsx +1 -1
  13. package/dist/templates/hmrCustomApp.js +284 -0
  14. package/dist/templates/liveReload.js +298 -45
  15. package/dist/templates/theme/js/react/src/app.jsx +1 -1
  16. package/dist/templates/theme/shared/spice.config.js +6 -0
  17. package/dist/templates/theme/shared/spice.config.ts +6 -0
  18. package/dist/templates/theme/shared/tsconfig.app.json +33 -0
  19. package/dist/templates/theme/shared/tsconfig.node.json +25 -0
  20. package/dist/templates/theme/ts/react/src/app.tsx +1 -1
  21. package/package.json +1 -1
  22. package/templates/custom-app/shared/spice.config.js +6 -0
  23. package/templates/custom-app/shared/spice.config.ts +6 -0
  24. package/templates/custom-app/shared/tsconfig.app.json +33 -0
  25. package/templates/custom-app/shared/tsconfig.node.json +25 -0
  26. package/templates/custom-app/ts/react/src/extension/index.tsx +1 -1
  27. package/templates/extension/js/react/src/app.jsx +1 -1
  28. package/templates/extension/shared/spice.config.js +6 -0
  29. package/templates/extension/shared/spice.config.ts +6 -0
  30. package/templates/extension/shared/tsconfig.app.json +33 -0
  31. package/templates/extension/shared/tsconfig.node.json +25 -0
  32. package/templates/extension/ts/react/src/app.tsx +1 -1
  33. package/templates/hmrCustomApp.js +284 -0
  34. package/templates/liveReload.js +298 -45
  35. package/templates/theme/js/react/src/app.jsx +1 -1
  36. package/templates/theme/shared/spice.config.js +6 -0
  37. package/templates/theme/shared/spice.config.ts +6 -0
  38. package/templates/theme/shared/tsconfig.app.json +33 -0
  39. package/templates/theme/shared/tsconfig.node.json +25 -0
  40. package/templates/theme/ts/react/src/app.tsx +1 -1
@@ -1,5 +1,5 @@
1
1
  import { createRoot } from "react-dom/client";
2
- // you can use aliases too ! (just add them to tsconfig.json)
2
+ // you can use aliases too ! (checkout tsconfig.app.json)
3
3
  import OnboardingCard from "@/components/Onboarding";
4
4
 
5
5
  const config = {
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  import { createRoot } from "react-dom/client";
2
- // you can use aliases too ! (just add them to tsconfig.json)
2
+ // you can use aliases too ! (checkout tsconfig.app.json)
3
3
  import Onboarding from "@/components/Onboarding";
4
4
 
5
5
  const config = {