Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
evankirkiles committed Oct 10, 2022
1 parent 81dd516 commit 0d64cc8
Show file tree
Hide file tree
Showing 20 changed files with 777 additions and 38 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": "next/core-web-vitals"
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"],
"rules": {
"@next/next/no-img-element": "off",
"prettier/prettier": ["error"]
}
}
42 changes: 38 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,45 @@ yarn-error.log*
.pnpm-debug.log*

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

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 80
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
31 changes: 31 additions & 0 deletions next-seo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/** @type {import('next-seo').DefaultSeoProps} */
// seo setup
export default {
defaultTitle: 'A Bit of Personal Space - an exploration.',
titleTemplate: '%s - a bit of personal space',
description: 'An exporation into the spaces and places that make us us.',
canonical: 'https://abitofpersonal.space',
additionalMetaTags: [
{
property: 'author',
content: 'Evan Kirkiles',
},
{
property: 'language',
content: 'en-us',
},
{
property: 'keywords',
content:
'art, artist, painting, paper, papercraft, papercrafting, scissors, cut, glue, fold, visuals, graphic design, blender, 3d, 2d, concept, sculpture, game, video, videogame',
},
],
openGraph: {
type: 'website',
locale: 'en',
url: 'https://abitofpersonal.space',
title: 'A Bit of Personal Space - an exploration.',
description: 'an exporation into the spaces and places that make us us.',
site_name: 'A Bit of Personal Space',
},
};
7 changes: 5 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
eslint: {
ignoreDuringBuilds: true,
},
};

module.exports = nextConfig
module.exports = nextConfig;
31 changes: 28 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,40 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"prepare": "husky install",
"postbuild": "next-sitemap"
},
"dependencies": {
"next": "12.3.1",
"next-seo": "^5.5.0",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"react-transition-group": "^4.4.5"
},
"devDependencies": {
"@types/node": "^18.7.2",
"@types/react": "18.0.17",
"@types/react-dom": "18.0.6",
"eslint": "8.23.1",
"eslint-config-next": "12.3.1"
"eslint-config-next": "12.3.1",
"sass": "^1.55.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": ">=6",
"lint-staged": "^13.0.3",
"next-sitemap": "^3.1.22",
"prettier": "^2.7.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.7.4"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.scss": [
"prettier --write"
]
}
}
7 changes: 0 additions & 7 deletions pages/_app.js

This file was deleted.

5 changes: 0 additions & 5 deletions pages/api/hello.js

This file was deleted.

21 changes: 21 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* _app.tsx
* author: evan kirkiles
* created on Sun Oct 09 2022
* 2022 the nobot space,
*/
import { DefaultSeo } from 'next-seo';
import { AppProps } from 'next/app';
import '../styles/globals.scss';
import SEO from '../../next-seo.config';

function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<DefaultSeo {...SEO} />
<Component {...pageProps} />
</>
);
}

export default MyApp;
58 changes: 58 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* _document.tsx
* author: evan kirkiles
* created on Sun Oct 09 2022
* 2022 the nobot space,
*/
import Document, { Html, Head, Main, NextScript } from 'next/document';

class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=optional"
rel="stylesheet"
/>
<meta
httpEquiv="Content-Type"
content="text/html; charset=utf-8"
></meta>
{/* <!-- FAVICONS --> */}
<link rel="icon" href="/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="apple-mobile-web-app-title" content="evan kirkiles" />
<meta name="application-name" content="evan kirkiles" />
<meta name="msapplication-TileColor" content="#ffffff" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

export default MyDocument;
8 changes: 4 additions & 4 deletions pages/index.js → src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import Head from 'next/head';
import Image from 'next/image';
import styles from '../styles/Home.module.css';

export default function Home() {
return (
Expand Down Expand Up @@ -65,5 +65,5 @@ export default function Home() {
</a>
</footer>
</div>
)
);
}
File renamed without changes.
Empty file added src/styles/_mixins.scss
Empty file.
File renamed without changes.
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 0d64cc8

Please sign in to comment.