8000 Initial setup by slifty · Pull Request #1 · slifty/resume · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Initial setup #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"extraFileExtensions": [".svelte"]
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"prettier"
],
"env": {
"browser": true,
"es2017": true,
"node": true
}
}
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
groups:
eslint:
patterns:
- '*eslint*'
ignore:
- dependency-name: 'eslint'
update-types: ['version-update:semver-major']

- package-ecosystem: 'github-actions'
directory: '.github/workflows'
schedule:
interval: 'daily'
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
EDBE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: build
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: yarn install
- run: yarn build
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: lint
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Lint GitHub Action workflows
uses: raven-actions/actionlint@v2
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: npm ci
- run: npm run lint:eslint
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: npm ci
- run: npm run lint:prettier
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: publish

on:
push:
branches: ['main']

workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
id: pages
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,12 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# These are added by sveltekit
/build
/.svelte-kit
/package
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# resume
50 changes: 50 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"author": "Daniel Schultz",
"keywords": [
"Resume",
"Resume Generator"
],
"license": "AGPL-3.0",
"description": "An over-engineered resume platform",
"name": "resume",
"packageManager": "yarn@4.5.2",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/slifty/resume.git"
},
"scripts": {
"build": "vite build",
"dev": "vite dev",
"format": "npm run format:prettier",
"format:prettier": "prettier . --write",
"format:eslint": "eslint",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint ./src --ext .ts --max-warnings=0",
"lint:prettier": "prettier . --check",
"lint:swagger": "swagger-spec-validator src/openapi.json",
"lint:tsc": "tsc --noEmit -p tsconfig.dev.json",
"preview": "vite preview"
},
"type": "module",
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.5",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.15.3",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tsconfig/node22": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.1",
"prettier": "^3.4.2",
"svelte": "^5.18.0",
"svelte-check": "^4.1.4",
"typescript": "^5.7.3",
"vite": "^6.0.7"
},
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.2"
}
}
12 changes: 12 additions & 0 deletions src/app.d.ts
Original file line number Diff line number Di 10000 ff line change
@@ -0,0 +1,12 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface Platform {}
}
}

export {};
12 changes: 12 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
34 changes: 34 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<svelte:head>
<link rel="stylesheet" href="/main.css" />
<meta
name="description"
content="Dan is just this guy, you know?"
/>
<meta property="og:type" content="website" />
<meta
property="og:image"
content=""
/>
<meta
property="og:description"
content="Dan is just this guy, you know?"
/>
</svelte:head>

<div id="header">
<div id="logo">
Header
</div>
</div>

<div id="content">
<slot />
</div>

<div id="footer">
<em>This site is Open Source.</em> Want to make an improvement?
<a href="https://github.com/slifty/resume/">Open a PR</a>.
</div>

<style>
</style>
1 change: 1 addition & 0 deletions src/routes/+layout.ts
4D32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
8 changes: 8 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<svelte:head>
<title>Daniel Schultz's Resume</title>
<meta property="og:title" content="Daniel Schultz's Resume" />
<meta property="og:url" content="https://resume.slifty.com" />
</svelte:head>
Hello World
<style>
</style>
1 change: 1 addition & 0 deletions static/ATTRIBUTION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
favicon.png: Emoji One, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons
Binary file added static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added static/main.css
Empty file.
18 changes: 18 additions & 0 deletions svelte.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),

kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
precompress: false,
strict: true,
}),
},
};

export default config;
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
},
"include": ["src"],
"exclude": ["**/*.test.ts", "**/src/test"]
}
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [sveltekit()],
});
Loading
Loading
0