Skip to content

Svelte #324

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 5 commits 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
42 changes: 9 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
node_modules
/build
/.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
15 changes: 13 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
.next
pnpm-lock.yaml
.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
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
64 changes: 24 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,38 @@
# portfolio
# create-svelte

## Description
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

This the code for my [portfolio website](https://kylepfromer.com).
## Creating a project

## Installation
If you're seeing this, you've probably already done this step. Congrats!

`git clone https://github.com/kpfromer/portfolio.git`
```bash
# create a new project in the current directory
npm create svelte@latest

`cd portfolio`
# create a new project in my-app
npm create svelte@latest my-app
```

`pnpm install`
## Developing

`pnpm dev`
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

Done!
```bash
npm run dev

## Need to know
# or start the server and open the app in a new browser tab
npm run dev -- --open
```

- uses [formspree](https://formspree.io/) for headless contact forms
## Building

## Includes
To create a production version of your app:

- [eslint](https://github.com/eslint/eslint)
- [prettier](https://github.com/prettier/prettier), [husky](https://github.com/typicode/husky),
[lint-staged](https://github.com/okonet/lint-staged) for automatic formatting and linting
- [tailwind css](https://tailwindcss.com/) for components, styling, and theming
- [`next-mdx-remote`](https://github.com/hashicorp/next-mdx-remote) for sourcing mdx
```bash
npm run build
```

## Scripts
You can preview the production build with `npm run preview`.

- `npm run dev` runs next.js in development mode
- `npm run build` builds next.js application
- `npm start` starts the built next.js application
- `npm run lint` runs `eslint`
- `npm run format` runs `prettier`

## Structure

- `components` - components used for creating pages and stories for storybooks
- `lib` - the files associated with sourcing and consuming data from locations (like MDX)
- `hooks` - react hooks for SWR or other minor things next.js will try to create a page for them)
- `content` - the data for creating pages, like a MDX blog posts
- `utils` - misc one of files like theme or test helpers

## Other Cool Web Tools

- [favycon](https://favycon.app/) for generating favions

# Details

This is a [Next.js](https://nextjs.org/) project bootstrapped with
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
File renamed without changes.
54 changes: 54 additions & 0 deletions old/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# portfolio

## Description

This the code for my [portfolio website](https://kylepfromer.com).

## Installation

`git clone https://github.com/kpfromer/portfolio.git`

`cd portfolio`

`pnpm install`

`pnpm dev`

Done!

## Need to know

- uses [formspree](https://formspree.io/) for headless contact forms

## Includes

- [eslint](https://github.com/eslint/eslint)
- [prettier](https://github.com/prettier/prettier), [husky](https://github.com/typicode/husky),
[lint-staged](https://github.com/okonet/lint-staged) for automatic formatting and linting
- [tailwind css](https://tailwindcss.com/) for components, styling, and theming
- [`next-mdx-remote`](https://github.com/hashicorp/next-mdx-remote) for sourcing mdx

## Scripts

- `npm run dev` runs next.js in development mode
- `npm run build` builds next.js application
- `npm start` starts the built next.js application
- `npm run lint` runs `eslint`
- `npm run format` runs `prettier`

## Structure

- `components` - components used for creating pages and stories for storybooks
- `lib` - the files associated with sourcing and consuming data from locations (like MDX)
- `hooks` - react hooks for SWR or other minor things next.js will try to create a page for them)
- `content` - the data for creating pages, like a MDX blog posts
- `utils` - misc one of files like theme or test helpers

## Other Cool Web Tools

- [favycon](https://favycon.app/) for generating favions

# Details

This is a [Next.js](https://nextjs.org/) project bootstrapped with
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
103 changes: 103 additions & 0 deletions old/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"name": "portfolio",
"version": "0.1.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/kpfromer/portfolio"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"format": "prettier --write .",
"lint": "eslint '**/*.{js,jsx,ts,tsx}' --fix",
"lint-staged": "lint-staged"
},
"dependencies": {
"@mdx-js/react": "1.6.22",
"@octokit/graphql": "4.8.0",
"@plaiceholder/base64": "1.0.0",
"@tailwindcss/typography": "0.5.2",
"autoprefixer": "10.3.1",
"clsx": "1.1.1",
"docx": "7.3.0",
"docx-react": "1.0.5",
"framer-motion": "3.10.6",
"gray-matter": "4.0.3",
"image-size": "1.0.0",
"katex": "0.15.1",
"luxon": "2.1.1",
"next": "12.1.0",
"next-mdx-remote": "3.0.8",
"next-seo": "4.26.0",
"postcss": "8.4.3",
"preact": "10.5.14",
"prism-react-renderer": "1.2.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
"react-icons": "4.2.0",
"rehype-katex": "6.0.2",
"remark-math": "5.1.1",
"remark-unwrap-images": "3.0.1",
"sharp": "0.29.0",
"tailwind-styled-components": "2.1.6",
"tailwindcss": "3.0.23",
"unified": "10.1.0",
"unist-util-visit": "2.0.3",
"vfile": "5.2.0",
"yaml": "1.10.2"
},
"devDependencies": {
"@babel/core": "7.15.0",
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@types/gtag.js": "0.0.8",
"@types/luxon": "2.0.7",
"@types/node": "14.17.34",
"@types/react": "17.0.18",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"babel-loader": "8.2.2",
"babel-preset-react-app": "10.0.0",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"eslint-config-next": "11.1.2",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "4.0.0",
"husky": "4.3.8",
"lint-staged": "11.1.2",
"npm-run-all": "4.1.5",
"prettier": "2.3.2",
"prettier-plugin-tailwindcss": "0.1.8",
"rehype": "12.0.0",
"tsconfig-paths-webpack-plugin": "3.5.2",
"typescript": "4.5.2",
"whatwg-fetch": "3.6.2"
},
"prettier": {
"trailingComma": "all",
"semi": true,
"singleQuote": true,
"printWidth": 100,
"proseWrap": "always",
"tabWidth": 2
},
"lint-staged": {
"*.{js,jsx,ts,tsx,md,html,css}": "prettier --write",
"*.{js,jsx,ts,tsx}": "eslint --fix"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
57 changes: 57 additions & 0 deletions old/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@components/*": [
"components/*"
],
"@lib/*": [
"lib/*"
],
"@utils/*": [
"utils/*"
],
"@configs/*": [
"configs/*"
],
"@middlewares/*": [
"middlewares/*"
],
"@hooks/*": [
"hooks/*"
],
"@pages/*": [
"pages/*"
],
"@plugins/*": [
"plugins/*"
]
},
"incremental": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading