Skip to content

Commit 3accbb7

Browse files
author
John Ouellet
committed
Initial commit
1 parent 4f1a55a commit 3accbb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7362
-1
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
10+
[*.js]
11+
indent_style = space
12+
indent_size = 2

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.temp
2+
.cache
3+
dist
4+
_site

.eslintrc.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"mocha": true
5+
},
6+
"parser": "@babel/eslint-parser",
7+
"parserOptions": {
8+
"sourceType": "module",
9+
"ecmaVersion": 8,
10+
"requireConfigFile": false
11+
},
12+
"extends": "google",
13+
"rules": {
14+
"arrow-parens": ["error",
15+
"as-needed"
16+
],
17+
"max-len": ["error", {
18+
"code": 120,
19+
"ignoreComments": true
20+
}],
21+
"require-jsdoc": ["error", {
22+
"require": {
23+
"FunctionDeclaration": true,
24+
"MethodDefinition": false,
25+
"ClassDeclaration": false,
26+
"ArrowFunctionExpression": false,
27+
"FunctionExpression": false
28+
}
29+
}]
30+
}
31+
}

.gitattributes

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Declare files that will always have LF line endings on checkout.
5+
*.js text eol=lf
6+
*.sh text eol=lf
7+
*.conf text eol=lf
8+
*.cnf text eol=lf
9+
*.ini text eol=lf
10+
*.php text eol=lf
11+
*.vcl text eol=lf

.github/FUNDING.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github: [lando, pirog]
4+
patreon: devwithlando
5+
open_collective: devwithlando
6+
custom: https://lando.dev/join

.github/ISSUE_TEMPLATE/bug_report.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Bug
3+
about: Create a bug report to help us improve this plugin
4+
labels: bug
5+
---
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Docs
3+
about: Suggest a documentation change or improvement
4+
labels: docs
5+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Feature
3+
about: Suggest an idea for this project
4+
labels: feature
5+
---

.github/ISSUE_TEMPLATE/misc.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Misc
3+
about: Create basically every other kind of issue
4+
labels: task
5+
---

.github/ISSUE_TEMPLATE/security.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Security
3+
about: Create a security issue
4+
labels: security
5+
---
6+
7+
**DO NOT SUBMIT A SECURITY ISSUE HERE!**
8+
9+
If you have discovered a security issue with Lando, please contact the Lando Security Team directly at [[email protected]](mailto:[email protected]).
10+
11+
We manage security issues separately in a private repository until the issue has been resolved. Even if you're not sure if it's a security problem, please contact the security team before filing an issue, blogging, or tweeting about it.
12+
13+
**DO NOT SUBMIT A SECURITY ISSUE HERE!**

.github/workflows/pr-docs-tests.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Docs Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
unit-tests:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu-20.04
13+
node-version:
14+
- '14'
15+
steps:
16+
# Install deps and cache
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
- name: Install node ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: yarn
24+
- name: Install Yarn dependencies
25+
run: yarn install --prefer-offline --frozen-lockfile
26+
27+
# Run tests
28+
- name: Run linter
29+
run: yarn docs:lint
30+
- name: Test build
31+
run: yarn docs:build

.github/workflows/pr-linter.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint Code
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu-20.04
13+
node-version:
14+
- '14'
15+
steps:
16+
# Install deps and cache
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
- name: Install node ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: yarn
24+
- name: Install Yarn dependencies
25+
run: yarn install --prefer-offline --frozen-lockfile
26+
27+
# Run the linter
28+
- name: Run code linter
29+
run: yarn lint

.github/workflows/pr-unit-tests.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
unit-tests:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
- windows-2019
13+
- ubuntu-20.04
14+
- macos-10.15
15+
node-version:
16+
- '14'
17+
steps:
18+
# Install deps and cache
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
- name: Install node ${{ matrix.node-version }}
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: yarn
26+
- name: Install Yarn dependencies
27+
run: yarn install --prefer-offline --frozen-lockfile
28+
29+
# Run unit tests
30+
- name: Run unit tests
31+
run: yarn test:unit

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
deploy:
10+
runs-on: ${{ matrix.os }}
11+
env:
12+
TERM: xterm
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-20.04
17+
node-version:
18+
- '14'
19+
steps:
20+
# Install deps and cache
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
- name: Install node ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
registry-url: https://registry.npmjs.org
28+
cache: yarn
29+
- name: Install Yarn dependencies
30+
run: yarn install --prefer-offline --frozen-lockfile
31+
32+
# Let's do tests rq just to make sure we dont push something that is fundamentally broken
33+
- name: Lint code
34+
run: yarn lint
35+
- name: Run unit tests
36+
run: yarn test:unit
37+
38+
# Deploy
39+
- name: Deploy stable releases
40+
run: npm publish --access public
41+
env:
42+
NODE_AUTH_TOKEN: ${{secrets.NPM_DEPLOY_TOKEN}}

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Common sys files
2+
.*.swp
3+
._*
4+
.git
5+
.hg
6+
.sign
7+
.lock-wscript
8+
.svn
9+
.wafpickle-*
10+
.DS_Store
11+
.idea/
12+
*.tar
13+
*.jxp
14+
*.sublime-*
15+
16+
# Logs
17+
*.log
18+
logs
19+
20+
# NPM files
21+
node_modules
22+
23+
# lando config
24+
env.yaml
25+
env.yml
26+
lando.env
27+
28+
# Build dirs
29+
build
30+
dist
31+
32+
# coverage reporting
33+
.nyc_output
34+
coverage/
35+
36+
# Vuepress
37+
.temp
38+
.cache
39+
_site

.lando.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: lando-mysql-plugin
2+
services:
3+
node:
4+
type: node:14
5+
build:
6+
- yarn install
7+
scanner: false
8+
ssl: false
9+
sslExpose: false
10+
tooling:
11+
node:
12+
service: node
13+
yarn:
14+
service: node

.node-version

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

.npmignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github
2+
docs
3+
examples
4+
guides
5+
test

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 14.17.6

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## IN DEVELOPMENT
2+
3+
## v0.0.0 - [November 9, 2021](https://github.com/lando/plugin-template/releases/tag/v0.0.0)
4+
5+
Lando is **free** and **open source** software that relies on contributions from developers like you! If you like Lando then help us spend more time making, updating and supporting it by [contributing](https://github.com/sponsors/lando).
6+
7+
* Bullet Points

0 commit comments

Comments
 (0)