File tree Expand file tree Collapse file tree 10 files changed +133
-98
lines changed
Expand file tree Collapse file tree 10 files changed +133
-98
lines changed Original file line number Diff line number Diff line change 1- name : Run Linter
2-
1+ name : ' Lint'
32on :
43 push :
5- branches : ["main"]
4+ branches :
5+ - ' main'
66
77 workflow_dispatch :
88
9- permissions :
10- contents : read
11- checks : write
12-
139jobs :
1410 lint :
15- name : Lint
11+ name : ' Lint'
1612 runs-on : ubuntu-latest
17- env :
18- deno-version : lts
1913
2014 steps :
21- - name : ' Setup Repository (${{github.event.repository.name}}) '
22- uses : actions/checkout@v4
15+ - name : ' Checkout Repository'
16+ uses : actions/checkout@v5
2317
2418 - name : ' Setup Deno'
25- uses : denoland/setup-deno@v2.0.3
19+ uses : denoland/setup-deno@v2
2620 with :
27- deno-version : ${{env.deno-version}}
21+ deno-version : ' v2.x '
2822
2923 - name : ' Run Linter'
3024 run : deno task lint
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : ' Publish to JSR'
2+ on :
3+ push :
4+ branches :
5+ - ' main'
6+
7+ workflow_dispatch :
8+ inputs :
9+ dry :
10+ description : Dry run. Do not publish package.
11+ default : true
12+ type : boolean
13+
14+ permissions :
15+ contents : read
16+ id-token : write
17+
18+ jobs :
19+ publish :
20+ name : ' Publish'
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : ' Checkout repository'
24+ uses : actions/checkout@v5
25+
26+ - name : ' Setup Deno'
27+ uses : denoland/setup-deno@v2
28+ with :
29+ deno-version : ' v2.x'
30+
31+ - name : ' Publish package'
32+ run : |
33+ if [ "${{ github.event.inputs.dry }}" = "true" ]; then
34+ deno publish --dry-run
35+ else
36+ deno publish
37+ fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : ' Unit Tests'
2+ on :
3+ push :
4+ branches :
5+ - ' main'
6+
7+ workflow_dispatch :
8+
9+ permissions :
10+ checks : write
11+
12+ jobs :
13+ unit-test :
14+ name : ' Unit Test'
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : ' Checkout Repository'
19+ uses : actions/checkout@v5
20+
21+ - name : ' Setup Deno'
22+ uses : denoland/setup-deno@v2
23+ with :
24+ deno-version : ' v2.x'
25+
26+ - name : ' Run Tests'
27+ run : deno task test
28+
29+ - name : ' Generate jUnit Report'
30+ uses : mikepenz/action-junit-report@v6
31+ if : success() || failure()
32+ with :
33+ report_paths : ' reports/report.xml'
Original file line number Diff line number Diff line change 11{
2- "name" : " @denoplayground/template " ,
2+ "name" : " @typescriptplayground/custom-event-target " ,
33 "version" : " 0.1.0" ,
4+ "license" : " ./LICENSE" ,
5+ "exports" : {
6+ "." : " ./src/index.ts"
7+ },
8+ "publish" : {
9+ "include" : [
10+ " README.md" ,
11+ " LICENSE" ,
12+ " deno.json" ,
13+ " deno.lock" ,
14+ " src/**"
15+ ]
16+ },
417 "tasks" : {
5- "run" : {
6- "description" : " Run the main application." ,
7- "command" : " deno run -A --check ./src/index.ts"
8- },
9- "run:watch" : {
10- "description" : " Run the main application in watch mode." ,
11- "command" : " deno run -A --check --watch ./src/index.ts"
12- },
1318 "lint" : {
1419 "description" : " Run the linting tool." ,
1520 "command" : " deno lint"
1924 "command" : " deno test -A --check --permit-no-files --reload --doc --junit-path=\" ./reports/report.xml\" "
2025 }
2126 },
22- "compilerOptions" : {
23- "allowJs" : false ,
24- "lib" : [
25- " deno.ns" ,
26- " deno.window" ,
27- " deno.worker" ,
28- " decorators" ,
29- " esnext"
30- ]
31- },
3227 "test" : {
3328 "include" : [
3429 " ./src/**/*.test.ts"
3530 ]
3631 },
3732 "lint" : {
33+ "plugins" : [
34+ " jsr:@loat-dev/lint-plugins@0.3.12/imports" ,
35+ " jsr:@loat-dev/lint-plugins@0.3.12/arrays"
36+ ],
3837 "rules" : {
3938 "tags" : [
4039 " recommended"
4645 " explicit-function-return-type" ,
4746 " explicit-module-boundary-types" ,
4847 " guard-for-in" ,
48+ " no-const-assign" ,
4949 " no-eval" ,
50+ " no-external-import" ,
51+ " no-non-null-asserted-optional-chain" ,
52+ " no-non-null-assertion" ,
53+ " no-self-compare" ,
5054 " no-sparse-arrays" ,
51- " prefer-ascii"
55+ " no-sync-fn-in-async-fn" ,
56+ " no-throw-literal" ,
57+ " no-undef" ,
58+ " prefer-ascii" ,
59+ " single-var-declarator" ,
60+ " verbatim-module-syntax"
5261 ],
5362 "exclude" : [
5463 " no-inferrable-types"
6473 "useBraces" : " always"
6574 }
6675}
76+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /**
2+ * This module contains a class and types for a `CustomEventTarget`.
3+ *
4+ * @example
5+ * ```ts
6+ * class MyClass extends CustomEventTarget { ... }
7+ * ```
8+ * @example
9+ * ```ts
10+ * const target = new CustomEventTarget();
11+ * ```
12+ * @module
13+ */
114
15+ export * from './custom_event_target.ts'
You can’t perform that action at this time.
0 commit comments