Skip to content
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

🚀 major: nuxt 3 version #52

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft
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
22 changes: 0 additions & 22 deletions .babelrc

This file was deleted.

14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

14 changes: 1 addition & 13 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# App environment. Either "development" or "production"
NODE_ENV=
ENV=
# Google analytics id
GA_ID=
# Stripe publishable key
STRIPE_PK=
ADSENSE_CA_PUB=
# Carbon Ads
CA_SERVE=
CA_PLACEMENT=
# Functions URL
API_URL=
YOUR_ENV=
9 changes: 7 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
dist
node_modules
.eslintrc.js
.nuxt
.output
/.quasar
/dist
/node_modules
babel.config.js
73 changes: 65 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,82 @@
module.exports = {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
root: true,

parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module' // Allows for the use of imports
},

env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
'vue/setup-compiler-macros': true
},

// Rules order is important, please avoid shuffling them
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
// Base ESLint recommended rules
// 'eslint:recommended',

// Uncomment any of the lines below to choose desired strictness,
// but leave only one uncommented!
// See https://eslint.vuejs.org/rules/#available-rules
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)

'standard'

],

plugins: [
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
// required to lint *.vue files
'vue',

],

globals: {
ga: 'readonly', // Google Analytics
process: 'readonly',
chrome: 'readonly'
},

// add your custom rules here
rules: {
'nuxt/no-cjs-in-config': 'off',
// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
'arrow-parens': 'off',
'one-var': 'off',

'import/first': 'off',
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'prefer-promise-reject-errors': 'off',

// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',

// custom
'semi': [2, 'always'],
'space-before-function-paren': [2, 'always'],
'keyword-spacing': [2, { before: true, after: true }],
'space-before-blocks': [2, 'always'],
'comma-dangle': [2, 'always-multiline'],
'no-console': 'off',
'no-multi-str': 'off'
'no-multi-str': 'off',
'curly': 1,
'no-undef': 'off',

// plugins
'vue/multi-word-component-names': 'off'
}
}
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "jofftiquez-dev"
}
}
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
"on":
push:
tags:
- v*
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install && npm run generate
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_JOFFTIQUEZ_DEV }}"
channelId: live
expires: 7d
projectId: jofftiquez-dev
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install && npm run generate
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_JOFFTIQUEZ_DEV }}"
projectId: jofftiquez-dev
43 changes: 0 additions & 43 deletions .github/workflows/production.yml

This file was deleted.

94 changes: 7 additions & 87 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,90 +1,10 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

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

# next.js build output
.next

# nuxt.js build output
node_modules
*.log*
.nuxt

# Nuxt generate
.nitro
.cache
.output
.env
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp
.firebase/*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12
18
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.codeActionsOnSave": [
"source.fixAll.eslint"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"vue"
]
}
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Vue Stripe Website
# jofftiquez.dev

[![MadeWithVueJs.com shield](https://madewithvuejs.com/storage/repo-shields/3008-shield.svg)](https://madewithvuejs.com/p/vue-stripe/shield-link)
This is my personal website. It is built with Nuxt.js and hosted on Firebase.

<p align="center">
<img src="./assets/images/home.png" alt="Vue Stripe Website Preview"/>
</p>
## Terminal mode

![image](https://github.com/jofftiquez/jofftiquez.dev/assets/8638243/852ccba4-1db9-48a3-bdf2-ca3c5dd32e2c)

## GUI mode dark

![image](https://github.com/jofftiquez/jofftiquez.dev/assets/8638243/442576d2-06b6-47d2-a678-fa99942ca4e1)

## GUI mode light

![image](https://github.com/jofftiquez/jofftiquez.dev/assets/8638243/5d5d23d2-3be8-4659-a72c-81be5780cd72)

Made with <3 by [Joff Tiquez](https://twitter.com/jrtiquez)
2 changes: 2 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line no-undef
export default defineAppConfig({});
7 changes: 7 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<div>
<NuxtLayout>
<NuxtPage/>
</NuxtLayout>
</div>
</template>
Loading
Loading