mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
Compare commits
1 Commits
34dd72a5af
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4eb3d2bb34 |
@@ -0,0 +1,32 @@
|
|||||||
|
name: Lint and Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-and-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "24"
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Type check
|
||||||
|
run: npm run typecheck
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
@@ -29,6 +29,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsx watch --enable-source-maps src/index.ts",
|
"dev": "tsx watch --enable-source-maps src/index.ts",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
|
"lint": "npx eslint .",
|
||||||
|
"typecheck": "npx tsc --noEmit",
|
||||||
"build": "npm run clean && node scripts/build.js && npm run copyfiles",
|
"build": "npm run clean && node scripts/build.js && npm run copyfiles",
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
"copyfiles": "copyfiles -u 1 \"./src/**/*.html\" ./dist",
|
"copyfiles": "copyfiles -u 1 \"./src/**/*.html\" ./dist",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { APIEmbed, Client } from 'discord.js';
|
import { APIEmbed, Client } from 'discord.js';
|
||||||
|
|
||||||
type EmbedSeverity =
|
type EmbedSeverity
|
||||||
| 'info'
|
= | 'info'
|
||||||
| 'warning'
|
| 'warning'
|
||||||
| 'error'
|
| 'error'
|
||||||
| 'success'
|
| 'success'
|
||||||
|
|||||||
Reference in New Issue
Block a user