Skip to content

Commit

Permalink
Merge pull request #181 from bryanmylee/sveltekit-2
Browse files Browse the repository at this point in the history
Port to SvelteKit 2
  • Loading branch information
bryanmylee authored Jan 2, 2024
2 parents 626cccc + eb6344a commit b66074a
Show file tree
Hide file tree
Showing 22 changed files with 4,198 additions and 13,345 deletions.
8 changes: 5 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
node_modules
/build
/.svelte-kit
/dist
/package
.env
.env.*
!.env.example
/coverage

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
/docs
package-lock.json
yarn.lock
27 changes: 19 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
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'),
},
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install svelte
node-version: 18
- run: npm i svelte
- run: npm ci
- run: npm test
- uses: coverallsapp/github-action@master
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: npm ci
- run: npm test

Expand All @@ -25,10 +25,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run package
- run: npm publish ./package
- run: npm publish .
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.DS_Store
node_modules
/build
/.svelte-kit
/dist
/.svelte-kit
/package
.env
.env.*
!.env.example
/coverage
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/coverage
10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

13 changes: 3 additions & 10 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
.DS_Store
node_modules
/build
/.svelte-kit
/dist
.env
.env.*
!.env.example
/coverage
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
/docs
package-lock.json
yarn.lock
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"useTabs": true,
"singleQuote": true,
"printWidth": 100
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions babel.config.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions jest.config.cjs

This file was deleted.

Loading

0 comments on commit b66074a

Please sign in to comment.