Skip to content

Commit

Permalink
Dinner is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Secreto31126 committed Sep 18, 2023
1 parent e0e5ce1 commit fe7f9ca
Show file tree
Hide file tree
Showing 25 changed files with 900 additions and 794 deletions.
9 changes: 2 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"node": true,
"mocha": true
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc"
],
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"extends": [
"eslint:recommended",
"prettier",
Expand All @@ -19,9 +16,7 @@
"sourceType": "module"
},
"rules": {
"no-unused-vars": [
"off"
],
"no-unused-vars": ["off"],
"tsdoc/syntax": "warn"
},
"globals": {
Expand Down
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Simple and straight to the point failing snippet
2. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Runtime [e.g. node@19, [email protected]]
- Library Version [e.g. 1.0.0]

- OS: [e.g. Windows]
- Runtime [e.g. node@19, [email protected]]
- Library Version [e.g. 1.0.0]

**Additional context**
Add any other context about the problem here.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
16 changes: 9 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time.
- [ ] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.

### Tests
- [ ] Run the tests with `npm run test` and lint the project with `npm run lint` and `npm run prettier`
### Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

- [ ] It's really useful if your PR references an issue where it is discussed ahead of time.
- [ ] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.

### Tests

- [ ] Run the tests with `npm run test` and lint the project with `npm run lint` and `npm run prettier`
46 changes: 22 additions & 24 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{
"baseBranches": ["main"],
"dependencyDashboard": true,
"extends": [
"config:base",
"group:allNonMajor",
"helpers:disableTypesNodeMajor",
"schedule:earlyMondays"
],
"commitMessageAction": "",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "{{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}",
"labels": ["dependencies"],
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}",
"prHeader": "",
"prFooter": "",
"semanticCommits": "enabled",
"packageRules": [
{
"packageNames": [
"esbuild"
],
"versioning": "regex:^(<major>\\d+)\\.(<major>\\d+)\\.(<patch>\\d+)$"
}
]
"baseBranches": ["main"],
"dependencyDashboard": true,
"extends": [
"config:base",
"group:allNonMajor",
"helpers:disableTypesNodeMajor",
"schedule:earlyMondays"
],
"commitMessageAction": "",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "{{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}",
"labels": ["dependencies"],
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}",
"prHeader": "",
"prFooter": "",
"semanticCommits": "enabled",
"packageRules": [
{
"packageNames": ["esbuild"],
"versioning": "regex:^(<major>\\d+)\\.(<major>\\d+)\\.(<patch>\\d+)$"
}
]
}
104 changes: 52 additions & 52 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: Deploy alpha release to GitHub

on:
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main

jobs:
build:
name: Build from source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Build
run: |
npm ci
npm run build
- name: Store builds
uses: actions/upload-artifact@v3
with:
name: build
path: |
package.json
README.md
LICENSE
lib
alpha-branch:
name: Deploy alpha
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
with:
ref: alpha

- name: Clear old build
run: find . -not -wholename './.git*' -delete

- uses: actions/download-artifact@v3
with:
name: build

- name: Push to alpha
uses: EndBug/add-and-commit@v9
with:
default_author: github_actor
message: New alpha release
build:
name: Build from source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Build
run: |
npm ci
npm run build
- name: Store builds
uses: actions/upload-artifact@v3
with:
name: build
path: |
package.json
README.md
LICENSE
lib
alpha-branch:
name: Deploy alpha
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
with:
ref: alpha

- name: Clear old build
run: find . -not -wholename './.git*' -delete

- uses: actions/download-artifact@v3
with:
name: build

- name: Push to alpha
uses: EndBug/add-and-commit@v9
with:
default_author: github_actor
message: New alpha release
95 changes: 47 additions & 48 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,61 +12,60 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '45 22 * * 6'
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "45 22 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
strategy:
fail-fast: false
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Loading

0 comments on commit fe7f9ca

Please sign in to comment.