create-packer 1.14.2 → 1.15.0
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/package.json +1 -1
- package/template/solid/.gitignore +2 -31
- package/template/solid/README.md +22 -18
- package/template/solid/index.html +16 -0
- package/template/solid/package.json +22 -33
- package/template/solid/src/app.container.tsx +12 -0
- package/template/solid/src/assets/favicon.ico +0 -0
- package/template/solid/src/index.css +15 -0
- package/template/solid/src/index.tsx +15 -0
- package/template/solid/src/layout/index.ts +1 -0
- package/template/solid/src/layout/layout.container.tsx +5 -0
- package/template/solid/src/logo.svg +1 -0
- package/template/solid/src/pages/home/home.container.tsx +5 -0
- package/template/solid/src/pages/home/home.css +0 -0
- package/template/solid/src/pages/home/index.ts +1 -0
- package/template/solid/src/pages/notFound/index.ts +1 -0
- package/template/solid/src/pages/notFound/notFound.container.tsx +3 -0
- package/template/solid/src/router/home/index.ts +2 -0
- package/template/solid/src/router/home/paths.ts +3 -0
- package/template/solid/src/router/home/routes.tsx +12 -0
- package/template/solid/src/router/index.ts +2 -0
- package/template/solid/src/router/paths.ts +5 -0
- package/template/solid/src/router/routes.ts +16 -0
- package/template/solid/tsconfig.json +9 -7
- package/template/solid/vite.config.ts +9 -4
- package/template/svelte/.eslintignore +13 -0
- package/template/svelte/.eslintrc.cjs +30 -0
- package/template/svelte/.gitignore +10 -0
- package/template/svelte/.prettierignore +13 -0
- package/template/svelte/.prettierrc +9 -0
- package/template/svelte/README.md +38 -0
- package/template/svelte/package.json +31 -0
- package/template/svelte/src/app.d.ts +12 -0
- package/template/svelte/src/app.html +12 -0
- package/template/svelte/src/routes/+page.svelte +2 -0
- package/template/svelte/static/favicon.png +0 -0
- package/template/svelte/svelte.config.js +18 -0
- package/template/svelte/tsconfig.json +17 -0
- package/template/svelte/vite.config.ts +6 -0
- package/template/solid/.env +0 -1
- package/template/solid/.env.development +0 -1
- package/template/solid/.eslintrc +0 -73
- package/template/solid/.vscode/extensions.json +0 -7
- package/template/solid/public/favicon.ico +0 -0
- package/template/solid/src/entry-client.tsx +0 -3
- package/template/solid/src/entry-server.tsx +0 -3
- package/template/solid/src/root.css +0 -3
- package/template/solid/src/root.tsx +0 -39
- package/template/solid/src/routes/[...404].tsx +0 -19
- package/template/solid/src/routes/index.tsx +0 -17
- package/template/solid/src/vite-env.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
pnpm-debug.log*
|
|
8
|
-
lerna-debug.log*
|
|
9
|
-
|
|
10
|
-
node_modules
|
|
11
|
-
dist
|
|
12
|
-
dist-ssr
|
|
13
|
-
*.local
|
|
14
|
-
.solid
|
|
15
|
-
.output
|
|
16
|
-
.vercel
|
|
17
|
-
.netlify
|
|
18
|
-
netlify
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Editor directories and files
|
|
22
|
-
.vscode/*
|
|
23
|
-
!.vscode/extensions.json
|
|
24
|
-
.history
|
|
25
|
-
.idea
|
|
26
|
-
.DS_Store
|
|
27
|
-
*.suo
|
|
28
|
-
*.ntvs*
|
|
29
|
-
*.njsproj
|
|
30
|
-
*.sln
|
|
31
|
-
*.sw?
|
|
1
|
+
node_modules
|
|
2
|
+
dist
|
package/template/solid/README.md
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
## Usage
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
9
|
-
npm init solid@latest
|
|
10
|
-
|
|
11
|
-
# create a new project in my-app
|
|
12
|
-
npm init solid@latest my-app
|
|
8
|
+
$ npm install # or pnpm install or yarn install
|
|
13
9
|
```
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
## Available Scripts
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
npm run dev
|
|
15
|
+
In the project directory, you can run:
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
### `npm dev` or `npm start`
|
|
18
|
+
|
|
19
|
+
Runs the app in the development mode.<br>
|
|
20
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
21
|
+
|
|
22
|
+
The page will reload if you make edits.<br>
|
|
23
|
+
|
|
24
|
+
### `npm run build`
|
|
25
|
+
|
|
26
|
+
Builds the app for production to the `dist` folder.<br>
|
|
27
|
+
It correctly bundles Solid in production mode and optimizes the build for the best performance.
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
The build is minified and the filenames include the hashes.<br>
|
|
30
|
+
Your app is ready to be deployed!
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
## Deployment
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="theme-color" content="#000000" />
|
|
7
|
+
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
|
|
8
|
+
<title>Solid App</title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
|
|
14
|
+
<script src="/src/index.tsx" type="module"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -1,58 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "solid",
|
|
2
|
+
"name": "vite-template-solid",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "",
|
|
3
5
|
"scripts": {
|
|
4
6
|
"prepare": "husky install",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
7
|
+
"start": "vite",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "vite build",
|
|
10
|
+
"serve": "vite preview",
|
|
8
11
|
"up:vite": "pnpm up vite @vitejs/* -L",
|
|
9
12
|
"format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\"",
|
|
10
13
|
"lint": "eslint ./src/**/*.{tsx,ts} && stylelint ./src/**/*.{css,scss,less}",
|
|
11
14
|
"lint:fix": "eslint ./src/**/*.{tsx,ts} --fix && stylelint ./src/**/*.{css,scss,less} --fix",
|
|
15
|
+
"test:watchs": "jest --watch",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"test:coverage": "jest --silent --watchAll=false --coverage",
|
|
12
18
|
"cz": "cz",
|
|
13
19
|
"push": "npm run commit && git push",
|
|
14
20
|
"commit": "git add . && npm run cz"
|
|
15
21
|
},
|
|
16
|
-
"
|
|
22
|
+
"license": "MIT",
|
|
17
23
|
"devDependencies": {
|
|
18
|
-
"@commitlint/cli": "17.6.
|
|
19
|
-
"@commitlint/config-conventional": "17.6.
|
|
24
|
+
"@commitlint/cli": "17.6.3",
|
|
25
|
+
"@commitlint/config-conventional": "17.6.3",
|
|
20
26
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
21
|
-
"@types/node": "18.16.0",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "5.59.0",
|
|
23
|
-
"@typescript-eslint/parser": "5.59.0",
|
|
24
27
|
"autoprefixer": "10.4.14",
|
|
25
28
|
"commitizen": "4.3.0",
|
|
26
29
|
"cssnano": "6.0.0",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"eslint-import-resolver-typescript": "3.5.5",
|
|
30
|
-
"eslint-plugin-import": "2.27.5",
|
|
31
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
32
|
-
"eslint-plugin-solid": "0.12.1",
|
|
33
|
-
"husky": "8.0.3",
|
|
34
|
-
"inquirer": "8",
|
|
35
|
-
"postcss": "8.4.21",
|
|
30
|
+
"inquirer": "8.0.0",
|
|
31
|
+
"postcss": "8.4.23",
|
|
36
32
|
"postcss-import": "15.1.0",
|
|
37
33
|
"postcss-nesting": "11.2.2",
|
|
38
|
-
"prettier": "2",
|
|
39
|
-
"
|
|
40
|
-
"stylelint": "15.6.0",
|
|
34
|
+
"prettier": "2.8.8",
|
|
35
|
+
"stylelint": "15.6.1",
|
|
41
36
|
"stylelint-config-standard": "33.0.0",
|
|
42
|
-
"tailwindcss": "3.3.
|
|
43
|
-
"typescript": "
|
|
44
|
-
"vite": "4.
|
|
45
|
-
"vite-plugin-
|
|
37
|
+
"tailwindcss": "3.3.2",
|
|
38
|
+
"typescript": "5.0.4",
|
|
39
|
+
"vite": "4.3.5",
|
|
40
|
+
"vite-plugin-solid": "2.7.0"
|
|
46
41
|
},
|
|
47
42
|
"dependencies": {
|
|
48
|
-
"@solidjs/meta": "0.28.2",
|
|
49
43
|
"@solidjs/router": "0.8.2",
|
|
50
|
-
"solid-js": "1.7.
|
|
51
|
-
"solid-start": "0.2.26",
|
|
52
|
-
"undici": "5.15.1"
|
|
53
|
-
},
|
|
54
|
-
"engines": {
|
|
55
|
-
"node": ">=16.8"
|
|
44
|
+
"solid-js": "1.7.5"
|
|
56
45
|
},
|
|
57
46
|
"config": {
|
|
58
47
|
"commitizen": {
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
8
|
+
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
code {
|
|
14
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* @refresh reload */
|
|
2
|
+
import { render } from 'solid-js/web'
|
|
3
|
+
|
|
4
|
+
import './index.css'
|
|
5
|
+
import App from './app.container'
|
|
6
|
+
|
|
7
|
+
const root = document.getElementById('root')
|
|
8
|
+
|
|
9
|
+
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got mispelled?'
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
render(() => <App />, root!)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './layout.container'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 155.3"><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" fill="#76b3e1"/><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="27.5" y1="3" x2="152" y2="63.5"><stop offset=".1" stop-color="#76b3e1"/><stop offset=".3" stop-color="#dcf2fd"/><stop offset="1" stop-color="#76b3e1"/></linearGradient><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" opacity=".3" fill="url(#a)"/><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" fill="#518ac8"/><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="95.8" y1="32.6" x2="74" y2="105.2"><stop offset="0" stop-color="#76b3e1"/><stop offset=".5" stop-color="#4377bb"/><stop offset="1" stop-color="#1f3b77"/></linearGradient><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" opacity=".3" fill="url(#b)"/><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="18.4" y1="64.2" x2="144.3" y2="149.8"><stop offset="0" stop-color="#315aa9"/><stop offset=".5" stop-color="#518ac8"/><stop offset="1" stop-color="#315aa9"/></linearGradient><path d="M134 80a45 45 0 00-48-15L24 85 4 120l112 19 20-36c4-7 3-15-2-23z" fill="url(#c)"/><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="75.2" y1="74.5" x2="24.4" y2="260.8"><stop offset="0" stop-color="#4377bb"/><stop offset=".5" stop-color="#1a336b"/><stop offset="1" stop-color="#1a336b"/></linearGradient><path d="M114 115a45 45 0 00-48-15L4 120s53 40 94 30l3-1c17-5 23-21 13-34z" fill="url(#d)"/></svg>
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './home.container'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './notFound.container'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { lazy } from 'solid-js'
|
|
2
|
+
import { RouteDefinition } from '@solidjs/router'
|
|
3
|
+
import paths from './paths'
|
|
4
|
+
|
|
5
|
+
const routes: RouteDefinition[] = [
|
|
6
|
+
{
|
|
7
|
+
path: ['/', paths.home],
|
|
8
|
+
component: lazy(() => import('@/pages/home'))
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
export default routes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { lazy } from 'solid-js'
|
|
2
|
+
import { RouteDefinition } from '@solidjs/router'
|
|
3
|
+
import * as home from './home'
|
|
4
|
+
|
|
5
|
+
const routes: RouteDefinition[] = [
|
|
6
|
+
{
|
|
7
|
+
path: '/',
|
|
8
|
+
component: lazy(() => import('@/layout')),
|
|
9
|
+
children: [...home.routes]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
path: '/*all',
|
|
13
|
+
component: lazy(() => import('@/pages/notFound'))
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
export default routes
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"strict": true,
|
|
5
5
|
"target": "ESNext",
|
|
6
6
|
"module": "ESNext",
|
|
7
7
|
"moduleResolution": "node",
|
|
8
|
-
"
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
9
10
|
"jsx": "preserve",
|
|
10
|
-
"
|
|
11
|
-
"types": ["
|
|
12
|
-
"
|
|
11
|
+
"jsxImportSource": "solid-js",
|
|
12
|
+
"types": ["vite/client"],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"isolatedModules": true,
|
|
13
15
|
"paths": {
|
|
14
|
-
"@/*": ["
|
|
16
|
+
"@/*": ["src/*"]
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import path from 'path'
|
|
2
|
-
import solid from 'solid-start/vite'
|
|
3
1
|
import { defineConfig } from 'vite'
|
|
4
|
-
import
|
|
2
|
+
import path from 'path'
|
|
3
|
+
import solidPlugin from 'vite-plugin-solid'
|
|
5
4
|
|
|
6
5
|
export default defineConfig(({ command }) => {
|
|
7
6
|
return {
|
|
8
|
-
plugins: [
|
|
7
|
+
plugins: [solidPlugin()],
|
|
8
|
+
server: {
|
|
9
|
+
port: 3000
|
|
10
|
+
},
|
|
11
|
+
build: {
|
|
12
|
+
target: 'esnext'
|
|
13
|
+
},
|
|
9
14
|
resolve: {
|
|
10
15
|
alias: {
|
|
11
16
|
'@': path.join(__dirname, 'src')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
extends: [
|
|
4
|
+
'eslint:recommended',
|
|
5
|
+
'plugin:@typescript-eslint/recommended',
|
|
6
|
+
'plugin:svelte/recommended',
|
|
7
|
+
'prettier'
|
|
8
|
+
],
|
|
9
|
+
parser: '@typescript-eslint/parser',
|
|
10
|
+
plugins: ['@typescript-eslint'],
|
|
11
|
+
parserOptions: {
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
ecmaVersion: 2020,
|
|
14
|
+
extraFileExtensions: ['.svelte']
|
|
15
|
+
},
|
|
16
|
+
env: {
|
|
17
|
+
browser: true,
|
|
18
|
+
es2017: true,
|
|
19
|
+
node: true
|
|
20
|
+
},
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: ['*.svelte'],
|
|
24
|
+
parser: 'svelte-eslint-parser',
|
|
25
|
+
parserOptions: {
|
|
26
|
+
parser: '@typescript-eslint/parser'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# create-svelte
|
|
2
|
+
|
|
3
|
+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
|
|
4
|
+
|
|
5
|
+
## Creating a project
|
|
6
|
+
|
|
7
|
+
If you're seeing this, you've probably already done this step. Congrats!
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# create a new project in the current directory
|
|
11
|
+
npm create svelte@latest
|
|
12
|
+
|
|
13
|
+
# create a new project in my-app
|
|
14
|
+
npm create svelte@latest my-app
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Developing
|
|
18
|
+
|
|
19
|
+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm run dev
|
|
23
|
+
|
|
24
|
+
# or start the server and open the app in a new browser tab
|
|
25
|
+
npm run dev -- --open
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Building
|
|
29
|
+
|
|
30
|
+
To create a production version of your app:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You can preview the production build with `npm run preview`.
|
|
37
|
+
|
|
38
|
+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "svelte",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite dev",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"preview": "vite preview",
|
|
9
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
10
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
11
|
+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
12
|
+
"format": "prettier --plugin-search-dir . --write ."
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@sveltejs/adapter-auto": "^2.0.0",
|
|
16
|
+
"@sveltejs/kit": "^1.5.0",
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
18
|
+
"@typescript-eslint/parser": "^5.45.0",
|
|
19
|
+
"eslint": "^8.28.0",
|
|
20
|
+
"eslint-config-prettier": "^8.5.0",
|
|
21
|
+
"eslint-plugin-svelte": "^2.26.0",
|
|
22
|
+
"prettier": "^2.8.0",
|
|
23
|
+
"prettier-plugin-svelte": "^2.8.1",
|
|
24
|
+
"svelte": "^3.54.0",
|
|
25
|
+
"svelte-check": "^3.0.1",
|
|
26
|
+
"tslib": "^2.4.1",
|
|
27
|
+
"typescript": "^5.0.0",
|
|
28
|
+
"vite": "^4.3.0"
|
|
29
|
+
},
|
|
30
|
+
"type": "module"
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
|
6
|
+
<meta name="viewport" content="width=device-width" />
|
|
7
|
+
%sveltekit.head%
|
|
8
|
+
</head>
|
|
9
|
+
<body data-sveltekit-preload-data="hover">
|
|
10
|
+
<div style="display: contents">%sveltekit.body%</div>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import adapter from '@sveltejs/adapter-auto';
|
|
2
|
+
import { vitePreprocess } from '@sveltejs/kit/vite';
|
|
3
|
+
|
|
4
|
+
/** @type {import('@sveltejs/kit').Config} */
|
|
5
|
+
const config = {
|
|
6
|
+
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
7
|
+
// for more information about preprocessors
|
|
8
|
+
preprocess: vitePreprocess(),
|
|
9
|
+
|
|
10
|
+
kit: {
|
|
11
|
+
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
|
12
|
+
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
|
13
|
+
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
|
14
|
+
adapter: adapter()
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default config;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./.svelte-kit/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"checkJs": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"strict": true
|
|
12
|
+
}
|
|
13
|
+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
|
14
|
+
//
|
|
15
|
+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
|
16
|
+
// from the referenced tsconfig.json - TypeScript does not merge them in
|
|
17
|
+
}
|
package/template/solid/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_API_HOST=https://127.0.0.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_API_HOST=https://127.0.0.1
|
package/template/solid/.eslintrc
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": ["@typescript-eslint", "solid", "prettier"],
|
|
5
|
-
"extends": [
|
|
6
|
-
"eslint:recommended",
|
|
7
|
-
"plugin:solid/recommended",
|
|
8
|
-
"plugin:import/recommended",
|
|
9
|
-
"plugin:import/typescript"
|
|
10
|
-
],
|
|
11
|
-
"settings": {
|
|
12
|
-
"import/resolver": {
|
|
13
|
-
"typescript": true,
|
|
14
|
-
"node": true
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"env": {
|
|
18
|
-
"browser": true,
|
|
19
|
-
"node": true,
|
|
20
|
-
"es6": true,
|
|
21
|
-
"jest": true
|
|
22
|
-
},
|
|
23
|
-
"parserOptions": {
|
|
24
|
-
"ecmaVersion": 2018,
|
|
25
|
-
"sourceType": "module",
|
|
26
|
-
"ecmaFeatures": {
|
|
27
|
-
"jsx": true
|
|
28
|
-
},
|
|
29
|
-
"useJSXTextNode": true
|
|
30
|
-
},
|
|
31
|
-
"rules": {
|
|
32
|
-
"import/export": "off",
|
|
33
|
-
"import/namespace": "off",
|
|
34
|
-
"import/order": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
"groups": [
|
|
38
|
-
"builtin",
|
|
39
|
-
"external",
|
|
40
|
-
"internal",
|
|
41
|
-
"parent",
|
|
42
|
-
"sibling",
|
|
43
|
-
"index",
|
|
44
|
-
"object",
|
|
45
|
-
"type"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
50
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
51
|
-
"@typescript-eslint/no-explicit-any": 0,
|
|
52
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
53
|
-
"@typescript-eslint/no-inferrable-types": [
|
|
54
|
-
"warn",
|
|
55
|
-
{
|
|
56
|
-
"ignoreParameters": true
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
60
|
-
"@typescript-eslint/member-delimiter-style": 0,
|
|
61
|
-
"@typescript-eslint/class-name-casing": 0,
|
|
62
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
63
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
64
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
65
|
-
"prettier/prettier": [
|
|
66
|
-
"error",
|
|
67
|
-
{
|
|
68
|
-
"endOfLine": "auto"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"no-constant-condition": "off"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @refresh reload
|
|
2
|
-
import { Suspense } from 'solid-js'
|
|
3
|
-
import {
|
|
4
|
-
A,
|
|
5
|
-
Body,
|
|
6
|
-
ErrorBoundary,
|
|
7
|
-
FileRoutes,
|
|
8
|
-
Head,
|
|
9
|
-
Html,
|
|
10
|
-
Meta,
|
|
11
|
-
Routes,
|
|
12
|
-
Scripts,
|
|
13
|
-
Title
|
|
14
|
-
} from 'solid-start'
|
|
15
|
-
import './root.css'
|
|
16
|
-
|
|
17
|
-
export default function Root() {
|
|
18
|
-
return (
|
|
19
|
-
<Html lang="en">
|
|
20
|
-
<Head>
|
|
21
|
-
<Title>SolidStart - Bare</Title>
|
|
22
|
-
<Meta charset="utf-8" />
|
|
23
|
-
<Meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
24
|
-
</Head>
|
|
25
|
-
<Body>
|
|
26
|
-
<Suspense>
|
|
27
|
-
<ErrorBoundary>
|
|
28
|
-
<A href="/">Index</A>
|
|
29
|
-
<A href="/about">About</A>
|
|
30
|
-
<Routes>
|
|
31
|
-
<FileRoutes />
|
|
32
|
-
</Routes>
|
|
33
|
-
</ErrorBoundary>
|
|
34
|
-
</Suspense>
|
|
35
|
-
<Scripts />
|
|
36
|
-
</Body>
|
|
37
|
-
</Html>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Title } from 'solid-start'
|
|
2
|
-
import { HttpStatusCode } from 'solid-start/server'
|
|
3
|
-
|
|
4
|
-
export default function NotFound() {
|
|
5
|
-
return (
|
|
6
|
-
<main>
|
|
7
|
-
<Title>Not Found</Title>
|
|
8
|
-
<HttpStatusCode code={404} />
|
|
9
|
-
<h1>Page Not Found</h1>
|
|
10
|
-
<p>
|
|
11
|
-
Visit{' '}
|
|
12
|
-
<a href="https://start.solidjs.com" target="_blank">
|
|
13
|
-
start.solidjs.com
|
|
14
|
-
</a>{' '}
|
|
15
|
-
to learn how to build SolidStart apps.
|
|
16
|
-
</p>
|
|
17
|
-
</main>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Title } from 'solid-start'
|
|
2
|
-
|
|
3
|
-
export default function Home() {
|
|
4
|
-
return (
|
|
5
|
-
<main>
|
|
6
|
-
<Title>Hello World</Title>
|
|
7
|
-
<h1>Hello world!</h1>
|
|
8
|
-
<p>
|
|
9
|
-
Visit{' '}
|
|
10
|
-
<a href="https://start.solidjs.com" target="_blank">
|
|
11
|
-
start.solidjs.com
|
|
12
|
-
</a>{' '}
|
|
13
|
-
to learn how to build SolidStart apps.
|
|
14
|
-
</p>
|
|
15
|
-
</main>
|
|
16
|
-
)
|
|
17
|
-
}
|