Skip to content

Commit b6e5d14

Browse files
committed
initiate sveltekit
1 parent 4960400 commit b6e5d14

17 files changed

+3603
-133
lines changed

.eslintignore

+13
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

.eslintrc.cjs

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/** @type { import("eslint").Linter.Config } */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:svelte/recommended',
8+
'prettier'
9+
],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['@typescript-eslint'],
12+
parserOptions: {
13+
sourceType: 'module',
14+
ecmaVersion: 2020,
15+
extraFileExtensions: ['.svelte']
16+
},
17+
env: {
18+
browser: true,
19+
es2017: true,
20+
node: true
21+
},
22+
overrides: [
23+
{
24+
files: ['*.svelte'],
25+
parser: 'svelte-eslint-parser',
26+
parserOptions: {
27+
parser: '@typescript-eslint/parser'
28+
}
29+
}
30+
]
31+
};

.gitignore

+9-131
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,10 @@
1-
# ---> Node
2-
# Logs
3-
logs
4-
*.log
5-
npm-debug.log*
6-
yarn-debug.log*
7-
yarn-error.log*
8-
lerna-debug.log*
9-
.pnpm-debug.log*
10-
11-
# Diagnostic reports (https://nodejs.org/api/report.html)
12-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13-
14-
# Runtime data
15-
pids
16-
*.pid
17-
*.seed
18-
*.pid.lock
19-
20-
# Directory for instrumented libs generated by jscoverage/JSCover
21-
lib-cov
22-
23-
# Coverage directory used by tools like istanbul
24-
coverage
25-
*.lcov
26-
27-
# nyc test coverage
28-
.nyc_output
29-
30-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31-
.grunt
32-
33-
# Bower dependency directory (https://bower.io/)
34-
bower_components
35-
36-
# node-waf configuration
37-
.lock-wscript
38-
39-
# Compiled binary addons (https://nodejs.org/api/addons.html)
40-
build/Release
41-
42-
# Dependency directories
43-
node_modules/
44-
jspm_packages/
45-
46-
# Snowpack dependency directory (https://snowpack.dev/)
47-
web_modules/
48-
49-
# TypeScript cache
50-
*.tsbuildinfo
51-
52-
# Optional npm cache directory
53-
.npm
54-
55-
# Optional eslint cache
56-
.eslintcache
57-
58-
# Optional stylelint cache
59-
.stylelintcache
60-
61-
# Microbundle cache
62-
.rpt2_cache/
63-
.rts2_cache_cjs/
64-
.rts2_cache_es/
65-
.rts2_cache_umd/
66-
67-
# Optional REPL history
68-
.node_repl_history
69-
70-
# Output of 'npm pack'
71-
*.tgz
72-
73-
# Yarn Integrity file
74-
.yarn-integrity
75-
76-
# dotenv environment variable files
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
776
.env
78-
.env.development.local
79-
.env.test.local
80-
.env.production.local
81-
.env.local
82-
83-
# parcel-bundler cache (https://parceljs.org/)
84-
.cache
85-
.parcel-cache
86-
87-
# Next.js build output
88-
.next
89-
out
90-
91-
# Nuxt.js build / generate output
92-
.nuxt
93-
dist
94-
95-
# Gatsby files
96-
.cache/
97-
# Comment in the public line in if your project uses Gatsby and not Next.js
98-
# https://nextjs.org/blog/next-9-1#public-directory-support
99-
# public
100-
101-
# vuepress build output
102-
.vuepress/dist
103-
104-
# vuepress v2.x temp and cache directory
105-
.temp
106-
.cache
107-
108-
# Docusaurus cache and generated files
109-
.docusaurus
110-
111-
# Serverless directories
112-
.serverless/
113-
114-
# FuseBox cache
115-
.fusebox/
116-
117-
# DynamoDB Local files
118-
.dynamodb/
119-
120-
# TernJS port file
121-
.tern-port
122-
123-
# Stores VSCode versions used for testing VSCode extensions
124-
.vscode-test
125-
126-
# yarn v2
127-
.yarn/cache
128-
.yarn/unplugged
129-
.yarn/build-state.yml
130-
.yarn/install-state.gz
131-
.pnp.*
132-
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*

.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+
# Ignore files for PNPM, NPM and YARN
2+
pnpm-lock.yaml
3+
package-lock.json
4+
yarn.lock

.prettierrc

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

README.md

+37-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1-
# running-calorie-average
1+
# create-svelte
22

3-
Tool to know the various running averages of your caloric intake.
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/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 commit comments

Comments
 (0)