Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fGeorjje committed Oct 9, 2023
0 parents commit 947e4ba
Show file tree
Hide file tree
Showing 18 changed files with 7,635 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"indent": ["error", "tab"],
"quotes": ["error", "single"]
}
}
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
32 changes: 32 additions & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 16.x, 18.x, 19.x ]

steps:
- name: Check out code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests and check coverage
run: npm run cover:check
- name: Report the results to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copied from:
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
# Changed from only semver-patch to anything other than semver-major. -- cwells
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Package to npmjs.com

on:
push:
tags: [ "v[0-9]+.[0-9]+.[0-9]+" ]

jobs:

publish-package:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Publish to npmjs.com
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generated directories:
.nyc_output/
coverage/
dist/
node_modules/

# Project files:
*.sublime-*
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": ["source-map-support/register", "ts-node/register"],
"extension": "ts",
"spec": "test/**/*.ts"
}
23 changes: 23 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"all": true,
"branches": 95,
"extension": [
".js",
".ts",
".tsx"
],
"functions": 100,
"include": [
"dist/**/*.js",
"src/**/*.ts"
],
"lines": 95,
"reporter": [
"html",
"text-summary"
],
"require": [
"ts-node/register"
],
"statements": 95
}
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
## [1.0.7](https://github.com/chriswells0/node-typescript-template/compare/v1.0.6...v1.0.7) (2023-07-08)



## [1.0.6](https://github.com/chriswells0/node-typescript-template/compare/v1.0.5...v1.0.6) (2023-07-08)


### Bug Fixes

* make "clean" script command work cross-platform ([43243c4](https://github.com/chriswells0/node-typescript-template/commit/43243c4707342f332bf5819b31e7f812978fd7c5)), closes [#356](https://github.com/chriswells0/node-typescript-template/issues/356)



## [1.0.5](https://github.com/chriswells0/node-typescript-template/compare/v1.0.4...v1.0.5) (2023-03-02)



## [1.0.4](https://github.com/chriswells0/node-typescript-template/compare/v1.0.3...v1.0.4) (2020-02-23)


### Bug Fixes

* Make NPM run scripts compatible with Windows. ([bbe65f8](https://github.com/chriswells0/node-typescript-template/commit/bbe65f8780568eb20dbadc9ac59b08c2b9772d88)), closes [#5](https://github.com/chriswells0/node-typescript-template/issues/5)



## [1.0.3](https://github.com/chriswells0/node-typescript-template/compare/v1.0.2...v1.0.3) (2019-04-20)


### Bug Fixes

* Upgrade all dependencies to their latest versions. ([b6f2076](https://github.com/chriswells0/node-typescript-template/commit/b6f2076)), closes [#4](https://github.com/chriswells0/node-typescript-template/issues/4)



## [1.0.2](https://github.com/chriswells0/node-typescript-template/compare/v1.0.1...v1.0.2) (2019-02-23)


### Bug Fixes

* Upgrade all dependencies to their latest versions. ([0212764](https://github.com/chriswells0/node-typescript-template/commit/0212764)), closes [#2](https://github.com/chriswells0/node-typescript-template/issues/2)



## [1.0.1](https://github.com/chriswells0/node-typescript-template/compare/v1.0.0...v1.0.1) (2019-02-05)


### Bug Fixes

* Update dependencies and upgrade ts-node to v8. ([fee70dd](https://github.com/chriswells0/node-typescript-template/commit/fee70dd)), closes [#1](https://github.com/chriswells0/node-typescript-template/issues/1)



# 1.0.0 (2018-11-10)


### Features

* Add initial project template files. ([2c22c37](https://github.com/chriswells0/node-typescript-template/commit/2c22c37))



29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2018, Paul Schwandes
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# noga-submissions-role-bot
7 changes: 7 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"spreadsheet": "https://docs.google.com/spreadsheets/d/e/2PACX-1vTfbchi-Vx1Q6x7TAi_gT17tUrgeBvtPE5BE9TTSPz9afqPnJaQdFaF2dNWAIPX9F3y0qrGe_myT9yK/pub?gid=631642557&single=true&output=csv",
"column": 0,
"rowOffset": 1,
"guildId": "399856491642880001",
"roleId": "1161005936144556054"
}
Loading

0 comments on commit 947e4ba

Please sign in to comment.