Skip to content

Commit ced7d65

Browse files
authored
Merge pull request #342 from peers/master
chore: release
2 parents ff49ad2 + 3649adf commit ced7d65

Some content is hidden

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

74 files changed

+26463
-24260
lines changed

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
"forwardPorts": [9000],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "npm clean-install"
16+
17+
// Configure tool-specific properties.
18+
// "customizations": {},
19+
20+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21+
// "remoteUser": "root"
22+
}

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.nyc_output
3+
.parcel-cache
4+
coverage
5+
dist
6+
node_modules

.eslintrc.json

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
11
{
2-
"parser": "@typescript-eslint/parser",
3-
"extends": [
4-
"eslint:recommended",
5-
"plugin:@typescript-eslint/eslint-recommended",
6-
"plugin:@typescript-eslint/recommended"
7-
],
8-
"env": {
9-
"node": true,
10-
"es6": true,
11-
"mocha": true
12-
},
13-
"parserOptions": {
14-
"ecmaVersion": 2018,
15-
"sourceType": "module"
16-
},
17-
"rules": {
18-
"no-var": "error",
19-
"no-console": "off",
20-
"@typescript-eslint/camelcase": "off",
21-
"@typescript-eslint/interface-name-prefix": "off",
22-
"@typescript-eslint/member-delimiter-style": [
23-
"error",
24-
{
25-
"multiline": {
26-
"delimiter": "semi",
27-
"requireLast": true
28-
},
29-
"singleline": {
30-
"delimiter": "semi",
31-
"requireLast": true
32-
}
33-
}
34-
],
35-
"@typescript-eslint/explicit-function-return-type": "off"
36-
}
37-
}
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"plugin:@typescript-eslint/recommended"
7+
],
8+
"env": {
9+
"node": true,
10+
"es6": true
11+
},
12+
"parserOptions": {
13+
"ecmaVersion": 2018,
14+
"sourceType": "module"
15+
}
16+
}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: false
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
---
22
name: peer template
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
### I'm having an issue:
11-
- Give an expressive description of what is went wrong
12-
- Version of `peer` you're experiencing this issue
13-
- Nodejs version?
14-
- Platform name and its version (Win, Mac, Linux)?
15-
- Nice to have: a repository with code to reproduce the issue
16-
- If you're getting an error or exception, please provide its full stack-trace as plain-text or screenshot
10+
11+
- Give an expressive description of what is went wrong
12+
- Version of `peer` you're experiencing this issue
13+
- Nodejs version?
14+
- Platform name and its version (Win, Mac, Linux)?
15+
- Nice to have: a repository with code to reproduce the issue
16+
- If you're getting an error or exception, please provide its full stack-trace as plain-text or screenshot
1717

1818
### I have a suggestion:
19-
- Describe your feature / request
20-
- How you're going to use it? Give a usage example(s)
19+
20+
- Describe your feature / request
21+
- How you're going to use it? Give a usage example(s)
2122

2223
### Documentation is missing something or incorrect (have typos, etc.):
23-
- Give an expressive description what you have changed/added and why
24-
- Make sure you're using correct markdown markup
25-
- Make sure all code blocks starts with triple ``` (*backtick*) and have a syntax tag, for more read [this docs](https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting)
26-
- Post addition/changes in issue, we will manage it
24+
25+
- Give an expressive description what you have changed/added and why
26+
- Make sure you're using correct markdown markup
27+
- Make sure all code blocks starts with triple ``` (_backtick_) and have a syntax tag, for more read [this docs](https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting)
28+
- Post addition/changes in issue, we will manage it
2729

2830
## Thank you, and do not forget to get rid of this default message

.github/workflows/docker.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker build & publish
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v2
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v2
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
- name: Build
21+
if: ${{ github.event_name == 'pull_request' }}
22+
uses: docker/build-push-action@v4
23+
- name: Build & publish
24+
if: ${{ github.event_name == 'push' }}
25+
uses: docker/build-push-action@v4
26+
with:
27+
push: true
28+
tags: peerjs/peerjs-server-test:nightly

.github/workflows/fly.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Fly Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
10+
11+
jobs:
12+
deploy:
13+
name: Deploy app
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: superfly/flyctl-actions/setup-flyctl@master
18+
- run: flyctl deploy --remote-only

.github/workflows/node.js.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x, 16.x, 18.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
- run: npm ci
29+
- run: npm run build
30+
- run: npm run lint
31+
- run: npm run coverage
32+
- name: Publish code coverage to CodeClimate
33+
uses: paambaati/[email protected]
34+
env:
35+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}

.github/workflows/prettier.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# From https://til.simonwillison.net/github-actions/prettier-github-actions
2+
name: Check JavaScript for conformance with Prettier
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
prettier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repo
13+
uses: actions/checkout@v3
14+
- uses: actions/cache@v3
15+
name: Configure npm caching
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
19+
restore-keys: |
20+
${{ runner.os }}-npm-
21+
- name: Run prettier
22+
run: |-
23+
npx prettier --check .

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616
- name: Setup Node.js
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: "lts/*"
2020
- name: Install dependencies
2121
run: npm ci
22+
- name: Build
23+
run: npm run build
2224
- name: Import GPG key
2325
id: import_gpg
24-
uses: crazy-max/ghaction-import-gpg@v4
26+
uses: crazy-max/ghaction-import-gpg@v5
2527
with:
2628
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
2729
passphrase: ${{ secrets.GPG_PASSPHRASE }}
@@ -33,4 +35,6 @@ jobs:
3335
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3436
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
3537
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
38+
DOCKER_REGISTRY_USER: ${{ secrets.DOCKERHUB_USERNAME }}
39+
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
3640
run: npx semantic-release

0 commit comments

Comments
 (0)