mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-27 09:48:56 +00:00
feat(create-turbo): apply official-starter transform
This commit is contained in:
10
turbo-svelte/apps/docs/.gitignore
vendored
Normal file
10
turbo-svelte/apps/docs/.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
1
turbo-svelte/apps/docs/.npmrc
Normal file
1
turbo-svelte/apps/docs/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
engine-strict=true
|
||||
14
turbo-svelte/apps/docs/.prettierignore
Normal file
14
turbo-svelte/apps/docs/.prettierignore
Normal file
@@ -0,0 +1,14 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# Ignore files for PNPM, NPM and YARN
|
||||
pnpm-lock.yaml
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
vite.config.*.timestamp-*
|
||||
8
turbo-svelte/apps/docs/.prettierrc
Normal file
8
turbo-svelte/apps/docs/.prettierrc
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"useTabs": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"printWidth": 100,
|
||||
"plugins": ["prettier-plugin-svelte"],
|
||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||
}
|
||||
38
turbo-svelte/apps/docs/README.md
Normal file
38
turbo-svelte/apps/docs/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# create-svelte
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
|
||||
|
||||
## Creating a project
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
|
||||
```bash
|
||||
# create a new project in the current directory
|
||||
npm create svelte@latest
|
||||
|
||||
# create a new project in my-app
|
||||
npm create svelte@latest my-app
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
||||
8
turbo-svelte/apps/docs/eslint.config.js
Normal file
8
turbo-svelte/apps/docs/eslint.config.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { config } from '@repo/eslint-config/index.js';
|
||||
|
||||
export default [
|
||||
...config,
|
||||
{
|
||||
ignores: ['.svelte-kit/*']
|
||||
}
|
||||
];
|
||||
37
turbo-svelte/apps/docs/package.json
Normal file
37
turbo-svelte/apps/docs/package.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "docs",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "svelte-kit sync && vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "npm run test:integration && npm run test:unit",
|
||||
"check-types": "tsc --noEmit",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "eslint .",
|
||||
"test:integration": "playwright test",
|
||||
"test:unit": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@repo/ui": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@sveltejs/adapter-auto": "^4.0.0",
|
||||
"@sveltejs/kit": "^2.36.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.1.0",
|
||||
"prettier": "^3.6.0",
|
||||
"eslint": "^9.34.0",
|
||||
"prettier-plugin-svelte": "^3.4.0",
|
||||
"svelte": "^5.38.0",
|
||||
"svelte-check": "^4.3.0",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "5.9.2",
|
||||
"vite": "^6.3.2",
|
||||
"vitest": "^3.2.0"
|
||||
}
|
||||
}
|
||||
12
turbo-svelte/apps/docs/playwright.config.ts
Normal file
12
turbo-svelte/apps/docs/playwright.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
webServer: {
|
||||
command: 'npm run build && npm run preview',
|
||||
port: 4173
|
||||
},
|
||||
testDir: 'tests',
|
||||
testMatch: /(.+\.)?(test|spec)\.[jt]s/
|
||||
};
|
||||
|
||||
export default config;
|
||||
12
turbo-svelte/apps/docs/src/app.d.ts
vendored
Normal file
12
turbo-svelte/apps/docs/src/app.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// See https://kit.svelte.dev/docs/types#app
|
||||
// for information about these interfaces
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface Platform {}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
12
turbo-svelte/apps/docs/src/app.html
Normal file
12
turbo-svelte/apps/docs/src/app.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
7
turbo-svelte/apps/docs/src/index.test.ts
Normal file
7
turbo-svelte/apps/docs/src/index.test.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('sum test', () => {
|
||||
it('adds 1 + 2 to equal 3', () => {
|
||||
expect(1 + 2).toBe(3);
|
||||
});
|
||||
});
|
||||
1
turbo-svelte/apps/docs/src/lib/index.ts
Normal file
1
turbo-svelte/apps/docs/src/lib/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
// place files you want to import through the `$lib` alias in this folder.
|
||||
7
turbo-svelte/apps/docs/src/routes/+page.svelte
Normal file
7
turbo-svelte/apps/docs/src/routes/+page.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { MyCounterButton } from '@repo/ui';
|
||||
</script>
|
||||
|
||||
<h1>Docs</h1>
|
||||
<MyCounterButton />
|
||||
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
||||
BIN
turbo-svelte/apps/docs/static/favicon.png
vendored
Normal file
BIN
turbo-svelte/apps/docs/static/favicon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
17
turbo-svelte/apps/docs/svelte.config.js
Normal file
17
turbo-svelte/apps/docs/svelte.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
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()
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
3
turbo-svelte/apps/docs/tsconfig.json
Normal file
3
turbo-svelte/apps/docs/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": ["@repo/typescript-config/svelte.json", "./.svelte-kit/tsconfig.json"]
|
||||
}
|
||||
6
turbo-svelte/apps/docs/vite.config.ts
Normal file
6
turbo-svelte/apps/docs/vite.config.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()]
|
||||
});
|
||||
Reference in New Issue
Block a user