juisy 2.0.0-beta.9 → 2.0.1
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/LICENSE +661 -0
- package/bin/cli/cmds/index.js +1 -3
- package/bin/cli/cmds/public/print-globals.js +1 -1
- package/bin/cli/index.js +1 -1
- package/dist/cli/CLIFactory.d.ts +2 -0
- package/dist/cli/Command.d.ts +46 -6
- package/dist/cli/GlobalSettings.schema.json +1 -1
- package/dist/cli/InterfaceUtils.d.ts +17 -13
- package/dist/cli/OutputUtils.d.ts +1 -12
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +504 -456
- package/dist/cli/plugins/register-bump-version-command/cmds/index.d.ts +14 -2
- package/dist/cli/plugins/register-lint-commands/augment.d.ts +2 -3
- package/dist/cli/plugins/register-lint-commands/settings.d.ts +1 -1
- package/dist/cli/plugins/register-release-command/augment.d.ts +2 -2
- package/dist/cli/types.d.ts +6 -2
- package/dist/cli/utils.d.ts +1 -10
- package/dist/eject.d.ts +2 -0
- package/dist/index.js +8 -3
- package/dist/project-globals.d.ts +7 -26
- package/dist/templater/index.js +2 -2
- package/dist/vite/plugins/inject-css-variables/index.d.ts +23 -0
- package/dist/vite/plugins/inject-css-variables/index.js +60 -0
- package/dist/vite/plugins/inject-project-globals/index.d.ts +19 -0
- package/dist/vite/plugins/inject-project-globals/index.js +58 -0
- package/package.json +198 -190
- package/bin/cli/cmds/public/squeeze.js +0 -269
- package/dist/cli/plugins/command-handler-injections/augment.d.ts +0 -29
- package/dist/cli/plugins/command-handler-injections/command-visitors/command-handler-injections.d.ts +0 -10
- package/dist/cli/plugins/command-handler-injections/index.d.ts +0 -3
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CommandModule as YargsCommandModule, CommandBuilder, MiddlewareFunction } from 'yargs';
|
|
2
|
-
declare module '../../types' {
|
|
3
|
-
/** Shims for private yargs types */
|
|
4
|
-
interface Positional {
|
|
5
|
-
cmd: NotEmptyArray<string>;
|
|
6
|
-
variadic: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* An array whose first element is not undefined.
|
|
10
|
-
*/
|
|
11
|
-
type NotEmptyArray<T = any> = [T, ...T[]];
|
|
12
|
-
interface CommandHandlerThisArg {
|
|
13
|
-
builder: CommandBuilder;
|
|
14
|
-
demanded: Positional[];
|
|
15
|
-
deprecated?: boolean;
|
|
16
|
-
description?: string | false;
|
|
17
|
-
handler: CommandObject['handler'];
|
|
18
|
-
middlewares: MiddlewareFunction[];
|
|
19
|
-
optional: Positional[];
|
|
20
|
-
original: string;
|
|
21
|
-
engine: CLIEngine;
|
|
22
|
-
log: (msg?: string, options?: any) => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Type declaration to extend "this" type inside command handler method
|
|
26
|
-
* @group Types
|
|
27
|
-
*/
|
|
28
|
-
type CommandHandler = (this: CommandHandlerThisArg, argv: Parameters<YargsCommandModule['handler']>[0]) => ReturnType<YargsCommandModule['handler']>;
|
|
29
|
-
}
|
package/dist/cli/plugins/command-handler-injections/command-visitors/command-handler-injections.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommandVisitor } from '../../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Global command visitor to auto-set command meta
|
|
4
|
-
* @ignore
|
|
5
|
-
* @param commandObject - The command object
|
|
6
|
-
* @param cli - The CLIEngine instance
|
|
7
|
-
* @returns The commandObject with wrapped handler to inject properties.
|
|
8
|
-
*/
|
|
9
|
-
export declare const visitor: CommandVisitor;
|
|
10
|
-
export declare const options: {};
|