@incajs/cli 0.0.15 → 0.0.17
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/README.md +5 -5
- package/dist/adapterCore.d.mts +1 -0
- package/dist/build.d.mts +4 -5
- package/dist/cli.js +1030 -608
- package/dist/config/defaults.d.mts +3 -3
- package/dist/config/index.d.mts +2 -2
- package/dist/config/loader.d.mts +1 -1
- package/dist/config/types.d.mts +4 -4
- package/dist/defaultBundler.d.mts +4 -5
- package/dist/dev-client/hostBin.d.mts +1 -1
- package/dist/dev-client/hostClient.d.mts +11 -13
- package/dist/dev-client/protocol.d.mts +1 -1
- package/dist/dev.d.mts +3 -3
- package/dist/log.d.mts +5 -3
- package/dist/package.d.mts +6 -6
- package/dist/plist.d.mts +1 -1
- package/dist/{adapter/types.d.mts → types.d.mts} +19 -14
- package/dist/{adapter/vite → vite}/build.d.mts +2 -4
- package/dist/{adapter/vite → vite}/captureOutput.d.mts +3 -5
- package/dist/{adapter/vite → vite}/config.d.mts +7 -8
- package/dist/{adapter/vite → vite}/createBundler.d.mts +1 -2
- package/dist/{adapter/vite → vite}/emitConfig.d.mts +1 -1
- package/dist/{adapter/vite → vite}/hmr.d.mts +2 -3
- package/dist/{adapter/vite → vite}/logger.d.mts +1 -1
- package/dist/{adapter/vite → vite}/unsupported.d.mts +2 -2
- package/dist/{adapter/vite → vite}/watch.d.mts +2 -3
- package/dist/{hmr-runtime.js → vite-runtime.js} +17 -16
- package/package.json +8 -6
- /package/dist/{adapter/vite → vite}/index.d.mts +0 -0
package/README.md
CHANGED
|
@@ -22,14 +22,14 @@ bootstrapping; it wins outright when both exist.
|
|
|
22
22
|
|
|
23
23
|
## Commands
|
|
24
24
|
|
|
25
|
-
- **`inca dev
|
|
25
|
+
- **`inca dev`**: watches your app and opens a live-reloading window,
|
|
26
26
|
reloading on every change. `--experimental-hmr` (or
|
|
27
27
|
`INCA_EXPERIMENTAL_HMR=1`) opts into experimental, module-granular
|
|
28
|
-
hot reloading instead
|
|
28
|
+
hot reloading instead. See the
|
|
29
29
|
[HMR guide](https://incajs.tom96da.com/guide/hmr).
|
|
30
|
-
- **`inca build
|
|
30
|
+
- **`inca build`**: bundles your app for production, once, with no
|
|
31
31
|
window opened.
|
|
32
|
-
- **`inca package
|
|
32
|
+
- **`inca package`**: builds your app, then packages it with a
|
|
33
33
|
prebuilt `inca-host` into a distributable application: a `.app` on
|
|
34
34
|
macOS, a plain directory on Linux (other platforms aren't supported
|
|
35
35
|
yet).
|
|
@@ -61,7 +61,7 @@ once it is packaged.
|
|
|
61
61
|
## Requirements
|
|
62
62
|
|
|
63
63
|
A prebuilt binary is pulled in automatically as a platform-specific
|
|
64
|
-
optional dependency
|
|
64
|
+
optional dependency. Neither Cargo nor Rust are needed. See
|
|
65
65
|
[Host binary](https://incajs.tom96da.com/guide/#host-binary) for
|
|
66
66
|
per-platform support.
|
|
67
67
|
|
package/dist/adapterCore.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { IncaError } from './error.mts';
|
|
2
2
|
export { bundlerFault } from './log.mts';
|
|
3
|
+
export type * from './types.mts';
|
|
3
4
|
/**
|
|
4
5
|
* The CLI logic the CLI injects into a bundler adapter: the `IncaError`
|
|
5
6
|
* class and `bundlerFault`, which reduces a bundler's error to a printable
|
package/dist/build.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bundler, BuildOutput } from './adapter/types.mts';
|
|
2
1
|
import { ResolvedBuildConfig, RuntimeConfig } from './config/loader.mts';
|
|
2
|
+
import { Bundler, BuildOutput } from './types.mts';
|
|
3
3
|
export interface BuildAppOptions {
|
|
4
4
|
/** The app's root directory. Defaults to `process.cwd()`. */
|
|
5
5
|
cwd?: string;
|
|
@@ -8,9 +8,9 @@ export interface BuildAppOptions {
|
|
|
8
8
|
* committed `src/main.mts`, `src/main.ts` or `src/main.js`, or `src/App.vue` wrapped in a synthesized one.
|
|
9
9
|
*/
|
|
10
10
|
entry?: string;
|
|
11
|
-
/** Overrides the bundler
|
|
11
|
+
/** Overrides the bundler. See {@link defaultBundler} for what's wired in by default. */
|
|
12
12
|
bundler?: Bundler;
|
|
13
|
-
/** An already-resolved config
|
|
13
|
+
/** An already-resolved config. It lets `packageApp` avoid loading it twice. */
|
|
14
14
|
config?: ResolvedBuildConfig;
|
|
15
15
|
/** Writes `bundle.js.map` beside the bundle. Overrides the config's `sourcemap` when set. */
|
|
16
16
|
sourcemap?: boolean;
|
|
@@ -23,7 +23,6 @@ export interface BuildAppOptions {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Builds the app once through the same bundler `dev` uses, and returns what
|
|
26
|
-
* it wrote. Rejects on failure
|
|
27
|
-
* is `cli.mts`'s job.
|
|
26
|
+
* it wrote. Rejects on failure.
|
|
28
27
|
*/
|
|
29
28
|
export declare function build(options?: BuildAppOptions): Promise<BuildOutput>;
|