Skip to content

Commit 7c6b679

Browse files
committed
Initial commit
0 parents  commit 7c6b679

15 files changed

+1525
-0
lines changed

.eslintrc.cjs

+20
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: 2019
14+
},
15+
env: {
16+
browser: true,
17+
es2017: true,
18+
node: true
19+
}
20+
};

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules
3+
/.svelte-kit
4+
/package

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.svelte-kit/**
2+
static/**
3+
build/**
4+
node_modules/**

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100
6+
}

README.md

+38
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 init svelte@next
12+
13+
# create a new project in my-app
14+
npm init svelte@next my-app
15+
```
16+
17+
> Note: the `@next` is temporary
18+
19+
## Developing
20+
21+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
22+
23+
```bash
24+
npm run dev
25+
26+
# or start the server and open the app in a new browser tab
27+
npm run dev -- --open
28+
```
29+
30+
## Building
31+
32+
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
33+
34+
```bash
35+
npm run build
36+
```
37+
38+
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.

package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "~TODO~",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"dev": "svelte-kit dev",
6+
"build": "svelte-kit build",
7+
"preview": "svelte-kit preview",
8+
"check": "svelte-check --tsconfig ./tsconfig.json",
9+
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
10+
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
11+
"format": "prettier --write --plugin-search-dir=. ."
12+
},
13+
"devDependencies": {
14+
"@sveltejs/kit": "next",
15+
"@typescript-eslint/eslint-plugin": "^4.19.0",
16+
"@typescript-eslint/parser": "^4.19.0",
17+
"eslint": "^7.22.0",
18+
"eslint-config-prettier": "^8.1.0",
19+
"eslint-plugin-svelte3": "^3.2.0",
20+
"prettier": "~2.2.1",
21+
"prettier-plugin-svelte": "^2.2.0",
22+
"svelte": "^3.34.0",
23+
"svelte-check": "^2.0.0",
24+
"svelte-preprocess": "^4.0.0",
25+
"tslib": "^2.0.0",
26+
"typescript": "^4.0.0"
27+
},
28+
"type": "module"
29+
}

src/app.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
%svelte.head%
8+
</head>
9+
<body>
10+
<div id="svelte">%svelte.body%</div>
11+
</body>
12+
</html>

src/global.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@sveltejs/kit" />

src/routes/index.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<h1>Welcome to SvelteKit</h1>
2+
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>

static/favicon.png

1.53 KB
Loading

svelte.config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import preprocess from 'svelte-preprocess';
2+
3+
/** @type {import('@sveltejs/kit').Config} */
4+
const config = {
5+
// Consult https://github.com/sveltejs/svelte-preprocess
6+
// for more information about preprocessors
7+
preprocess: preprocess(),
8+
9+
kit: {
10+
// hydrate the <div id="svelte"> element in src/app.html
11+
target: '#svelte'
12+
}
13+
};
14+
15+
export default config;

tsconfig.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "es2020",
5+
"lib": ["es2020", "DOM"],
6+
"target": "es2019",
7+
/**
8+
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
9+
to enforce using \`import type\` instead of \`import\` for Types.
10+
*/
11+
"importsNotUsedAsValues": "error",
12+
"isolatedModules": true,
13+
"resolveJsonModule": true,
14+
/**
15+
To have warnings/errors of the Svelte compiler at the correct position,
16+
enable source maps by default.
17+
*/
18+
"sourceMap": true,
19+
"esModuleInterop": true,
20+
"skipLibCheck": true,
21+
"forceConsistentCasingInFileNames": true,
22+
"baseUrl": ".",
23+
"allowJs": true,
24+
"checkJs": true,
25+
"paths": {
26+
"$lib": ["src/lib"],
27+
"$lib/*": ["src/lib/*"]
28+
}
29+
},
30+
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
31+
}

yarn-error.log

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
Arguments:
2+
C:\Program Files\nodejs\node.exe C:\Users\Alpha\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js
3+
4+
PATH:
5+
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk-15.0.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Symfony;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\PDFtk Server\bin\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;D:\Program Files\MATLAB\R2020b\bin;D:\Program Files\gnuplot\bin;C:\Program Files\nodejs\;C:\ProgramData\ComposerSetup\bin;D:\Program Files (x86)\Ruby30-x64\bin;C:\Users\Alpha\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Alpha\AppData\Local\Programs\Python\Python39\;C:\Users\Alpha\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Alpha\.dotnet\tools;D:\Programmes\Microsoft VS Code\bin;C:\Users\Alpha\AppData\Local\Microsoft\WindowsApps;C:\Users\Alpha\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;D:\Program Files\xampp\php;C:\Users\Alpha\AppData\Roaming\Composer\vendor\bin;C:\Program Files (x86)\PDFtk Server\bin\pdftk.exe;C:\Users\Alpha\AppData\Roaming\npm;
6+
7+
Yarn version:
8+
1.22.10
9+
10+
Node version:
11+
14.15.1
12+
13+
Platform:
14+
win32 x64
15+
16+
Trace:
17+
Error: getaddrinfo ENOTFOUND registry.yarnpkg.com
18+
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
19+
20+
npm manifest:
21+
{
22+
"name": "~TODO~",
23+
"version": "0.0.1",
24+
"scripts": {
25+
"dev": "svelte-kit dev",
26+
"build": "svelte-kit build",
27+
"preview": "svelte-kit preview",
28+
"check": "svelte-check --tsconfig ./tsconfig.json",
29+
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
30+
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
31+
"format": "prettier --write --plugin-search-dir=. ."
32+
},
33+
"devDependencies": {
34+
"@sveltejs/kit": "next",
35+
"@typescript-eslint/eslint-plugin": "^4.19.0",
36+
"@typescript-eslint/parser": "^4.19.0",
37+
"eslint": "^7.22.0",
38+
"eslint-config-prettier": "^8.1.0",
39+
"eslint-plugin-svelte3": "^3.2.0",
40+
"prettier": "~2.2.1",
41+
"prettier-plugin-svelte": "^2.2.0",
42+
"svelte": "^3.34.0",
43+
"svelte-check": "^2.0.0",
44+
"svelte-preprocess": "^4.0.0",
45+
"tslib": "^2.0.0",
46+
"typescript": "^4.0.0"
47+
},
48+
"type": "module"
49+
}
50+
51+
yarn manifest:
52+
No manifest
53+
54+
Lockfile:
55+
No lockfile

0 commit comments

Comments
 (0)