Innit nuxt and add basic config

This commit is contained in:
lastpotion 2021-03-31 09:30:58 +02:00
Родитель 76690f4835
Коммит 968514b43a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F3F6B0E78CAC41F3
25 изменённых файлов: 36199 добавлений и 96 удалений

13
.editorconfig Normal file
Просмотреть файл

@ -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

18
.eslintrc.js Normal file
Просмотреть файл

@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: 'babel-eslint',
},
extends: [
'@nuxtjs',
'plugin:prettier/recommended',
'plugin:nuxt/recommended',
],
plugins: ['prettier'],
// add your custom rules here
rules: {},
}

45
.github/workflows/ci.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,45 @@
name: ci
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Cache node_modules 📦
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies 👨🏻‍💻
run: npm ci
- name: Run linter 👀
run: npm run lint

90
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,90 @@
# 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
.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
.prettierrc Normal file
Просмотреть файл

@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}

20
README.md Normal file
Просмотреть файл

@ -0,0 +1,20 @@
# global-maintainers-summit
## Build Setup
```bash
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
```
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

10
app.html Normal file
Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head {{ HEAD_ATTRS }}>
{{ HEAD }}
<!-- <script src="https://cdn.usefathom.com/script.js" data-site="JDHEHWUV" data-spa="auto" defer></script> -->
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
</html>

7
assets/README.md Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# ASSETS
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

10
assets/scss/index.scss Normal file
Просмотреть файл

@ -0,0 +1,10 @@
body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
color: #fff;
background: #24292e;
background-color: #24292e;
}

7
components/README.md Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# COMPONENTS
**This directory is not required, you can delete it if you don't want to use it.**
The components directory contains your Vue.js Components.
_Nuxt.js doesn't supercharge these components._

18
content/hello.md Normal file
Просмотреть файл

@ -0,0 +1,18 @@
---
title: Getting started
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
---
Empower your NuxtJS application with `@nuxtjs/content` module: write in a `content/` directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a **Git-based Headless CMS**.
## Writing content
Learn how to write your `content/`, supporting Markdown, YAML, CSV and JSON: https://content.nuxtjs.org/writing.
## Fetching content
Learn how to fetch your content with `$content`: https://content.nuxtjs.org/fetching.
## Displaying content
Learn how to display your Markdown content with the `<nuxt-content>` component directly in your template: https://content.nuxtjs.org/displaying.

Просмотреть файл

@ -1,96 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Open Source Maintainer Summit - June 7-9 2021</title>
<meta property="og:url" content="https://globalmaintainersummit.github.com/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Global Maintainer Summit · June 7-9 2021" />
<meta property="og:description" content="A virtual gathering for the maintainers that make open source possible." />
<meta property="og:image" content="https://globalmaintainersummit.github.com/image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@github">
<meta name="twitter:creator" content="@github">
<meta name="twitter:title" content="Global Maintainer Summit · June 7-9 2021">
<meta name="twitter:description" content="A virtual gathering for the maintainers that make open source possible.">
<meta name="twitter:image" content="https://globalmaintainersummit.github.com/image.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
body {
background-color: #24292e;
background: #24292e;
color: #ffffff;
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
</style>
<pre>
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..488b6b9
--- /dev/null
+++ b/index.htm
@@ -0,0 +1,25 @@
+
+ ░██████╗░██╗░░░░░░█████╗░██████╗░░█████╗░██╗░░░░░
+ ██╔════╝░██║░░░░░██╔══██╗██╔══██╗██╔══██╗██║░░░░░
+ ██║░░██╗░██║░░░░░██║░░██║██████╦╝███████║██║░░░░░
+ ██║░░╚██╗██║░░░░░██║░░██║██╔══██╗██╔══██║██║░░░░░
+ ╚██████╔╝███████╗╚█████╔╝██████╦╝██║░░██║███████╗
+ ░╚═════╝░╚══════╝░╚════╝░╚═════╝░╚═╝░░╚═╝╚══════╝
+
+ ███╗░░░███╗░█████╗░██╗███╗░░██╗████████╗░█████╗░██╗███╗░░██╗███████╗██████╗░
+ ████╗░████║██╔══██╗██║████╗░██║╚══██╔══╝██╔══██╗██║████╗░██║██╔════╝██╔══██╗
+ ██╔████╔██║███████║██║██╔██╗██║░░░██║░░░███████║██║██╔██╗██║█████╗░░██████╔╝
+ ██║╚██╔╝██║██╔══██║██║██║╚████║░░░██║░░░██╔══██║██║██║╚████║██╔══╝░░██╔══██╗
+ ██║░╚═╝░██║██║░░██║██║██║░╚███║░░░██║░░░██║░░██║██║██║░╚███║███████╗██║░░██║
+ ╚═╝░░░░░╚═╝╚═╝░░╚═╝╚═╝╚═╝░░╚══╝░░░╚═╝░░░╚═╝░░╚═╝╚═╝╚═╝░░╚══╝╚══════╝╚═╝░░╚═╝
+
+ ░██████╗██╗░░░██╗███╗░░░███╗███╗░░░███╗██╗████████╗
+ ██╔════╝██║░░░██║████╗░████║████╗░████║██║╚══██╔══╝
+ ╚█████╗░██║░░░██║██╔████╔██║██╔████╔██║██║░░░██║░░░
+ ░╚═══██╗██║░░░██║██║╚██╔╝██║██║╚██╔╝██║██║░░░██║░░░
+ ██████╔╝╚██████╔╝██║░╚═╝░██║██║░╚═╝░██║██║░░░██║░░░
+ ╚═════╝░░╚═════╝░╚═╝░░░░░╚═╝╚═╝░░░░░╚═╝╚═╝░░░╚═╝░░░ hosted by GitHub
+
+ June 7-9 2021
+
+ A virtual gathering for the maintainers that make open source possible.
Commit signed by Kara Sowles &lt;karasowles@github.com&gt; your honored event organizer. Work in progress.
<pre>
.mmMMMMMMMMMMMMMmm.
.mMMMMMMMMMMMMMMMMMMMMMMMm.
.mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm.
.MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
.MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
MMMMMMMM' `"MMMMM"""""""MMMM""` 'MMMMMMMM
MMMMMMMMM MMMMMMMMM
MMMMMMMMMM: :MMMMMMMMMM
.MMMMMMMMMM MMMMMMMMMM.
MMMMMMMMM" "MMMMMMMMM
MMMMMMMMM MMMMMMMMM
MMMMMMMMM MMMMMMMMM
MMMMMMMMMM MMMMMMMMMM
`MMMMMMMMMM MMMMMMMMMM`
MMMMMMMMMMMM. .MMMMMMMMMMMM
MMMMMM MMMMMMMMMM MMMMMMMMMMMMMMMMMM
MMMMMM 'MMMMMMM MMMMMMMMMMMMMMMM
`MMMMMM "MMMMM MMMMMMMMMMMMMM`
`MMMMMm MMMMMMMMMMMM`
`"MMMMMMMMM MMMMMMMMM"`
`"MMMMMM MMMMMM"`
`""M M""`
</pre>
<script src="https://cdn.usefathom.com/script.js" data-site="JDHEHWUV" defer></script>
</body>
</html>

12
jsconfig.json Normal file
Просмотреть файл

@ -0,0 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
}

7
layouts/README.md Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# LAYOUTS
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your Application Layouts.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).

3
layouts/default.vue Normal file
Просмотреть файл

@ -0,0 +1,3 @@
<template>
<Nuxt />
</template>

8
middleware/README.md Normal file
Просмотреть файл

@ -0,0 +1,8 @@
# MIDDLEWARE
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your application middleware.
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).

134
nuxt.config.js Normal file
Просмотреть файл

@ -0,0 +1,134 @@
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
ssr: false,
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Open Source Maintainer Summit - June 7-9 2021',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary_large_image',
},
{
hid: 'twitter:site',
name: 'twitter:site',
content: '@github',
},
{
hid: 'twitter:creator',
name: 'twitter:creator',
content: '@github',
},
{
hid: 'twitter:title',
name: 'twitter:title',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'twitter:description',
name: 'twitter:description',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: 'https://globalmaintainersummit.github.com/image.png',
},
{
hid: 'twitter:image:alt',
name: 'twitter:image:alt',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'og:type',
property: 'og:type',
content: 'website',
},
{
hid: 'og:title',
property: 'og:title',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'og:description',
property: 'og:description',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
{
hid: 'og:image',
property: 'og:image',
content: 'https://globalmaintainersummit.github.com/image.png',
},
{
hid: 'og:image:width',
property: 'og:image:width',
content: '1200',
},
{
hid: 'og:image:height',
property: 'og:image:height',
content: '630',
},
{
hid: 'og:image:secure_url',
property: 'og:image:secure_url',
content: 'https://globalmaintainersummit.github.com/image.png',
},
{
hid: 'og:image:alt',
property: 'og:image:alt',
content:
'A virtual gathering for the maintainers that make open source possible.',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ['@/assets/scss/index.scss'],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/stylelint
'@nuxtjs/stylelint-module',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/content
'@nuxt/content',
],
// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
}

35675
package-lock.json сгенерированный Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

50
package.json Normal file
Просмотреть файл

@ -0,0 +1,50 @@
{
"name": "global-maintainers-summit",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore",
"lint": "npm run lint:js && npm run lint:style"
},
"lint-staged": {
"*.{js,vue}": "eslint",
"*.{css,vue}": "stylelint"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"@nuxt/content": "^1.14.0",
"core-js": "^3.9.1",
"nuxt": "^2.15.3"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^6.0.0",
"@nuxtjs/eslint-module": "^3.0.2",
"@nuxtjs/stylelint-module": "^4.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-nuxt": "^2.0.0",
"eslint-plugin-prettier": "^3.3.1",
"fibers": "^5.0.0",
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"sass": "^1.32.8",
"sass-loader": "^10.1.1",
"stylelint": "^13.12.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^21.0.0",
"stylelint-prettier": "^1.2.0",
"stylelint-scss": "^3.19.0"
}
}

6
pages/README.md Normal file
Просмотреть файл

@ -0,0 +1,6 @@
# PAGES
This directory contains your Application Views and Routes.
The framework reads all the `*.vue` files inside this directory and creates the router of your application.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing).

38
pages/index.vue Normal file
Просмотреть файл

@ -0,0 +1,38 @@
<template>
<div>
<pre>
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..488b6b9
--- /dev/null
+++ b/index.htm
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ hosted by GitHub
+
+ June 7-9 2021
+
+ A virtual gathering for the maintainers that make open source possible.
</pre
>
</div>
</template>

11
static/README.md Normal file
Просмотреть файл

@ -0,0 +1,11 @@
# STATIC
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your static files.
Each file inside this directory is mapped to `/`.
Thus you'd want to delete this README.md before deploying to production.
Example: `/static/robots.txt` is mapped as `/robots.txt`.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 6.4 KiB

После

Ширина:  |  Высота:  |  Размер: 6.4 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 183 KiB

После

Ширина:  |  Высота:  |  Размер: 183 KiB

13
stylelint.config.js Normal file
Просмотреть файл

@ -0,0 +1,13 @@
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-config-prettier',
],
plugins: ['stylelint-scss', 'stylelint-prettier'],
rules: {
'prettier/prettier': true,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
},
}