@nlabs/lex 1.47.2 → 1.48.0
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/.gitattributes +1 -0
- package/.storybook/main.ts +86 -0
- package/.storybook/preview.ts +15 -0
- package/.vscode/settings.json +83 -0
- package/CHANGELOG.md +1 -0
- package/TYPESCRIPT_CONFIGS.md +103 -0
- package/__mocks__/LexConfig.js +17 -2
- package/__mocks__/execa.js +9 -7
- package/__mocks__/file.js +50 -0
- package/__mocks__/ora.js +10 -1
- package/config.json +33 -0
- package/dist/LexConfig.js +93 -5
- package/dist/commands/ai/ai.js +1 -1
- package/dist/commands/build/build.js +15 -11
- package/dist/commands/clean/clean.js +10 -4
- package/dist/commands/compile/compile.js +29 -34
- package/dist/commands/create/create.js +5 -5
- package/dist/commands/dev/dev.js +11 -7
- package/dist/commands/init/init.js +5 -5
- package/dist/commands/lint/lint.js +55 -64
- package/dist/commands/migrate/migrate.js +2 -2
- package/dist/commands/storybook/storybook.js +174 -0
- package/dist/commands/test/test.js +51 -13
- package/dist/commands/update/update.js +3 -2
- package/dist/commands/upgrade/upgrade.js +3 -3
- package/dist/commands/versions/versions.js +3 -3
- package/dist/create/changelog.js +1 -1
- package/dist/dist/LexConfig.d.ts +119 -0
- package/dist/dist/utils/file.d.ts +7 -0
- package/dist/dist/utils/log.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/lex.js +14 -1
- package/dist/utils/aiService.js +2 -2
- package/dist/utils/app.js +3 -3
- package/dist/utils/file.js +78 -4
- package/eslint.config.js +5 -3
- package/examples/lex.config.js +50 -0
- package/jest.config.cjs +14 -14
- package/jest.setup.js +30 -4
- package/package.json +40 -23
- package/tsconfig.build.json +38 -5
- package/tsconfig.json +28 -1
- package/tsconfig.lint.json +44 -0
- package/tsconfig.test.json +48 -0
- package/webpack.config.js +14 -13
- package/dist/LexConfig.d.ts +0 -79
- package/dist/commands/ai/ai.d.ts +0 -17
- package/dist/commands/ai/index.d.ts +0 -8
- package/dist/commands/build/build.cli.test.d.ts +0 -5
- package/dist/commands/build/build.d.ts +0 -18
- package/dist/commands/build/build.integration.test.d.ts +0 -1
- package/dist/commands/build/build.options.test.d.ts +0 -5
- package/dist/commands/clean/clean.cli.test.d.ts +0 -1
- package/dist/commands/clean/clean.d.ts +0 -7
- package/dist/commands/clean/clean.integration.test.d.ts +0 -1
- package/dist/commands/clean/clean.options.test.d.ts +0 -1
- package/dist/commands/compile/compile.cli.test.d.ts +0 -1
- package/dist/commands/compile/compile.d.ts +0 -2
- package/dist/commands/compile/compile.integration.test.d.ts +0 -1
- package/dist/commands/compile/compile.options.test.d.ts +0 -1
- package/dist/commands/config/config.cli.test.d.ts +0 -1
- package/dist/commands/config/config.d.ts +0 -7
- package/dist/commands/config/config.integration.test.d.ts +0 -1
- package/dist/commands/config/config.options.test.d.ts +0 -1
- package/dist/commands/copy/copy.cli.test.d.ts +0 -1
- package/dist/commands/copy/copy.d.ts +0 -6
- package/dist/commands/copy/copy.integration.test.d.ts +0 -1
- package/dist/commands/copy/copy.options.test.d.ts +0 -1
- package/dist/commands/create/create.cli.test.d.ts +0 -1
- package/dist/commands/create/create.d.ts +0 -8
- package/dist/commands/create/create.integration.test.d.ts +0 -1
- package/dist/commands/create/create.options.test.d.ts +0 -1
- package/dist/commands/dev/dev.cli.test.d.ts +0 -1
- package/dist/commands/dev/dev.d.ts +0 -11
- package/dist/commands/dev/dev.integration.test.d.ts +0 -1
- package/dist/commands/dev/dev.options.test.d.ts +0 -1
- package/dist/commands/init/init.cli.test.d.ts +0 -1
- package/dist/commands/init/init.d.ts +0 -9
- package/dist/commands/init/init.integration.test.d.ts +0 -1
- package/dist/commands/init/init.options.test.d.ts +0 -1
- package/dist/commands/link/link.cli.test.d.ts +0 -1
- package/dist/commands/link/link.d.ts +0 -6
- package/dist/commands/link/link.integration.test.d.ts +0 -1
- package/dist/commands/link/link.options.test.d.ts +0 -1
- package/dist/commands/lint/autofix.d.ts +0 -2
- package/dist/commands/lint/lint.cli.test.d.ts +0 -1
- package/dist/commands/lint/lint.d.ts +0 -39
- package/dist/commands/lint/lint.integration.test.d.ts +0 -1
- package/dist/commands/lint/lint.options.test.d.ts +0 -1
- package/dist/commands/migrate/migrate.cli.test.d.ts +0 -1
- package/dist/commands/migrate/migrate.d.ts +0 -7
- package/dist/commands/migrate/migrate.integration.test.d.ts +0 -1
- package/dist/commands/migrate/migrate.options.test.d.ts +0 -1
- package/dist/commands/publish/publish.cli.test.d.ts +0 -1
- package/dist/commands/publish/publish.d.ts +0 -12
- package/dist/commands/publish/publish.integration.test.d.ts +0 -1
- package/dist/commands/publish/publish.options.test.d.ts +0 -1
- package/dist/commands/test/test.cli.test.d.ts +0 -1
- package/dist/commands/test/test.d.ts +0 -50
- package/dist/commands/test/test.integration.test.d.ts +0 -1
- package/dist/commands/test/test.options.test.d.ts +0 -1
- package/dist/commands/test/test.test.d.ts +0 -1
- package/dist/commands/update/update.cli.test.d.ts +0 -1
- package/dist/commands/update/update.d.ts +0 -9
- package/dist/commands/update/update.integration.test.d.ts +0 -1
- package/dist/commands/update/update.options.test.d.ts +0 -1
- package/dist/commands/upgrade/upgrade.cli.test.d.ts +0 -1
- package/dist/commands/upgrade/upgrade.d.ts +0 -7
- package/dist/commands/upgrade/upgrade.integration.test.d.ts +0 -1
- package/dist/commands/upgrade/upgrade.options.test.d.ts +0 -1
- package/dist/commands/versions/versions.cli.test.d.ts +0 -1
- package/dist/commands/versions/versions.d.ts +0 -13
- package/dist/commands/versions/versions.integration.test.d.ts +0 -1
- package/dist/commands/versions/versions.options.test.d.ts +0 -1
- package/dist/create/changelog.d.ts +0 -6
- package/dist/index.d.ts +0 -31
- package/dist/lex.d.ts +0 -2
- package/dist/types.d.ts +0 -5
- package/dist/utils/aiService.d.ts +0 -9
- package/dist/utils/app.d.ts +0 -41
- package/dist/utils/file.d.ts +0 -3
- package/dist/utils/log.d.ts +0 -1
- package/dist/utils/reactShim.d.ts +0 -2
- /package/{jest.config.lex.d.ts → dist/jest.config.lex.d.ts} +0 -0
package/webpack.config.js
CHANGED
|
@@ -169,10 +169,8 @@ if(existsSync(`${sourceFullPath}/tsconfig.json`)) {
|
|
|
169
169
|
// Loader paths
|
|
170
170
|
const esbuildLoaderPath = relativeNodePath('esbuild-loader', dirName);
|
|
171
171
|
const cssLoaderPath = relativeNodePath('css-loader', dirName);
|
|
172
|
-
const fileLoaderPath = relativeNodePath('file-loader', dirName);
|
|
173
172
|
const graphqlLoaderPath = relativeNodePath('graphql-tag/loader', dirName);
|
|
174
173
|
const htmlLoaderPath = relativeNodePath('html-loader', dirName);
|
|
175
|
-
const jsonLoaderPath = relativeNodePath('json-loader', dirName);
|
|
176
174
|
const postcssLoaderPath = relativeNodePath('postcss-loader', dirName);
|
|
177
175
|
const sourceMapLoaderPath = relativeNodePath('source-map-loader', dirName);
|
|
178
176
|
const styleLoaderPath = relativeNodePath('style-loader', dirName);
|
|
@@ -185,6 +183,7 @@ const aliasPaths = {
|
|
|
185
183
|
'@nlabs/arkhamjs-utils-react',
|
|
186
184
|
process.cwd()
|
|
187
185
|
),
|
|
186
|
+
'@nlabs/utils': '/Users/nitrog7/.nvm/versions/node/v22.14.0/lib/node_modules/@nlabs/utils',
|
|
188
187
|
'core-js': relativeNodePath('core-js', dirName),
|
|
189
188
|
process: relativeNodePath('process', dirName),
|
|
190
189
|
react: relativeNodePath('react', process.cwd()),
|
|
@@ -223,6 +222,11 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
223
222
|
fullySpecified: false
|
|
224
223
|
}
|
|
225
224
|
},
|
|
225
|
+
{
|
|
226
|
+
test: /\.js$/,
|
|
227
|
+
include: /node_modules/,
|
|
228
|
+
type: 'javascript/auto'
|
|
229
|
+
},
|
|
226
230
|
{
|
|
227
231
|
enforce: 'pre',
|
|
228
232
|
exclude: /(node_modules)/,
|
|
@@ -316,14 +320,8 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
316
320
|
{
|
|
317
321
|
exclude: /(node_modules)/,
|
|
318
322
|
include: sourceFullPath,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
exclude: /(node_modules)/,
|
|
324
|
-
include: sourceFullPath,
|
|
325
|
-
loader: fileLoaderPath,
|
|
326
|
-
test: /\.(gif|jpg|png|svg)$/
|
|
323
|
+
test: /\.(gif|jpg|png|svg)$/,
|
|
324
|
+
type: 'asset/resource'
|
|
327
325
|
},
|
|
328
326
|
{
|
|
329
327
|
exclude: /(node_modules)/,
|
|
@@ -392,7 +390,7 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
392
390
|
vm: relativeNodePath('vm-browserify', dirName)
|
|
393
391
|
},
|
|
394
392
|
mainFiles: ['index'],
|
|
395
|
-
modules: [sourceFullPath, 'node_modules', relativeNodePath('', dirName)],
|
|
393
|
+
modules: [sourceFullPath, 'node_modules', relativeNodePath('', dirName), '/Users/nitrog7/.nvm/versions/node/v22.14.0/lib/node_modules'],
|
|
396
394
|
plugins: resolvePlugins,
|
|
397
395
|
unsafeCache: {
|
|
398
396
|
node_modules: true
|
|
@@ -507,10 +505,13 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
507
505
|
|
|
508
506
|
if(isStatic) {
|
|
509
507
|
webpackConfig.plugins.push(
|
|
510
|
-
new StaticSitePlugin()
|
|
511
|
-
new webpack.HashedModuleIdsPlugin()
|
|
508
|
+
new StaticSitePlugin()
|
|
512
509
|
);
|
|
513
510
|
}
|
|
511
|
+
|
|
512
|
+
if(isProduction && isWeb) {
|
|
513
|
+
webpackConfig.optimization.moduleIds = 'deterministic';
|
|
514
|
+
}
|
|
514
515
|
}
|
|
515
516
|
|
|
516
517
|
return merge(webpackConfig, webpackCustom);
|
package/dist/LexConfig.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export interface EsbuildConfig {
|
|
2
|
-
entryPoints?: string[];
|
|
3
|
-
outdir?: string;
|
|
4
|
-
platform?: 'node' | 'browser';
|
|
5
|
-
target?: string;
|
|
6
|
-
format?: 'cjs' | 'esm';
|
|
7
|
-
minify?: boolean;
|
|
8
|
-
treeShaking?: boolean;
|
|
9
|
-
drop?: string[];
|
|
10
|
-
pure?: string[];
|
|
11
|
-
external?: string[];
|
|
12
|
-
splitting?: boolean;
|
|
13
|
-
metafile?: boolean;
|
|
14
|
-
sourcemap?: boolean | 'inline' | 'external';
|
|
15
|
-
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'separate';
|
|
16
|
-
banner?: Record<string, string>;
|
|
17
|
-
footer?: Record<string, string>;
|
|
18
|
-
define?: Record<string, string>;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
export interface JestConfig {
|
|
22
|
-
roots?: string[];
|
|
23
|
-
testEnvironment?: string;
|
|
24
|
-
transform?: Record<string, [string, Record<string, unknown>]>;
|
|
25
|
-
transformIgnorePatterns?: string[];
|
|
26
|
-
moduleNameMapper?: Record<string, string>;
|
|
27
|
-
extensionsToTreatAsEsm?: string[];
|
|
28
|
-
preset?: string;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
export interface WebpackConfig {
|
|
32
|
-
entry?: string | string[];
|
|
33
|
-
output?: Record<string, unknown>;
|
|
34
|
-
module?: Record<string, unknown>;
|
|
35
|
-
plugins?: unknown[];
|
|
36
|
-
[key: string]: unknown;
|
|
37
|
-
}
|
|
38
|
-
export interface AIConfig {
|
|
39
|
-
provider?: 'cursor' | 'copilot' | 'openai' | 'anthropic' | 'none';
|
|
40
|
-
apiKey?: string;
|
|
41
|
-
model?: string;
|
|
42
|
-
maxTokens?: number;
|
|
43
|
-
temperature?: number;
|
|
44
|
-
}
|
|
45
|
-
export interface LexConfigType {
|
|
46
|
-
ai?: AIConfig;
|
|
47
|
-
configFiles?: string[];
|
|
48
|
-
copyFiles?: string[];
|
|
49
|
-
entryHTML?: string;
|
|
50
|
-
entryJs?: string;
|
|
51
|
-
esbuild?: EsbuildConfig;
|
|
52
|
-
env?: object;
|
|
53
|
-
gitUrl?: string;
|
|
54
|
-
jest?: JestConfig;
|
|
55
|
-
libraryName?: string;
|
|
56
|
-
libraryTarget?: string;
|
|
57
|
-
outputFile?: string;
|
|
58
|
-
outputFullPath?: string;
|
|
59
|
-
outputHash?: boolean;
|
|
60
|
-
outputPath?: string;
|
|
61
|
-
packageManager?: 'npm' | 'yarn';
|
|
62
|
-
preset?: 'web' | 'node' | 'lambda' | 'mobile';
|
|
63
|
-
sourceFullPath?: string;
|
|
64
|
-
sourcePath?: string;
|
|
65
|
-
targetEnvironment?: 'node' | 'web';
|
|
66
|
-
useGraphQl?: boolean;
|
|
67
|
-
useTypescript?: boolean;
|
|
68
|
-
webpack?: WebpackConfig;
|
|
69
|
-
}
|
|
70
|
-
export type Config = LexConfigType;
|
|
71
|
-
export declare const defaultConfigValues: LexConfigType;
|
|
72
|
-
export declare class LexConfig {
|
|
73
|
-
static config: LexConfigType;
|
|
74
|
-
static set useTypescript(value: boolean);
|
|
75
|
-
static updateConfig(updatedConfig: LexConfigType): LexConfigType;
|
|
76
|
-
static addConfigParams(cmd: any, params: LexConfigType): void;
|
|
77
|
-
static parseConfig(cmd: any, isRoot?: boolean): Promise<void>;
|
|
78
|
-
static checkTypescriptConfig(): void;
|
|
79
|
-
}
|
package/dist/commands/ai/ai.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
export interface AIOptions {
|
|
3
|
-
readonly cliName?: string;
|
|
4
|
-
readonly context?: boolean;
|
|
5
|
-
readonly file?: string;
|
|
6
|
-
readonly lexConfig?: string;
|
|
7
|
-
readonly model?: string;
|
|
8
|
-
readonly prompt?: string;
|
|
9
|
-
readonly quiet?: boolean;
|
|
10
|
-
readonly task?: 'generate' | 'explain' | 'test' | 'optimize' | 'help' | 'ask' | 'analyze';
|
|
11
|
-
readonly debug?: boolean;
|
|
12
|
-
readonly provider?: string;
|
|
13
|
-
readonly dir?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const aiFunction: (options: AIOptions) => Promise<any>;
|
|
16
|
-
export declare const ai: Command;
|
|
17
|
-
export default ai;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2018-Present, Nitrogen Labs, Inc.
|
|
3
|
-
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
|
|
4
|
-
*/
|
|
5
|
-
import ai, { type AIOptions } from './ai.js';
|
|
6
|
-
export { ai };
|
|
7
|
-
export type { AIOptions };
|
|
8
|
-
export default ai;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface BuildOptions {
|
|
2
|
-
readonly assist?: boolean;
|
|
3
|
-
readonly analyze?: boolean;
|
|
4
|
-
readonly bundler?: 'webpack' | 'esbuild';
|
|
5
|
-
readonly cliName?: string;
|
|
6
|
-
readonly format?: string;
|
|
7
|
-
readonly outputPath?: string;
|
|
8
|
-
readonly quiet?: boolean;
|
|
9
|
-
readonly remove?: boolean;
|
|
10
|
-
readonly sourcePath?: string;
|
|
11
|
-
readonly variables?: string;
|
|
12
|
-
readonly watch?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type BuildCallback = (status: number) => void;
|
|
15
|
-
export declare const buildWithEsBuild: (spinner: any, commandOptions: BuildOptions, callback: BuildCallback) => Promise<0 | 1>;
|
|
16
|
-
export declare const buildWithWebpack: (spinner: any, cmd: any, callback: any) => Promise<0 | 1>;
|
|
17
|
-
export declare const build: (cmd: BuildOptions, callback?: BuildCallback) => Promise<number>;
|
|
18
|
-
export default build;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface CleanOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly quiet?: boolean;
|
|
4
|
-
readonly snapshots?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type CleanCallback = (status: number) => void;
|
|
7
|
-
export declare const clean: (cmd: CleanOptions, callback?: CleanCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface ConfigOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly json?: string;
|
|
4
|
-
readonly quiet?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type ConfigCallback = (status: number) => void;
|
|
7
|
-
export declare const config: (type: string, cmd: ConfigOptions, callback?: ConfigCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface CreateOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly outputFile?: string;
|
|
4
|
-
readonly outputName?: string;
|
|
5
|
-
readonly quiet?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type CreateCallback = (status: number) => void;
|
|
8
|
-
export declare const create: (type: string, cmd: CreateOptions, callback?: CreateCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface DevOptions {
|
|
2
|
-
readonly bundleAnalyzer?: boolean;
|
|
3
|
-
readonly cliName?: string;
|
|
4
|
-
readonly config?: string;
|
|
5
|
-
readonly open?: boolean;
|
|
6
|
-
readonly quiet?: boolean;
|
|
7
|
-
readonly remove?: boolean;
|
|
8
|
-
readonly variables?: string;
|
|
9
|
-
}
|
|
10
|
-
export type DevCallback = (status: number) => void;
|
|
11
|
-
export declare const dev: (cmd: DevOptions, callback?: DevCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface InitOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly install?: boolean;
|
|
4
|
-
readonly packageManager?: string;
|
|
5
|
-
readonly quiet?: boolean;
|
|
6
|
-
readonly typescript?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type InitCallback = (status: number) => void;
|
|
9
|
-
export declare const init: (appName: string, packageName: string, cmd: InitOptions, callback?: InitCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface LintOptions {
|
|
2
|
-
readonly cache?: boolean;
|
|
3
|
-
readonly cacheFile?: string;
|
|
4
|
-
readonly cacheLocation?: string;
|
|
5
|
-
readonly cliName?: string;
|
|
6
|
-
readonly color?: boolean;
|
|
7
|
-
readonly config?: string;
|
|
8
|
-
readonly debug?: boolean;
|
|
9
|
-
readonly env?: string;
|
|
10
|
-
readonly envInfo?: boolean;
|
|
11
|
-
readonly ext?: string;
|
|
12
|
-
readonly fix?: boolean;
|
|
13
|
-
readonly fixDryRun?: boolean;
|
|
14
|
-
readonly fixType?: string;
|
|
15
|
-
readonly format?: string;
|
|
16
|
-
readonly global?: string;
|
|
17
|
-
readonly ignorePath?: string;
|
|
18
|
-
readonly ignorePattern?: string;
|
|
19
|
-
readonly init?: boolean;
|
|
20
|
-
readonly maxWarnings?: string;
|
|
21
|
-
readonly noColor?: boolean;
|
|
22
|
-
readonly noEslintrc?: boolean;
|
|
23
|
-
readonly noIgnore?: boolean;
|
|
24
|
-
readonly noInlineConfig?: boolean;
|
|
25
|
-
readonly outputFile?: string;
|
|
26
|
-
readonly parser?: string;
|
|
27
|
-
readonly parserOptions?: string;
|
|
28
|
-
readonly plugin?: string;
|
|
29
|
-
readonly printConfig?: string;
|
|
30
|
-
readonly quiet?: boolean;
|
|
31
|
-
readonly reportUnusedDisableDirectives?: boolean;
|
|
32
|
-
readonly resolvePluginsRelativeTo?: string;
|
|
33
|
-
readonly rule?: string;
|
|
34
|
-
readonly rulesdir?: string;
|
|
35
|
-
readonly stdin?: boolean;
|
|
36
|
-
readonly stdinFilename?: string;
|
|
37
|
-
}
|
|
38
|
-
export type LintCallback = typeof process.exit;
|
|
39
|
-
export declare const lint: (cmd: LintOptions, callback?: LintCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface MigrateOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly packageManager?: string;
|
|
4
|
-
readonly quiet?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type MigrateCallback = typeof process.exit;
|
|
7
|
-
export declare const migrate: (cmd: MigrateOptions, callback?: MigrateCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface PublishOptions {
|
|
2
|
-
readonly bump?: string;
|
|
3
|
-
readonly cliName?: string;
|
|
4
|
-
readonly newVersion?: string;
|
|
5
|
-
readonly otp?: string;
|
|
6
|
-
readonly packageManager?: string;
|
|
7
|
-
readonly private?: boolean;
|
|
8
|
-
readonly quiet?: boolean;
|
|
9
|
-
readonly tag?: string;
|
|
10
|
-
}
|
|
11
|
-
export type PublishCallback = typeof process.exit;
|
|
12
|
-
export declare const publish: (cmd: PublishOptions, callback?: PublishCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export interface TestOptions {
|
|
2
|
-
readonly analyze?: boolean;
|
|
3
|
-
readonly aiDebug?: boolean;
|
|
4
|
-
readonly aiGenerate?: boolean;
|
|
5
|
-
readonly aiAnalyze?: boolean;
|
|
6
|
-
readonly bail?: boolean;
|
|
7
|
-
readonly changedFilesWithAncestor?: boolean;
|
|
8
|
-
readonly changedSince?: string;
|
|
9
|
-
readonly ci?: boolean;
|
|
10
|
-
readonly cliName?: string;
|
|
11
|
-
readonly collectCoverageFrom?: string;
|
|
12
|
-
readonly colors?: boolean;
|
|
13
|
-
readonly config?: string;
|
|
14
|
-
readonly debug?: boolean;
|
|
15
|
-
readonly debugTests?: boolean;
|
|
16
|
-
readonly detectOpenHandles?: boolean;
|
|
17
|
-
readonly env?: string;
|
|
18
|
-
readonly errorOnDeprecated?: boolean;
|
|
19
|
-
readonly expand?: boolean;
|
|
20
|
-
readonly forceExit?: boolean;
|
|
21
|
-
readonly generate?: boolean;
|
|
22
|
-
readonly json?: boolean;
|
|
23
|
-
readonly lastCommit?: boolean;
|
|
24
|
-
readonly listTests?: boolean;
|
|
25
|
-
readonly logHeapUsage?: boolean;
|
|
26
|
-
readonly maxWorkers?: string;
|
|
27
|
-
readonly noStackTrace?: boolean;
|
|
28
|
-
readonly notify?: boolean;
|
|
29
|
-
readonly onlyChanged?: boolean;
|
|
30
|
-
readonly outputFile?: string;
|
|
31
|
-
readonly passWithNoTests?: boolean;
|
|
32
|
-
readonly quiet?: boolean;
|
|
33
|
-
readonly removeCache?: boolean;
|
|
34
|
-
readonly runInBand?: boolean;
|
|
35
|
-
readonly setup?: string;
|
|
36
|
-
readonly showConfig?: boolean;
|
|
37
|
-
readonly silent?: boolean;
|
|
38
|
-
readonly testLocationInResults?: boolean;
|
|
39
|
-
readonly testNamePattern?: string;
|
|
40
|
-
readonly testPathPattern?: string;
|
|
41
|
-
readonly update?: boolean;
|
|
42
|
-
readonly useStderr?: boolean;
|
|
43
|
-
readonly verbose?: boolean;
|
|
44
|
-
readonly watch?: string;
|
|
45
|
-
readonly watchAll?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export type TestCallback = typeof process.exit;
|
|
48
|
-
export declare const getTestFilePatterns: (testPathPattern?: string) => string[];
|
|
49
|
-
export declare const test: (options: TestOptions, args: string[], callback?: TestCallback) => Promise<number>;
|
|
50
|
-
export default test;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface UpdateOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly interactive?: boolean;
|
|
4
|
-
readonly packageManager?: string;
|
|
5
|
-
readonly quiet?: boolean;
|
|
6
|
-
readonly registry?: string;
|
|
7
|
-
}
|
|
8
|
-
export type UpdateCallback = typeof process.exit;
|
|
9
|
-
export declare const update: (cmd: UpdateOptions, callback?: UpdateCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface UpgradeOptions {
|
|
2
|
-
readonly cliName?: string;
|
|
3
|
-
readonly cliPackage?: string;
|
|
4
|
-
readonly quiet?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type UpgradeCallback = typeof process.exit;
|
|
7
|
-
export declare const upgrade: (cmd: UpgradeOptions, callback?: UpgradeCallback) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const parseVersion: (packageVersion: string) => string;
|
|
2
|
-
export declare const packages: {
|
|
3
|
-
esbuild: string;
|
|
4
|
-
jest: string;
|
|
5
|
-
lex: any;
|
|
6
|
-
typescript: string;
|
|
7
|
-
webpack: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const jsonVersions: (lexPackages: any) => {};
|
|
10
|
-
export interface VersionsCmd {
|
|
11
|
-
readonly json?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const versions: (cmd: VersionsCmd, callback: (status: number) => void) => Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2018-Present, Nitrogen Labs, Inc.
|
|
3
|
-
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
|
|
4
|
-
*/
|
|
5
|
-
import type { LexConfigType } from './LexConfig.js';
|
|
6
|
-
export * from './types.js';
|
|
7
|
-
export { LexConfig, defaultConfigValues } from './LexConfig.js';
|
|
8
|
-
export declare const Config: {
|
|
9
|
-
create: (config: LexConfigType) => LexConfigType;
|
|
10
|
-
};
|
|
11
|
-
export * from './utils/aiService.js';
|
|
12
|
-
export * from './utils/app.js';
|
|
13
|
-
export * from './utils/file.js';
|
|
14
|
-
export * from './utils/log.js';
|
|
15
|
-
export * from './commands/ai/ai.js';
|
|
16
|
-
export * from './commands/build/build.js';
|
|
17
|
-
export * from './commands/clean/clean.js';
|
|
18
|
-
export * from './commands/compile/compile.js';
|
|
19
|
-
export * from './commands/config/config.js';
|
|
20
|
-
export * from './commands/copy/copy.js';
|
|
21
|
-
export * from './commands/create/create.js';
|
|
22
|
-
export * from './commands/dev/dev.js';
|
|
23
|
-
export * from './commands/init/init.js';
|
|
24
|
-
export * from './commands/link/link.js';
|
|
25
|
-
export * from './commands/lint/lint.js';
|
|
26
|
-
export * from './commands/migrate/migrate.js';
|
|
27
|
-
export * from './commands/publish/publish.js';
|
|
28
|
-
export * from './commands/test/test.js';
|
|
29
|
-
export * from './commands/update/update.js';
|
|
30
|
-
export * from './commands/upgrade/upgrade.js';
|
|
31
|
-
export * from './commands/versions/versions.js';
|
package/dist/lex.d.ts
DELETED