diff --git a/playgrounds/playground-js/.gitignore b/playgrounds/playground-js/.gitignore deleted file mode 100644 index 6635cf554..000000000 --- a/playgrounds/playground-js/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -.DS_Store -node_modules -/build -/.svelte-kit -/package -.env -.env.* -!.env.example -vite.config.js.timestamp-* -vite.config.ts.timestamp-* diff --git a/playgrounds/playground-js/.npmrc b/playgrounds/playground-js/.npmrc deleted file mode 100644 index b6f27f135..000000000 --- a/playgrounds/playground-js/.npmrc +++ /dev/null @@ -1 +0,0 @@ -engine-strict=true diff --git a/playgrounds/playground-js/.prettierignore b/playgrounds/playground-js/.prettierignore deleted file mode 100644 index 440ad6933..000000000 --- a/playgrounds/playground-js/.prettierignore +++ /dev/null @@ -1,5 +0,0 @@ -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock -CHANGELOG.md \ No newline at end of file diff --git a/playgrounds/playground-js/.prettierrc b/playgrounds/playground-js/.prettierrc deleted file mode 100644 index 7ebb855b9..000000000 --- a/playgrounds/playground-js/.prettierrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "useTabs": true, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], - "overrides": [ - { - "files": "*.svelte", - "options": { - "parser": "svelte" - } - } - ] -} diff --git a/playgrounds/playground-js/CHANGELOG.md b/playgrounds/playground-js/CHANGELOG.md deleted file mode 100644 index 9251097f1..000000000 --- a/playgrounds/playground-js/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -# playground-js - -## 0.0.2 - -### Patch Changes - -- Updated dependencies [bfdc861] - - shadcn-svelte@0.7.0 diff --git a/playgrounds/playground-js/README.md b/playgrounds/playground-js/README.md deleted file mode 100644 index 290611d16..000000000 --- a/playgrounds/playground-js/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## Using the playground - -1. Run the dev server of `www`, ensuring it's running on port 5173. -2. Run `pnpm scn ` to run a command in the playground. -3. Run `pnpm reset` to reset the scn-specific configurations of the playground. diff --git a/playgrounds/playground-js/jsconfig.json b/playgrounds/playground-js/jsconfig.json deleted file mode 100644 index b3606c19b..000000000 --- a/playgrounds/playground-js/jsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "$lib/*": ["./src/lib/*"] - } - } -} diff --git a/playgrounds/playground-js/package.json b/playgrounds/playground-js/package.json deleted file mode 100644 index 64d63d164..000000000 --- a/playgrounds/playground-js/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "playground-js", - "version": "0.0.2", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "lint": "prettier --check . && eslint .", - "format": "prettier --write .", - "scn": "cross-env COMPONENTS_REGISTRY_URL=http://localhost:5173 pnpm shadcn-svelte", - "reset": "node ./reset.js" - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^3.1.1", - "@sveltejs/kit": "^2.5.2", - "@sveltejs/vite-plugin-svelte": "^3.0.2", - "autoprefixer": "^10.4.18", - "cross-env": "^7.0.3", - "postcss": "^8.4.35", - "postcss-load-config": "^5.0.3", - "svelte": "^4.2.12", - "tailwindcss": "^3.4.1", - "vite": "^5.1.7" - }, - "type": "module", - "dependencies": { - "clsx": "^2.1.0", - "embla-carousel-svelte": "8.0.0-rc19", - "lucide-svelte": "^0.292.0", - "mode-watcher": "^0.1.2", - "shadcn-svelte": "workspace:^", - "svelte-sonner": "^0.3.19", - "tailwind-merge": "^1.14.0", - "tailwind-variants": "^0.1.20", - "zod": "^3.22.4" - } -} diff --git a/playgrounds/playground-js/postcss.config.cjs b/playgrounds/playground-js/postcss.config.cjs deleted file mode 100644 index 087bb9681..000000000 --- a/playgrounds/playground-js/postcss.config.cjs +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-disable @typescript-eslint/no-require-imports */ -const tailwindcss = require('tailwindcss'); -const autoprefixer = require('autoprefixer'); - -const config = { - plugins: [ - //Some plugins, like tailwindcss/nesting, need to run before Tailwind, - tailwindcss(), - //But others, like autoprefixer, need to run after, - autoprefixer - ] -}; - -module.exports = config; diff --git a/playgrounds/playground-js/reset.js b/playgrounds/playground-js/reset.js deleted file mode 100644 index 0ae96d676..000000000 --- a/playgrounds/playground-js/reset.js +++ /dev/null @@ -1,63 +0,0 @@ -import { execSync } from 'node:child_process'; -import fs from 'node:fs'; - -function reset() { - const fns = [deleteSCNArtifacts, uninstallDeps, resetTailwindConfig, resetPcssStyles]; - fns.forEach(safe); -} - -reset(); - -function deleteSCNArtifacts() { - // delete `./components.json` from this directory - fs.unlinkSync('./components.json'); - - // delete './src/lib/components' directory - fs.rmSync('./src/lib/components', { recursive: true }); - - // delete './src/lib/utils.js' file - fs.unlinkSync('./src/lib/utils.js'); -} - -function uninstallDeps() { - execSync( - 'pnpm uninstall bits-ui formsnap sveltekit-superforms vaul-svelte cmdk-sv @internationalized/date' - ); -} - -function resetTailwindConfig() { - const startingConfig = `/** @type {import('tailwindcss').Config}*/ -const config = { - content: ["./src/**/*.{html,js,svelte,ts}"], - - theme: { - extend: {} - }, - - plugins: [] -}; - -module.exports = config; -`; - - fs.renameSync('./tailwind.config.js', './tailwind.config.cjs'); - - fs.writeFileSync('./tailwind.config.cjs', startingConfig, 'utf-8'); -} - -function resetPcssStyles() { - const startingStyles = `/* Write your global styles here, in PostCSS syntax */ -@tailwind base; -@tailwind components; -@tailwind utilities`; - - fs.writeFileSync('./src/app.pcss', startingStyles, 'utf-8'); -} - -function safe(fn) { - try { - fn(); - } catch { - // - } -} diff --git a/playgrounds/playground-js/src/app.html b/playgrounds/playground-js/src/app.html deleted file mode 100644 index 77a5ff52c..000000000 --- a/playgrounds/playground-js/src/app.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - %sveltekit.head% - - -
%sveltekit.body%
- - diff --git a/playgrounds/playground-js/src/app.pcss b/playgrounds/playground-js/src/app.pcss deleted file mode 100644 index 1a7b7cf38..000000000 --- a/playgrounds/playground-js/src/app.pcss +++ /dev/null @@ -1,4 +0,0 @@ -/* Write your global styles here, in PostCSS syntax */ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/playgrounds/playground-js/src/lib/index.js b/playgrounds/playground-js/src/lib/index.js deleted file mode 100644 index 856f2b6c3..000000000 --- a/playgrounds/playground-js/src/lib/index.js +++ /dev/null @@ -1 +0,0 @@ -// place files you want to import through the `$lib` alias in this folder. diff --git a/playgrounds/playground-js/src/routes/+layout.svelte b/playgrounds/playground-js/src/routes/+layout.svelte deleted file mode 100644 index 17abf18a5..000000000 --- a/playgrounds/playground-js/src/routes/+layout.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/playgrounds/playground-js/src/routes/+page.svelte b/playgrounds/playground-js/src/routes/+page.svelte deleted file mode 100644 index 5982b0ae3..000000000 --- a/playgrounds/playground-js/src/routes/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome to SvelteKit

-

Visit kit.svelte.dev to read the documentation

diff --git a/playgrounds/playground-js/static/favicon.png b/playgrounds/playground-js/static/favicon.png deleted file mode 100644 index 825b9e65a..000000000 Binary files a/playgrounds/playground-js/static/favicon.png and /dev/null differ diff --git a/playgrounds/playground-js/svelte.config.js b/playgrounds/playground-js/svelte.config.js deleted file mode 100644 index 9d59324a1..000000000 --- a/playgrounds/playground-js/svelte.config.js +++ /dev/null @@ -1,16 +0,0 @@ -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; -import adapter from '@sveltejs/adapter-auto'; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter() - }, - - preprocess: [vitePreprocess({})] -}; - -export default config; diff --git a/playgrounds/playground-js/tailwind.config.cjs b/playgrounds/playground-js/tailwind.config.cjs deleted file mode 100644 index a2629b641..000000000 --- a/playgrounds/playground-js/tailwind.config.cjs +++ /dev/null @@ -1,12 +0,0 @@ -/** @type {import('tailwindcss').Config}*/ -const config = { - content: ['./src/**/*.{html,js,svelte,ts}'], - - theme: { - extend: {} - }, - - plugins: [] -}; - -module.exports = config; diff --git a/playgrounds/playground-js/vite.config.js b/playgrounds/playground-js/vite.config.js deleted file mode 100644 index bbf8c7da4..000000000 --- a/playgrounds/playground-js/vite.config.js +++ /dev/null @@ -1,6 +0,0 @@ -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; - -export default defineConfig({ - plugins: [sveltekit()] -}); diff --git a/playgrounds/playground-ts/.gitignore b/playgrounds/playground-ts/.gitignore deleted file mode 100644 index 79518f716..000000000 --- a/playgrounds/playground-ts/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -node_modules - -# Output -.output -.vercel -/.svelte-kit -/build - -# OS -.DS_Store -Thumbs.db - -# Env -.env -.env.* -!.env.example -!.env.test - -# Vite -vite.config.js.timestamp-* -vite.config.ts.timestamp-* diff --git a/playgrounds/playground-ts/.npmrc b/playgrounds/playground-ts/.npmrc deleted file mode 100644 index b6f27f135..000000000 --- a/playgrounds/playground-ts/.npmrc +++ /dev/null @@ -1 +0,0 @@ -engine-strict=true diff --git a/playgrounds/playground-ts/README.md b/playgrounds/playground-ts/README.md deleted file mode 100644 index 290611d16..000000000 --- a/playgrounds/playground-ts/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## Using the playground - -1. Run the dev server of `www`, ensuring it's running on port 5173. -2. Run `pnpm scn ` to run a command in the playground. -3. Run `pnpm reset` to reset the scn-specific configurations of the playground. diff --git a/playgrounds/playground-ts/package.json b/playgrounds/playground-ts/package.json deleted file mode 100644 index 6aae473ef..000000000 --- a/playgrounds/playground-ts/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "playground-ts", - "version": "0.0.1", - "type": "module", - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "reset": "node ./reset.js", - "scn": "export COMPONENTS_REGISTRY_URL=http://localhost:5173/registry && pnpm shadcn-svelte" - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^4.0.0", - "autoprefixer": "^10.4.20", - "svelte": "^5.0.0", - "svelte-check": "^4.0.0", - "tailwindcss": "^3.4.9", - "typescript": "^5.0.0", - "vite": "^5.0.3" - }, - "dependencies": { - "shadcn-svelte": "workspace:*" - } -} diff --git a/playgrounds/playground-ts/postcss.config.js b/playgrounds/playground-ts/postcss.config.js deleted file mode 100644 index 7b75c83af..000000000 --- a/playgrounds/playground-ts/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/playgrounds/playground-ts/reset.js b/playgrounds/playground-ts/reset.js deleted file mode 100644 index 60b2dfa7f..000000000 --- a/playgrounds/playground-ts/reset.js +++ /dev/null @@ -1,63 +0,0 @@ -import { execSync } from "node:child_process"; -import fs from "node:fs"; - -function reset() { - const fns = [deleteSCNArtifacts, uninstallDeps, resetTailwindConfig, resetPcssStyles]; - fns.forEach(safe); -} - -reset(); - -function deleteSCNArtifacts() { - // delete `./components.json` from this directory - fs.unlinkSync("./components.json"); - - // delete './src/lib/components' directory - fs.rmSync("./src/lib/components", { recursive: true }); - - // delete './src/lib/utils.ts' file - fs.unlinkSync("./src/lib/utils.ts"); - - fs.rmSync("./src/lib/hooks", { recursive: true }); -} - -function uninstallDeps() { - execSync( - "pnpm uninstall bits-ui formsnap sveltekit-superforms vaul-svelte cmdk-sv @internationalized/date" - ); -} - -function resetTailwindConfig() { - const startingConfig = `/** @type {import('tailwindcss').Config}*/ -const config = { - content: ["./src/**/*.{html,js,svelte,ts}"], - - theme: { - extend: {} - }, - - plugins: [] -}; - -module.exports = config; -`; - - fs.writeFileSync("./tailwind.config.ts", startingConfig, "utf-8"); -} - -function resetPcssStyles() { - const startingStyles = `/* Write your global styles here, in PostCSS syntax */ -@tailwind base; -@tailwind components; -@tailwind utilities`; - - fs.writeFileSync("./src/app.css", startingStyles, "utf-8"); -} - -function safe(fn) { - try { - fn(); - } catch { - // - } -} diff --git a/playgrounds/playground-ts/src/app.css b/playgrounds/playground-ts/src/app.css deleted file mode 100644 index b5c61c956..000000000 --- a/playgrounds/playground-ts/src/app.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/playgrounds/playground-ts/src/app.d.ts b/playgrounds/playground-ts/src/app.d.ts deleted file mode 100644 index c316018cf..000000000 --- a/playgrounds/playground-ts/src/app.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// See https://svelte.dev/docs/kit/types#app -// for information about these interfaces -declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - } -} - -export {}; diff --git a/playgrounds/playground-ts/src/app.html b/playgrounds/playground-ts/src/app.html deleted file mode 100644 index 77a5ff52c..000000000 --- a/playgrounds/playground-ts/src/app.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - %sveltekit.head% - - -
%sveltekit.body%
- - diff --git a/playgrounds/playground-ts/src/lib/index.ts b/playgrounds/playground-ts/src/lib/index.ts deleted file mode 100644 index 856f2b6c3..000000000 --- a/playgrounds/playground-ts/src/lib/index.ts +++ /dev/null @@ -1 +0,0 @@ -// place files you want to import through the `$lib` alias in this folder. diff --git a/playgrounds/playground-ts/src/routes/+layout.svelte b/playgrounds/playground-ts/src/routes/+layout.svelte deleted file mode 100644 index 7be3ce467..000000000 --- a/playgrounds/playground-ts/src/routes/+layout.svelte +++ /dev/null @@ -1,6 +0,0 @@ - - -{@render children()} diff --git a/playgrounds/playground-ts/src/routes/+page.svelte b/playgrounds/playground-ts/src/routes/+page.svelte deleted file mode 100644 index cc88df0ea..000000000 --- a/playgrounds/playground-ts/src/routes/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome to SvelteKit

-

Visit svelte.dev/docs/kit to read the documentation

diff --git a/playgrounds/playground-ts/static/favicon.png b/playgrounds/playground-ts/static/favicon.png deleted file mode 100644 index 825b9e65a..000000000 Binary files a/playgrounds/playground-ts/static/favicon.png and /dev/null differ diff --git a/playgrounds/playground-ts/svelte.config.js b/playgrounds/playground-ts/svelte.config.js deleted file mode 100644 index ce4510f21..000000000 --- a/playgrounds/playground-ts/svelte.config.js +++ /dev/null @@ -1,18 +0,0 @@ -import adapter from "@sveltejs/adapter-auto"; -import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - // Consult https://svelte.dev/docs/kit/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), - - kit: { - // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. - adapter: adapter(), - }, -}; - -export default config; diff --git a/playgrounds/playground-ts/tailwind.config.ts b/playgrounds/playground-ts/tailwind.config.ts deleted file mode 100644 index 23fa874a0..000000000 --- a/playgrounds/playground-ts/tailwind.config.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { fontFamily } from "tailwindcss/defaultTheme"; -import type { Config } from "tailwindcss"; -import tailwindcssAnimate from "tailwindcss-animate"; - -const config: Config = { - darkMode: ["class"], - content: ["./src/**/*.{html,js,svelte,ts}"], - safelist: ["dark"], - theme: { - container: { - center: true, - padding: "2rem", - screens: { - "2xl": "1400px" - } - }, - extend: { - colors: { - border: "hsl(var(--border) / )", - input: "hsl(var(--input) / )", - ring: "hsl(var(--ring) / )", - background: "hsl(var(--background) / )", - foreground: "hsl(var(--foreground) / )", - primary: { - DEFAULT: "hsl(var(--primary) / )", - foreground: "hsl(var(--primary-foreground) / )" - }, - secondary: { - DEFAULT: "hsl(var(--secondary) / )", - foreground: "hsl(var(--secondary-foreground) / )" - }, - destructive: { - DEFAULT: "hsl(var(--destructive) / )", - foreground: "hsl(var(--destructive-foreground) / )" - }, - muted: { - DEFAULT: "hsl(var(--muted) / )", - foreground: "hsl(var(--muted-foreground) / )" - }, - accent: { - DEFAULT: "hsl(var(--accent) / )", - foreground: "hsl(var(--accent-foreground) / )" - }, - popover: { - DEFAULT: "hsl(var(--popover) / )", - foreground: "hsl(var(--popover-foreground) / )" - }, - card: { - DEFAULT: "hsl(var(--card) / )", - foreground: "hsl(var(--card-foreground) / )" - }, - sidebar: { - DEFAULT: "hsl(var(--sidebar-background))", - foreground: "hsl(var(--sidebar-foreground))", - primary: "hsl(var(--sidebar-primary))", - "primary-foreground": "hsl(var(--sidebar-primary-foreground))", - accent: "hsl(var(--sidebar-accent))", - "accent-foreground": "hsl(var(--sidebar-accent-foreground))", - border: "hsl(var(--sidebar-border))", - ring: "hsl(var(--sidebar-ring))", - }, - }, - borderRadius: { - xl: "calc(var(--radius) + 4px)", - lg: "var(--radius)", - md: "calc(var(--radius) - 2px)", - sm: "calc(var(--radius) - 4px)" - }, - fontFamily: { - sans: [...fontFamily.sans] - }, - keyframes: { - "accordion-down": { - from: { height: "0" }, - to: { height: "var(--radix-accordion-content-height)" }, - }, - "accordion-up": { - from: { height: "var(--radix-accordion-content-height)" }, - to: { height: "0" }, - }, - "caret-blink": { - "0%,70%,100%": { opacity: "1" }, - "20%,50%": { opacity: "0" }, - }, - }, - animation: { - "accordion-down": "accordion-down 0.2s ease-out", - "accordion-up": "accordion-up 0.2s ease-out", - "caret-blink": "caret-blink 1.25s ease-out infinite", - }, - }, - }, - plugins: [tailwindcssAnimate], -}; - -export default config; diff --git a/playgrounds/playground-ts/tsconfig.json b/playgrounds/playground-ts/tsconfig.json deleted file mode 100644 index 0b2d8865f..000000000 --- a/playgrounds/playground-ts/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "moduleResolution": "bundler" - } - // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias - // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files - // - // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes - // from the referenced tsconfig.json - TypeScript does not merge them in -} diff --git a/playgrounds/playground-ts/vite.config.ts b/playgrounds/playground-ts/vite.config.ts deleted file mode 100644 index 6b9eb5d39..000000000 --- a/playgrounds/playground-ts/vite.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { sveltekit } from "@sveltejs/kit/vite"; -import { defineConfig } from "vite"; - -export default defineConfig({ - plugins: [sveltekit()], -});