Skip to content

Commit bc959bd

Browse files
committed
Initialize basic structure and dummy content
This currently is a standalone svelte project, using vite as bundler which can be bundled into a single html file
1 parent e13cf8b commit bc959bd

22 files changed

Lines changed: 2720 additions & 0 deletions

html/.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

html/.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5+
plugins: ['svelte3', '@typescript-eslint'],
6+
ignorePatterns: ['*.cjs'],
7+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8+
settings: {
9+
'svelte3/typescript': () => require('typescript')
10+
},
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020
14+
},
15+
env: {
16+
browser: true,
17+
es2017: true,
18+
node: true
19+
}
20+
};

html/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

html/.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

html/.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
9+
}

html/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

html/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html >
2+
<html lang="en" class="dark">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
</head>
7+
<body data-theme="skeleton">
8+
<div style="display: contents" class="h-full overflow-hidden">
9+
<div id="app"></div>
10+
<script type="module" src="/src/main.ts"></script>
11+
</div>
12+
</body>
13+
</html>

html/package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "html",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"dev": "vite dev",
7+
"build": "vite build",
8+
"preview": "vite preview",
9+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
10+
"format": "prettier --plugin-search-dir . --write .",
11+
"check": "svelte-check --tsconfig ./tsconfig.json"
12+
},
13+
"devDependencies": {
14+
"@skeletonlabs/skeleton": "^0.92.2",
15+
"@sveltejs/vite-plugin-svelte": "^2.0.2",
16+
"@tailwindcss/forms": "^0.5.3",
17+
"@tailwindcss/line-clamp": "^0.4.2",
18+
"@tailwindcss/typography": "^0.5.9",
19+
"@typescript-eslint/eslint-plugin": "^5.45.0",
20+
"@typescript-eslint/parser": "^5.45.0",
21+
"autoprefixer": "^10.4.13",
22+
"eslint": "^8.31.0",
23+
"eslint-config-prettier": "^8.5.0",
24+
"eslint-plugin-svelte3": "^4.0.0",
25+
"postcss": "^8.4.21",
26+
"prettier": "^2.8.0",
27+
"prettier-plugin-svelte": "^2.8.1",
28+
"svelte": "^3.54.0",
29+
"svelte-check": "^2.9.2",
30+
"tailwindcss": "^3.2.4",
31+
"tslib": "^2.4.1",
32+
"typescript": "^4.9.3",
33+
"vite": "^4.0.4",
34+
"vite-plugin-singlefile": "^0.13.2"
35+
},
36+
"type": "module",
37+
"dependencies": {
38+
"@tsconfig/svelte": "^3.0.0",
39+
"esbuild": "^0.17.0",
40+
"rollup": "^3.10.0"
41+
}
42+
}

0 commit comments

Comments
 (0)