Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ouellet committed Jan 5, 2022
1 parent 75023de commit 9098f4a
Show file tree
Hide file tree
Showing 46 changed files with 1,498 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.js]
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.temp
.cache
dist
_site
31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"node": true,
"mocha": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8,
"requireConfigFile": false
},
"extends": "google",
"rules": {
"arrow-parens": ["error",
"as-needed"
],
"max-len": ["error", {
"code": 120,
"ignoreComments": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}]
}
}
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Declare files that will always have LF line endings on checkout.
*.js text eol=lf
*.sh text eol=lf
*.conf text eol=lf
*.cnf text eol=lf
*.ini text eol=lf
*.php text eol=lf
*.vcl text eol=lf
6 changes: 6 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are supported funding model platforms

github: [lando, pirog]
patreon: devwithlando
open_collective: devwithlando
custom: https://lando.dev/join
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Bug
about: Create a bug report to help us improve this plugin
labels: bug
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Docs
about: Suggest a documentation change or improvement
labels: docs
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Feature
about: Suggest an idea for this project
labels: feature
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Misc
about: Create basically every other kind of issue
labels: task
---
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Security
about: Create a security issue
labels: security
---

**DO NOT SUBMIT A SECURITY ISSUE HERE!**

If you have discovered a security issue with Lando, please contact the Lando Security Team directly at [[email protected]](mailto:[email protected]).

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.

**DO NOT SUBMIT A SECURITY ISSUE HERE!**
31 changes: 31 additions & 0 deletions .github/workflows/pr-docs-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Docs Tests

on:
pull_request:

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
node-version:
- '14'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile

# Run tests
- name: Run linter
run: yarn docs:lint
- name: Test build
run: yarn docs:build
29 changes: 29 additions & 0 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint Code

on:
pull_request:

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
node-version:
- '14'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile

# Run the linter
- name: Run code linter
run: yarn lint
31 changes: 31 additions & 0 deletions .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Unit Tests

on:
pull_request:

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2019
- ubuntu-20.04
- macos-10.15
node-version:
- '14'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile

# Run unit tests
- name: Run unit tests
run: yarn test:unit
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish to NPM

on:
push:
tags:
- v*

jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-20.04
node-version:
- '14'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile

# Let's do tests rq just to make sure we dont push something that is fundamentally broken
- name: Lint code
run: yarn lint
- name: Run unit tests
run: yarn test:unit

# Deploy
- name: Deploy stable releases
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_DEPLOY_TOKEN}}
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Common sys files
.*.swp
._*
.git
.hg
.sign
.lock-wscript
.svn
.wafpickle-*
.DS_Store
.idea/
*.tar
*.jxp
*.sublime-*

# Logs
*.log
logs

# NPM files
node_modules

# lando config
env.yaml
env.yml
lando.env

# Build dirs
build
dist

# coverage reporting
.nyc_output
coverage/

# Vuepress
.temp
.cache
_site
14 changes: 14 additions & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: lando-dotnet-plugin
services:
node:
type: node:14
build:
- yarn install
scanner: false
ssl: false
sslExpose: false
tooling:
node:
service: node
yarn:
service: node
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.17.6
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github
docs
examples
guides
test
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 14.17.6
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## IN DEVELOPMENT

## v0.5.0 - [January 5, 2022](https://github.com/lando/dotnet/releases/tag/v0.5.0)

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).

* Bullet Points
Loading

0 comments on commit 9098f4a

Please sign in to comment.