@decohere/flux 0.0.1-dev.68 → 0.0.1-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonjs/src/ember.command.js +27 -0
- package/commonjs/src/ember.module.js +37 -0
- package/commonjs/src/hot-module-hooks.js +47 -0
- package/commonjs/src/hot-reload-server.js +121 -316
- package/commonjs/src/index.js +35 -9
- package/commonjs/src/serve.action.js +11 -23
- package/commonjs/src/serve.command.js +4 -8
- package/commonjs/src/serve.js +36 -0
- package/commonjs/src/workspace-serve.action.js +59 -0
- package/es6/src/ember.command.js +17 -0
- package/es6/src/ember.module.js +19 -0
- package/es6/src/hot-module-hooks.js +26 -0
- package/es6/src/hot-reload-server.js +119 -303
- package/es6/src/index.js +7 -3
- package/es6/src/serve.action.js +11 -25
- package/es6/src/serve.command.js +5 -9
- package/es6/src/serve.js +32 -0
- package/es6/src/workspace-serve.action.js +45 -0
- package/package.json +12 -7
- package/types/src/{flux.command.d.ts → ember.command.d.ts} +1 -1
- package/types/src/ember.module.d.ts +22 -0
- package/types/src/hot-module-hooks.d.ts +5 -0
- package/types/src/hot-reload-server.d.ts +22 -61
- package/types/src/index.d.ts +8 -3
- package/types/src/serve.action.d.ts +2 -8
- package/types/src/serve.command.d.ts +2 -2
- package/types/src/serve.d.ts +1 -0
- package/types/src/workspace-serve.action.d.ts +11 -0
- package/commonjs/src/flux.command.js +0 -27
- package/commonjs/src/flux.module.js +0 -32
- package/commonjs/src/rewrite-serve-specifier.js +0 -46
- package/es6/src/flux.command.js +0 -17
- package/es6/src/flux.module.js +0 -22
- package/es6/src/rewrite-serve-specifier.js +0 -40
- package/types/src/flux.module.d.ts +0 -14
- package/types/src/rewrite-serve-specifier.d.ts +0 -13
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceFactoryOptions } from "@decohere/nexus/cli";
|
|
2
|
-
import { ModuleManifest } from "@decohere/nexus/cli";
|
|
3
|
-
import type { ContainerBuilder } from "@decohere/nexus/composition";
|
|
4
|
-
import { FluxCommand } from "./flux.command.js";
|
|
5
|
-
import { ServeAction } from "./serve.action.js";
|
|
6
|
-
export declare class FluxModule extends ModuleManifest {
|
|
7
|
-
readonly id = "flux";
|
|
8
|
-
readonly command: typeof FluxCommand;
|
|
9
|
-
readonly actions: {
|
|
10
|
-
serve: typeof ServeAction;
|
|
11
|
-
};
|
|
12
|
-
registerServices(builder: ContainerBuilder): void;
|
|
13
|
-
createWorkspace(options: WorkspaceFactoryOptions): Promise<import("@decohere/mesh").Workspace>;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type RewriteServeSpecifierOptions = {
|
|
2
|
-
specifier: string;
|
|
3
|
-
parentUrl: string;
|
|
4
|
-
isWatchedTs: (absolutePath: string) => boolean;
|
|
5
|
-
resolveBare: (specifier: string) => string | null;
|
|
6
|
-
versionFileUrl: (fileUrl: string) => string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Map a resolve-hook specifier to a versioned watched `.ts` file URL.
|
|
10
|
-
* Covers relative `.js` / `.ts` / extensionless imports and bare workspace
|
|
11
|
-
* package names (dynamic `import()` never goes through SWC path rewrite).
|
|
12
|
-
*/
|
|
13
|
-
export declare function rewriteServeSpecifier(options: RewriteServeSpecifierOptions): string | null;
|