Skip to content

Commit

Permalink
revamp main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenedtzjs committed Oct 14, 2024
1 parent 2018b32 commit b594672
Show file tree
Hide file tree
Showing 72 changed files with 5,406 additions and 659 deletions.
File renamed without changes.
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/npm-grunt.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/publish-release-db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Release

on:
release:
types: [released]

jobs:
npm-publish:
runs-on: ubuntu-latest

permissions:
id-token: write

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

- name: Install Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install dependencies
uses: ./.github/packages/pnpm

- name: Publish package
if: github.repository_owner == 'sitcommunity'
run: |
pnpm --filter ./packages/discord-afk-js_db i
pnpm --filter ./packages/discord-afk-js_db publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/publish-release-nodb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Release

on:
release:
types: [released]

jobs:
npm-publish:
runs-on: ubuntu-latest

permissions:
id-token: write

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

- name: Install Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install dependencies
uses: ./.github/packages/pnpm

- name: Publish package
if: github.repository_owner == 'sitcommunity'
run: |
pnpm --filter ./packages/discord-afk-js_nodb i
pnpm --filter ./packages/discord-afk-js_nodb publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#nodb check
name: Test

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
uses: ./packages/actions/pnpm

- name: Run tests and collect coverage | nodb
run: |
cd packages/discord-afk-js_nodb
pnpm run test
- name: Run tests and collect coverage | db
run: |
cd packages/discord-afk-js_db
pnpm run test
# Copy and paste the codecov/test-results-action here
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: github.repository_owner == 'sitcommunity'
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Packages
node_modules
package-lock.json

# Test Logs
coverage

# Miscellaneous
.turbo

# Generated files
typings/index.d.mts
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
auto-install-peers=false
resolution-mode=highest
public-hoist-pattern[]=*prettier*
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 120,
"useTabs": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"endOfLine": "lf"
}
File renamed without changes.
3 changes: 0 additions & 3 deletions nodb-stable/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions nodb-stable/.npmignore

This file was deleted.

3 changes: 0 additions & 3 deletions nodb-stable/.vscode/extensions.json

This file was deleted.

16 changes: 0 additions & 16 deletions nodb-stable/.vscode/settings.json

This file was deleted.

88 changes: 0 additions & 88 deletions nodb-stable/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions nodb-stable/dist/afk.ts.map

This file was deleted.

Loading

0 comments on commit b594672

Please sign in to comment.