Skip to content

Commit

Permalink
feat: add Middleware builder implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
franck-romano committed Aug 19, 2022
1 parent b3f21f5 commit 2142234
Show file tree
Hide file tree
Showing 19 changed files with 13,740 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./node_modules/gts/",
"rules": {
"node/no-unpublished-import": 0
}
}
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Configuration for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Main

on:
push:
branches:
- main

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.0.x, 14.x, 15.x, 16.0.x, 16.x, 17.x]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: npm install --ignore-scripts

- name: Lint
run: npm run lint

- name: Tests
run: npm test
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish NPM package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm i && npm run compile
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "[GENERIC] Tests"
on:
push:
branches-ignore:
- main
pull_request_target:
branches:
- main

permissions: read-all

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.0.x, 14.x, 15.x, 16.0.x, 16.x, 17.x]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: npm install --ignore-scripts

- name: Lint
run: npm run lint

- name: Tests
run: npm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

.build
.idea
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down Expand Up @@ -102,3 +104,4 @@ dist

# TernJS port file
.tern-port
/build/
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('gts/.prettierrc.json')
}
Loading

0 comments on commit 2142234

Please sign in to comment.