Skip to content

Commit

Permalink
Merge pull request #4 from BernhardWebstudio/svelte-kit-implementation
Browse files Browse the repository at this point in the history
Implementation starting from svelte-kit starter kit
  • Loading branch information
GenieTim authored Dec 29, 2023
2 parents 6dbd372 + 197e9f4 commit 9570b19
Show file tree
Hide file tree
Showing 31 changed files with 3,343 additions and 2,000 deletions.
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
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
};
57 changes: 28 additions & 29 deletions .github/workflows/publish-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main

jobs:
build-deploy:
build_site:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -21,36 +21,35 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache yarn dependencies
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-
- name: Install yarn dependencies
# as we allow any keys we have to run the installer anyway
# if: steps.yarn-cache.outputs.cache-hit != 'true'
run: cd ..; yarn install

- name: Install yarn dependencies
# as we allow any keys we have to run the installer anyway
# if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Install dependencies
run: npm install

- name: Run Build
run: yarn run build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: npm run build

- name: Upload Build
uses: JamesIves/github-pages-[email protected]
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./example-app/public/ # The folder the action should deploy.
# this should match the `pages` option in your adapter-static options
path: 'build/'

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2
16 changes: 9 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.DS_Store
node_modules
example-app/node_modules/
example-app/public/build/
example-app/.DS_Store
test.html

dist
example-app/public/favicon.psd
/build
/dist
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
11 changes: 6 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always"
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
4 changes: 0 additions & 4 deletions example-app/.gitignore

This file was deleted.

93 changes: 0 additions & 93 deletions example-app/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions example-app/package.json

This file was deleted.

Binary file removed example-app/public/favicon.png
Binary file not shown.
63 changes: 0 additions & 63 deletions example-app/public/global.css

This file was deleted.

18 changes: 0 additions & 18 deletions example-app/public/index.html

This file was deleted.

Loading

0 comments on commit 9570b19

Please sign in to comment.