Skip to content

Commit cf74c0d

Browse files
committed
feat!: drop npm
1 parent cf83fb4 commit cf74c0d

File tree

8 files changed

+73
-129
lines changed

8 files changed

+73
-129
lines changed

.github/workflows/cd.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CD
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "main"
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
jsr:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: denoland/setup-deno@v2
19+
- name: Dry run?
20+
if: github.event_name == 'pull_request'
21+
run: echo "DRY_RUN=--dry-run" >> "$GITHUB_ENV"
22+
- run: deno lint
23+
- run: deno test --no-check
24+
- run: deno publish $DRY_RUN # idempotent

.github/workflows/release.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.organizeImports": "explicit"
4+
},
5+
"editor.defaultFormatter": "denoland.vscode-deno",
6+
"editor.formatOnSave": true
7+
}

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
# `@grammyjs/debug`
22

3-
Tiny debug logging utility for all JavaScript runtimes,
4-
inspired by [`debug`](https://github.com/debug-js/debug).
3+
Tiny debug logging utility for all JavaScript runtimes, inspired by
4+
[`debug`](https://github.com/debug-js/debug).
55

66
<img src="https://raw.githubusercontent.com/feathers-studio/wiretap/master/docs/example.png" alt="example" width="400" />
77

8-
## Installation
9-
10-
```sh
11-
# node
12-
npm install @grammyjs/debug
13-
14-
# bun
15-
bun add @grammyjs/debug
16-
17-
# deno
18-
deno add jsr:@grammyjs/debug
19-
```
20-
218
## Quick Start
229

2310
```ts
@@ -45,7 +32,19 @@ All debug logs are disabled by default, and can be enabled by setting the `DEBUG
4532
app:main Creating new user { email: '[email protected]' }
4633
```
4734
48-
To enable all logs at any level, use `*`. Naturally `DEBUG=*` will enable all logs at all levels.
35+
```html
36+
<script>
37+
const env = {
38+
DEBUG: "app:main",
39+
};
40+
</script>
41+
<script>
42+
// Your code
43+
</script>
44+
```
45+
46+
To enable all logs at any level, use `*`. Naturally `DEBUG=*` will enable all
47+
logs at all levels.
4948
5049
```sh
5150
> DEBUG=app:* node index.js

deno.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"name": "@grammyjs/debug",
3-
"exports": "./src/mod.ts",
4-
"publish": {
5-
"exclude": [
6-
".*",
7-
"docs/",
8-
"**/*.js*"
9-
]
10-
},
2+
"name": "@grammyjs/debug",
3+
"version": "0.2.1",
4+
"exports": "./src/mod.ts",
5+
"publish": {
6+
"exclude": [
7+
".*",
8+
"docs/",
9+
"**/*.js*"
10+
]
11+
},
1112

12-
"exclude": ["lib/"],
13-
"lock": false,
14-
"fmt": {
15-
"useTabs": true,
16-
"proseWrap": "preserve"
17-
}
13+
"lock": false,
14+
"tasks": {
15+
"version": "deno run --allow-read=. --allow-write=. --allow-run=git jsr:@krlwlfrt/version@1"
16+
}
1817
}

package.json

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
11
{
2-
"name": "@grammyjs/debug",
3-
"version": "0.0.0-dev",
4-
"type": "module",
5-
"repository": {
6-
"type": "git",
7-
"url": "https://github.com/grammyjs/debug.git"
8-
},
9-
"description": "Tiny debug logging utility for all JavaScript runtimes",
10-
"license": "MIT",
11-
"author": "Muthu Kumar <[email protected]> (https://mkr.pw)",
12-
"exports": "./lib/mod.js",
13-
"types": "./lib/mod.d.ts",
14-
"files": [
15-
"lib/"
16-
],
17-
"keywords": [
18-
"grammyjs",
19-
"debug",
20-
"log"
21-
],
22-
"scripts": {
23-
"check": "tsc --noEmit",
24-
"prepare": "tsc"
25-
},
26-
"devDependencies": {
27-
"typescript": "^5.0.0"
28-
}
2+
"name": "@grammyjs/debug",
3+
"repository": {
4+
"type": "git",
5+
"url": "git+https://github.com/grammyjs/debug.git"
6+
},
7+
"description": "Tiny debug logging utility for all JavaScript runtimes",
8+
"license": "MIT",
9+
"author": "Wojciech Pawlik <[email protected]>",
10+
"keywords": [
11+
"grammyjs",
12+
"debug",
13+
"log"
14+
]
2915
}

tsconfig.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)