-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(framework): Unified resource loading and exclude non js/ts fil…
…es (#11707) * chore(framework): Unified resource loading and exclude non js/ts files * chore(framework): Unified resource loading and exclude non js/ts files * chore(framework): Unified resource loading and exclude non js/ts files * chore(framework): Unified resource loading and exclude non js/ts files * chore(framework): Unified resource loading and exclude non js/ts files * Create six-parrots-shave.md
- Loading branch information
Showing
10 changed files
with
225 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@medusajs/framework": patch | ||
--- | ||
|
||
chore(framework): Unified resource loading and exclude non js/ts files |
11 changes: 11 additions & 0 deletions
11
...e/framework/src/jobs/__fixtures__/plugin/jobs-with-other-files/order-summary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { MedusaContainer } from "@medusajs/types" | ||
|
||
export default async function handler(container: MedusaContainer) { | ||
console.log(`You have received 5 orders today`) | ||
} | ||
|
||
export const config = { | ||
name: "summarize-orders", | ||
schedule: "* * * * * *", | ||
numberOfExecutions: 2, | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/core/framework/src/jobs/__fixtures__/plugin/jobs-with-other-files/order-summary.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { MedusaContainer } from "@medusajs/types" | ||
|
||
export default async function handler(container: MedusaContainer) { | ||
console.log(`You have received 5 orders today`) | ||
} | ||
|
||
export const config = { | ||
name: "summarize-orders", | ||
schedule: "* * * * * *", | ||
numberOfExecutions: 2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...es/core/framework/src/subscribers/__fixtures__/subscribers/order-notifier-md.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { SubscriberArgs, SubscriberConfig } from "../../types" | ||
|
||
export default async function orderNotifier(\_: SubscriberArgs) { | ||
return await Promise.resolve() | ||
} | ||
|
||
export const config: SubscriberConfig = { | ||
event: ["order.placed", "order.canceled", "order.completed"], | ||
context: { subscriberId: "order-notifier-md" }, | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/core/framework/src/subscribers/__fixtures__/subscribers/order-notifier-txt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { SubscriberArgs, SubscriberConfig } from "../../types" | ||
|
||
export default async function orderNotifier(_: SubscriberArgs) { | ||
return await Promise.resolve() | ||
} | ||
|
||
export const config: SubscriberConfig = { | ||
event: ["order.placed", "order.canceled", "order.completed"], | ||
context: { subscriberId: "order-notifier-txt" }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.