-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ContextProto, Inject } from '@eggjs/tegg'; | ||
import { Runner, MainRunner } from '@eggjs/tegg/standalone'; | ||
import { Hello } from 'dependency-2/foo'; | ||
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-ubuntu (14)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-macos (14)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-ubuntu (16)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-windows (14)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-macos (16)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-ubuntu (18)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-windows (16)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-macos (18)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-ubuntu (20)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-windows (18)
Check failure on line 3 in standalone/standalone/test/fixtures/dependency/foo.ts GitHub Actions / Runner-macos (20)
|
||
import { ConfigSourceQualifier } from '../../../src/ConfigSource'; | ||
|
||
@ContextProto() | ||
@Runner() | ||
export class Foo implements MainRunner<string> { | ||
@Inject() | ||
hello: Hello; | ||
|
||
@Inject() | ||
@ConfigSourceQualifier('dependency2') | ||
moduleConfig: any; | ||
|
||
async main(): Promise<string> { | ||
return this.hello.hello() + JSON.stringify(this.moduleConfig); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "entry", | ||
"eggModule": { | ||
"name": "entry" | ||
} | ||
} |