Skip to content

Commit 7efee0d

Browse files
committed
[Init] 🔥 Basic setup ƛ
1 parent 25b547f commit 7efee0d

22 files changed

+9404
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
parserOptions: {
8+
parser: 'babel-eslint',
9+
'sourceType': 'module'
10+
},
11+
extends: [
12+
'eslint:recommended',
13+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
14+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
15+
'@nuxtjs',
16+
'plugin:prettier/recommended'
17+
],
18+
// required to lint *.vue files
19+
plugins: ['prettier'],
20+
rules: {
21+
semi: [2, 'never'],
22+
'no-console': 'warn',
23+
'no-debugger': 'warn',
24+
'no-unused-vars': 'warn',
25+
'vue/no-unused-components': 'warn',
26+
'vue/max-attributes-per-line': 'off',
27+
'vue/singleline-html-element-content-newline': 'off',
28+
'vue/multiline-html-element-content-newline': 'off',
29+
'vue/component-name-in-template-casing': [
30+
'warn',
31+
'PascalCase',
32+
{ ignores: ['nuxt', 'nuxt-link', 'no-ssr', 'component', 'transition'] }
33+
],
34+
'prettier/prettier': [
35+
'error',
36+
{
37+
singleQuote: true,
38+
semi: false
39+
}
40+
],
41+
}
42+
}

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# dependencies
2+
node_modules
3+
4+
# logs
5+
npm-debug.log
6+
7+
# Nuxt build
8+
.nuxt
9+
10+
# Nuxt generate
11+
dist
12+
13+
# Netlify Lambda Functions
14+
netlify-lambda-build

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11.6.0

.sass-lint.yml

+199
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
# sass-lint config generated by make-sass-lint-config v0.1.2
2+
#
3+
# The following scss-lint Linters are not yet supported by sass-lint:
4+
# DisableLinterReason, ElsePlacement, PropertyCount, SelectorDepth
5+
# SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, Compass::*
6+
#
7+
# The following settings/values are unsupported by sass-lint:
8+
# Linter Indentation, option "allow_non_nested_indentation"
9+
# Linter Indentation, option "character"
10+
# Linter NestingDepth, option "ignore_parent_selectors"
11+
# Linter PropertySortOrder, option "min_properties"
12+
# Linter PropertySortOrder, option "separate_groups"
13+
# Linter PropertyUnits, option "border"
14+
# Linter PropertyUnits, option "line-height"
15+
# Linter PropertyUnits, option "margin"
16+
# Linter PropertyUnits, option "height"
17+
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
18+
# Linter VendorPrefix, option "identifier_list"
19+
20+
files:
21+
include: '**/*.scss'
22+
options:
23+
formatter: stylish
24+
merge-default-rules: false
25+
rules:
26+
bem-depth:
27+
- 0
28+
- max-depth: 1
29+
border-zero:
30+
- 1
31+
- convention: zero
32+
brace-style:
33+
- 1
34+
- allow-single-line: true
35+
class-name-format:
36+
- 1
37+
- convention: >-
38+
^([A-Z]?[a-zA-Z\-]*[a-z0-9]*)(\.[a-z0-9\-]*)?(__[a-z0-9]*([-]?[a-z0-9]+)?[-]?[a-z0-9]*)?(--[a-z0-9]*[-]?[a-z0-9\-]*)?(\:[a-z]*)*$
39+
convention-explanation: 'Check this regex what is allowed https://regex101.com/r/PBNJvx/3'
40+
clean-import-paths:
41+
- 1
42+
- filename-extension: false
43+
leading-underscore: false
44+
empty-line-between-blocks:
45+
- 1
46+
- ignore-single-line-rulesets: true
47+
extends-before-declarations: 1
48+
extends-before-mixins: 1
49+
final-newline:
50+
- 1
51+
- include: true
52+
force-attribute-nesting: 1
53+
force-element-nesting: 1
54+
force-pseudo-nesting: 1
55+
function-name-format:
56+
- 1
57+
- allow-leading-underscore: false
58+
convention: '^[a-z]+[a-z\d-]*$'
59+
convention-explanation: >-
60+
Only hyphenated lowercase with numbers allowed. Dont start with a
61+
number! https://regex101.com/r/2YMIg4/2
62+
hex-length:
63+
- 1
64+
- style: short
65+
hex-notation:
66+
- 1
67+
- style: lowercase
68+
id-name-format:
69+
- 1
70+
- convention: >-
71+
^([A-Z]?[a-zA-Z\-]*[a-z0-9]*)(\.[a-z0-9\-]*)?(__[a-z0-9]*([-]?[a-z0-9]+)?[-]?[a-z0-9]*)?(--[a-z0-9]*[-]?[a-z0-9\-]*)?(\:[a-z]*)*$
72+
convention-explanation: 'Check this regex what is allowed https://regex101.com/r/PBNJvx/3'
73+
indentation:
74+
- 1
75+
- size: 2
76+
leading-zero:
77+
- 1
78+
- include: true
79+
mixin-name-format:
80+
- 1
81+
- allow-leading-underscore: false
82+
convention: '^[a-z]+[a-z\d-]*$'
83+
convention-explanation: >-
84+
Only hyphenated lowercase with numbers allowed. Dont start with a
85+
number! https://regex101.com/r/2YMIg4/2
86+
mixins-before-declarations: 1
87+
nesting-depth:
88+
- 1
89+
- max-depth: 3
90+
no-color-keywords: 1
91+
no-color-literals: 1
92+
no-css-comments: 0
93+
no-debug: 1
94+
no-duplicate-properties: 1
95+
no-empty-rulesets: 1
96+
no-extends: 0
97+
no-ids: 1
98+
no-important: 1
99+
no-invalid-hex: 1
100+
no-mergeable-selectors: 1
101+
no-misspelled-properties:
102+
- 1
103+
- extra-properties: []
104+
no-qualifying-elements:
105+
- 1
106+
- allow-element-with-attribute: false
107+
allow-element-with-class: false
108+
allow-element-with-id: false
109+
no-trailing-zero: 1
110+
no-transition-all: 0
111+
no-url-protocols: 1
112+
no-vendor-prefixes:
113+
- 1
114+
- additional-identifiers: []
115+
excluded-identifiers: []
116+
placeholder-in-extend: 1
117+
placeholder-name-format:
118+
- 1
119+
- convention: >-
120+
^([A-Z]?[a-zA-Z\-]*[a-z0-9]*)(\.[a-z0-9\-]*)?(__[a-z0-9]*([-]?[a-z0-9]+)?[-]?[a-z0-9]*)?(--[a-z0-9]*[-]?[a-z0-9\-]*)?(\:[a-z]*)*$
121+
convention-explanation: 'Check this regex what is allowed https://regex101.com/r/PBNJvx/3'
122+
property-sort-order:
123+
- 0
124+
- ignore-custom-properties: false
125+
property-units:
126+
- 1
127+
- global:
128+
- ch
129+
- em
130+
- ex
131+
- rem
132+
- cm
133+
- in
134+
- mm
135+
- pc
136+
- pt
137+
- px
138+
- q
139+
- vh
140+
- vw
141+
- vmin
142+
- vmax
143+
- deg
144+
- grad
145+
- rad
146+
- turn
147+
- ms
148+
- s
149+
- Hz
150+
- kHz
151+
- dpi
152+
- dpcm
153+
- dppx
154+
- '%'
155+
per-property: null
156+
quotes:
157+
- 1
158+
- style: single
159+
shorthand-values:
160+
- 1
161+
- allowed-shorthands:
162+
- 1
163+
- 2
164+
- 3
165+
- 4
166+
single-line-per-selector: 1
167+
space-after-bang:
168+
- 1
169+
- include: false
170+
space-after-colon:
171+
- 1
172+
- include: true
173+
space-after-comma:
174+
- 1
175+
- include: true
176+
space-before-bang:
177+
- 1
178+
- include: true
179+
space-before-brace:
180+
- 1
181+
- include: true
182+
space-before-colon: 1
183+
space-between-parens:
184+
- 1
185+
- include: false
186+
trailing-semicolon: 1
187+
url-quotes: 1
188+
variable-for-property:
189+
- 0
190+
- properties: []
191+
variable-name-format:
192+
- 1
193+
- allow-leading-underscore: false
194+
convention: '^([a-z]*)((-[a-z\d]+)+)*$'
195+
convention-explanation: >-
196+
Always start with a single letter indicating variable-level (component,
197+
setting etc). Only use kebab-case and lower case characters after that:
198+
https://regex101.com/r/xQAEqX/6
199+
zero-unit: 1

.yarnclean

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# test directories
2+
__tests__
3+
test
4+
tests
5+
powered-test
6+
7+
# asset directories
8+
docs
9+
doc
10+
website
11+
images
12+
assets
13+
14+
# examples
15+
example
16+
examples
17+
18+
# code coverage directories
19+
coverage
20+
.nyc_output
21+
22+
# build scripts
23+
Makefile
24+
Gulpfile.js
25+
Gruntfile.js
26+
27+
# configs
28+
appveyor.yml
29+
circle.yml
30+
codeship-services.yml
31+
codeship-steps.yml
32+
wercker.yml
33+
.tern-project
34+
.gitattributes
35+
.editorconfig
36+
.*ignore
37+
.eslintrc
38+
.jshintrc
39+
.flowconfig
40+
.documentup.json
41+
.yarn-metadata.json
42+
.travis.yml
43+
44+
# misc
45+
*.md

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# nuxt-netlify-functions-example
2+
3+
> Nuxt.js example for running Netlify functions locally in a dev environment and as a generated static site deployed to Netlify
4+
5+
## Build Setup
6+
7+
``` bash
8+
# Use nvm
9+
$ nvm use
10+
11+
# Install dependencies
12+
$ yarn
13+
14+
# Serve lambda functions locally
15+
$ yarn netlify-lambda serve netlify-lambda-src
16+
17+
# Build lambda functions locally if you feel like
18+
# $ yarn netlify-lambda build netlify-lambda-src
19+
20+
# Serve nuxt app with hot reload at localhost:3000
21+
$ yarn dev
22+
23+
# Generate static project
24+
$ yarn generate
25+
```

assets/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ASSETS
2+
3+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
4+
5+
More information about the usage of this directory in the documentation:
6+
https://nuxtjs.org/guide/assets#webpacked
7+
8+
**This directory is not required, you can delete it if you don't want to use it.**

assets/css/global.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* {
2+
font-size: 14px;
3+
}

assets/css/main.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'global';

components/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# COMPONENTS
2+
3+
The components directory contains your Vue.js Components.
4+
Nuxt.js doesn't supercharge these components.
5+
6+
**This directory is not required, you can delete it if you don't want to use it.**

layouts/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# LAYOUTS
2+
3+
This directory contains your Application Layouts.
4+
5+
More information about the usage of this directory in the documentation:
6+
https://nuxtjs.org/guide/views#layouts
7+
8+
**This directory is not required, you can delete it if you don't want to use it.**

layouts/default.vue

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<template>
2+
<div class="Layout">
3+
<main id="main" ref="main" class="Layout__content">
4+
<nuxt />
5+
</main>
6+
</div>
7+
</template>
8+
9+
<style src='./layout.scss' lang='scss' />

0 commit comments

Comments
 (0)