Skip to content

Commit

Permalink
update to latest sveltekit
Browse files Browse the repository at this point in the history
  • Loading branch information
kclejeune committed Sep 25, 2022
1 parent 76abcdc commit 86de6d2
Show file tree
Hide file tree
Showing 28 changed files with 1,650 additions and 1,287 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_GITHUB_API=https://api.github.com/graphql
VITE_GITHUB_USERNAME=kclejeune
GITHUB_USERNAME=kclejeune
GITHUB_API_URL=https://api.github.com/graphql
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.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
24 changes: 24 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
plugins: ["svelte3", "@typescript-eslint"],
ignorePatterns: ["*.cjs"],
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
settings: {
"svelte3/typescript": () => require("typescript"),
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
},
env: {
browser: true,
es2017: true,
node: true,
},
};
17 changes: 10 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
node_modules/
.svelte-kit/
package/
build/
.DS_Store
import.sh
*.tfstate
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

*.tfstate*
*.tfstate.backup
.terraform/
# env files
.envrc
*.local
*.local
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.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
17 changes: 13 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"useTabs": false,
"singleQuote": false,
"trailingComma": "es5",
"arrowParens": "always",
"htmlWhitespaceSensitivity": "css"
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"quoteProps": "as-needed",
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SvelteKit allows for development and page rendering in JavaScript, but remains c

## Developing

Install dependencies with `npm install`. To preview the site, run
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
Expand All @@ -18,15 +18,12 @@ npm run dev -- --open

## Building

Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment.
As mentioned previously, this project uses adapter-static.

To build and deploy, run
To create a production version of your app:

```bash
npm run build
```

and copy the `build/` output folder to any static web server.
You can preview the production build with `npm run preview`.

> 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.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
Loading

0 comments on commit 86de6d2

Please sign in to comment.