Skip to content

Commit

Permalink
Rewrite website with Nuxt.js (Vue)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellCash committed Sep 29, 2020
1 parent 3c76917 commit 1635970
Show file tree
Hide file tree
Showing 66 changed files with 9,581 additions and 14,466 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

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

[*.md]
trim_trailing_whitespace = false
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

36 changes: 32 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
module.exports = {
globals: {
__PATH_PREFIX__: true
root: true,

plugins: ['import', 'prettier'],

env: {
browser: true,
node: true,
es6: true
},
extends: ['react-app', 'google', 'prettier'],

parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module'
},

extends: [
'eslint:recommended',
'eslint-config-airbnb-base',
'plugin:nuxt/recommended',
'plugin:prettier/recommended',
'prettier/vue'
],

rules: {
'max-len': ['warn', { code: 80 }]
'import/order': 'error',
'prettier/prettier': [
'error',
{
printWidth: 100,
singleQuote: true,
trailingComma: 'none'
}
]
}
};
13 changes: 3 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ on: [push, pull_request]

jobs:
lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Node 12.x
Expand All @@ -18,18 +16,13 @@ jobs:
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build

test:

build:
runs-on: ubuntu-latest

strategy:
matrix:
# Run build on latest and LTS Node versions.
node-version: [12.x, 13.x]

# Run build on Node LTS and later active versions.
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Setup Node ${{ matrix.node-version }}
Expand Down
51 changes: 35 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
Expand Down Expand Up @@ -29,14 +31,14 @@ bower_components
# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
# TypeScript v1 declaration files
typings/

# Optional npm cache directory
Expand All @@ -51,21 +53,38 @@ typings/
# Output of 'npm pack'
*.tgz

# dotenv environment variable files
.env*
# Yarn Integrity file
.yarn-integrity

# gatsby files
.cache/
public
# dotenv environment variables file
.env

# Mac files
.DS_Store
# parcel-bundler cache (https://parceljs.org/)
.cache

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity
# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@ CI Status: ![CI Status](https://github.com/MitchellCash/MitchellCash.com/workflo
Live Site: [MitchellCash.com](https://mitchellcash.com)

Report problems or help improve the site by opening a [new issue](https://github.com/mitchellcash/mitchellcash.com/issues/new) or [pull request](https://github.com/mitchellcash/mitchellcash.com/compare).

## Development

```sh
npm run dev
```

## Production

Generate a static site (static files will be in the `dist/` dir):

```sh
npm run generate
```
10 changes: 0 additions & 10 deletions gatsby-browser.js

This file was deleted.

71 changes: 0 additions & 71 deletions gatsby-config.js

This file was deleted.

58 changes: 0 additions & 58 deletions gatsby-node.js

This file was deleted.

6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = "public/"
command = "npm run build"
publish = "dist/"
command = "npm run generate"

[build.environment]
NODE_VERSION = "12"
NODE_VERSION = "12"
Loading

0 comments on commit 1635970

Please sign in to comment.