@nlabs/lex 1.51.6 โ 1.52.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/README.md +120 -54
- package/lib/Button.stories.js +1 -1
- package/lib/LexConfig.d.ts +1 -1
- package/lib/LexConfig.js +36 -14
- package/lib/commands/build/build.js +120 -23
- package/lib/commands/clean/clean.js +1 -1
- package/lib/commands/compile/compile.js +95 -28
- package/lib/commands/config/config.js +1 -1
- package/lib/commands/copy/copy.js +1 -1
- package/lib/commands/create/create.js +1 -1
- package/lib/commands/dev/dev.js +22 -11
- package/lib/commands/init/init.js +1 -1
- package/lib/commands/link/link.js +1 -1
- package/lib/commands/lint/lint.js +1 -1
- package/lib/commands/serverless/serverless.js +1 -1
- package/lib/commands/storybook/storybook.js +1 -1
- package/lib/commands/versions/versions.js +1 -1
- package/lib/utils/aiService.js +1 -1
- package/lib/utils/app.d.ts +1 -1
- package/lib/utils/app.js +22 -17
- package/lib/utils/file.js +24 -3
- package/lib/utils/postcss/postcss-for.d.ts +1 -1
- package/lib/utils/postcss/postcss-for.js +6 -8
- package/lib/utils/postcss/postcss-percentage.d.ts +1 -1
- package/lib/utils/postcss/postcss-percentage.js +14 -13
- package/package.json +10 -3
- package/scripts/test-static-manual.js +117 -0
- package/scripts/test-webpack.js +124 -30
- package/webpack.config.js +135 -8
package/README.md
CHANGED
|
@@ -13,35 +13,35 @@ Lex is the all-in-one development CLI that eliminates the complexity of modern R
|
|
|
13
13
|
|
|
14
14
|
## โจ Why Lex?
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### **Zero Configuration**
|
|
17
17
|
|
|
18
18
|
- Works out of the box with any React project
|
|
19
19
|
- No webpack configs to write
|
|
20
20
|
- No testing setup to configure
|
|
21
21
|
- No build tools to manage
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### **Lightning Fast**
|
|
24
24
|
|
|
25
25
|
- SWC-powered compilation (10-100x faster than Babel)
|
|
26
26
|
- Hot reloading development server
|
|
27
27
|
- Optimized production builds
|
|
28
28
|
- Parallel test execution
|
|
29
29
|
|
|
30
|
-
###
|
|
30
|
+
### **AI-Powered Development**
|
|
31
31
|
|
|
32
32
|
- AI-assisted error fixing
|
|
33
33
|
- Intelligent test generation
|
|
34
34
|
- Code optimization suggestions
|
|
35
35
|
- Smart linting with auto-fix
|
|
36
36
|
|
|
37
|
-
###
|
|
37
|
+
### **Enterprise Ready**
|
|
38
38
|
|
|
39
39
|
- TypeScript support out of the box
|
|
40
40
|
- Jest testing framework included
|
|
41
41
|
- Storybook integration
|
|
42
42
|
- Production-optimized builds
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## Quick Start
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
# Install Lex globally
|
|
@@ -63,7 +63,7 @@ lex test
|
|
|
63
63
|
lex build --mode production
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## What's Included
|
|
67
67
|
|
|
68
68
|
Lex comes with everything you need for modern React development:
|
|
69
69
|
|
|
@@ -77,9 +77,9 @@ Lex comes with everything you need for modern React development:
|
|
|
77
77
|
| **PostCSS** | CSS processing | Latest |
|
|
78
78
|
| **ESLint** | Code linting | Latest |
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## Commands Overview
|
|
81
81
|
|
|
82
|
-
###
|
|
82
|
+
### **Project Setup**
|
|
83
83
|
|
|
84
84
|
| Command | Description | Quick Example |
|
|
85
85
|
|---------|-------------|---------------|
|
|
@@ -87,7 +87,7 @@ Lex comes with everything you need for modern React development:
|
|
|
87
87
|
| [`lex create`](#create) | Generate project assets | `lex create view Dashboard` |
|
|
88
88
|
| [`lex migrate`](#migrate) | Migrate existing projects | `lex migrate` |
|
|
89
89
|
|
|
90
|
-
###
|
|
90
|
+
### **Development**
|
|
91
91
|
|
|
92
92
|
| Command | Description | Quick Example |
|
|
93
93
|
|---------|-------------|---------------|
|
|
@@ -96,7 +96,7 @@ Lex comes with everything you need for modern React development:
|
|
|
96
96
|
| [`lex compile`](#compile) | Compile TypeScript/JavaScript | `lex compile --watch` |
|
|
97
97
|
| [`lex build`](#build) | Build for production | `lex build --mode production` |
|
|
98
98
|
|
|
99
|
-
###
|
|
99
|
+
### **Testing & Quality**
|
|
100
100
|
|
|
101
101
|
| Command | Description | Quick Example |
|
|
102
102
|
|---------|-------------|---------------|
|
|
@@ -104,7 +104,7 @@ Lex comes with everything you need for modern React development:
|
|
|
104
104
|
| [`lex lint`](#lint) | Lint code with ESLint | `lex lint --fix` |
|
|
105
105
|
| [`lex storybook`](#storybook) | Start Storybook | `lex storybook --open` |
|
|
106
106
|
|
|
107
|
-
###
|
|
107
|
+
### **AI-Powered Features**
|
|
108
108
|
|
|
109
109
|
| Command | Description | Quick Example |
|
|
110
110
|
|---------|-------------|---------------|
|
|
@@ -112,7 +112,7 @@ Lex comes with everything you need for modern React development:
|
|
|
112
112
|
| [`lex test`](#test) | AI test generation | `lex test --generate` |
|
|
113
113
|
| [`lex build`](#build) | AI error fixing | `lex build --assist` |
|
|
114
114
|
|
|
115
|
-
###
|
|
115
|
+
### **Package Management**
|
|
116
116
|
|
|
117
117
|
| Command | Description | Quick Example |
|
|
118
118
|
|---------|-------------|---------------|
|
|
@@ -120,7 +120,7 @@ Lex comes with everything you need for modern React development:
|
|
|
120
120
|
| [`lex upgrade`](#upgrade) | Upgrade Lex itself | `lex upgrade` |
|
|
121
121
|
| [`lex publish`](#publish) | Publish to npm | `lex publish --bump minor` |
|
|
122
122
|
|
|
123
|
-
###
|
|
123
|
+
### **Utilities**
|
|
124
124
|
|
|
125
125
|
| Command | Description | Quick Example |
|
|
126
126
|
|---------|-------------|---------------|
|
|
@@ -130,9 +130,9 @@ Lex comes with everything you need for modern React development:
|
|
|
130
130
|
| [`lex versions`](#versions) | Show tool versions | `lex versions` |
|
|
131
131
|
| [`lex link`](#link) | Check linked modules | `lex link` |
|
|
132
132
|
|
|
133
|
-
##
|
|
133
|
+
## Core Features
|
|
134
134
|
|
|
135
|
-
###
|
|
135
|
+
### **Development Server**
|
|
136
136
|
|
|
137
137
|
```bash
|
|
138
138
|
# Start with hot reloading
|
|
@@ -148,13 +148,13 @@ lex dev --config ./custom.webpack.js
|
|
|
148
148
|
lex dev --usePublicIp
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
**Public IP Caching**: Lex automatically caches your public IP address for 1 week to reduce API calls. Use `--usePublicIp` to force refresh the cache when needed.
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
**Static Assets**: If your HTML template references static assets (like favicon.ico, manifest.json, or images) with absolute paths, ensure these files exist in your source directory or use relative paths to avoid webpack compilation errors.
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
**Static Assets**: Use the `webpack.staticPath` configuration to specify a directory for static assets (images, videos, audio, PDFs, etc.). Files in this directory will be automatically copied to the output and optimized for web delivery.
|
|
156
156
|
|
|
157
|
-
###
|
|
157
|
+
### **Serverless Development Server** {#serverless}
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
160
|
# Start serverless development server
|
|
@@ -170,13 +170,13 @@ lex serverless --variables '{"NODE_ENV":"development","API_KEY":"test"}'
|
|
|
170
170
|
lex serverless --debug --printOutput
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
**AWS Lambda Simulation**: Lex provides a local development server similar to serverless-offline, allowing you to test AWS Lambda functions with HTTP and WebSocket support.
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
**Configuration**: Configure your serverless functions in `lex.config.mjs`. See the [Serverless Documentation](src/commands/serverless/serverless.docs.md) for detailed configuration options.
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
**Environment Variables**: The serverless command automatically loads environment variables from `.env`, `.env.local`, and `.env.development` files, with command-line variables taking precedence.
|
|
178
178
|
|
|
179
|
-
###
|
|
179
|
+
### **Production Builds**
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
182
|
# Standard production build
|
|
@@ -189,7 +189,7 @@ lex build --bundler swc
|
|
|
189
189
|
lex build --analyze
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
###
|
|
192
|
+
### **Testing Suite**
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
195
|
# Run all tests
|
|
@@ -216,7 +216,7 @@ lex test --config ./jest.config.js
|
|
|
216
216
|
- **React JSX Automatic Runtime**: No need to import React in your test files
|
|
217
217
|
- **TypeScript-First**: Optimized for TypeScript projects with specialized configs
|
|
218
218
|
|
|
219
|
-
###
|
|
219
|
+
### **Storybook Integration**
|
|
220
220
|
|
|
221
221
|
```bash
|
|
222
222
|
# Start Storybook
|
|
@@ -229,7 +229,7 @@ lex storybook --useLexConfig
|
|
|
229
229
|
lex storybook --static
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
-
###
|
|
232
|
+
### **AI-Powered Development**
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
235
|
# Generate code
|
|
@@ -242,7 +242,7 @@ lex ai --task explain --file src/components/Button.tsx
|
|
|
242
242
|
lex ai --task help --prompt "Fix this TypeScript error"
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
-
##
|
|
245
|
+
## Framework Support
|
|
246
246
|
|
|
247
247
|
Lex works seamlessly with popular React frameworks and libraries:
|
|
248
248
|
|
|
@@ -259,13 +259,13 @@ Lex works seamlessly with popular React frameworks and libraries:
|
|
|
259
259
|
|
|
260
260
|
Lex is designed for speed and efficiency:
|
|
261
261
|
|
|
262
|
-
-
|
|
263
|
-
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
262
|
+
- **SWC Integration** - 10-100x faster than Babel, faster than esbuild
|
|
263
|
+
- **Smart Caching** - Intelligent caching for faster rebuilds
|
|
264
|
+
- **Hot Reloading** - Instant feedback during development
|
|
265
|
+
- **Tree Shaking** - Automatic dead code elimination
|
|
266
|
+
- **Code Splitting** - Automatic code splitting for optimal loading
|
|
267
267
|
|
|
268
|
-
##
|
|
268
|
+
## Configuration
|
|
269
269
|
|
|
270
270
|
Lex works out of the box, but you can customize it with a `lex.config.js` file:
|
|
271
271
|
|
|
@@ -299,11 +299,11 @@ export default {
|
|
|
299
299
|
};
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
##
|
|
302
|
+
## Configuration Options Reference
|
|
303
303
|
|
|
304
304
|
Lex provides extensive configuration options through the `lex.config.js` file. Here's a comprehensive reference of all available options:
|
|
305
305
|
|
|
306
|
-
###
|
|
306
|
+
### **Project Settings**
|
|
307
307
|
|
|
308
308
|
| Option | Type | Default | Description | Example |
|
|
309
309
|
|--------|------|---------|-------------|---------|
|
|
@@ -321,7 +321,7 @@ Lex provides extensive configuration options through the `lex.config.js` file. H
|
|
|
321
321
|
| `useGraphQl` | `boolean` | `false` | Enable GraphQL support | `useGraphQl: true` |
|
|
322
322
|
| `useTypescript` | `boolean` | `false` | Enable TypeScript support | `useTypescript: true` |
|
|
323
323
|
|
|
324
|
-
###
|
|
324
|
+
### **AI Configuration**
|
|
325
325
|
|
|
326
326
|
| Option | Type | Default | Description | Example |
|
|
327
327
|
|--------|------|---------|-------------|---------|
|
|
@@ -331,7 +331,7 @@ Lex provides extensive configuration options through the `lex.config.js` file. H
|
|
|
331
331
|
| `ai.provider` | `'cursor' \| 'copilot' \| 'openai' \| 'anthropic' \| 'none'` | `'none'` | AI service provider | `ai: { provider: 'openai' }` |
|
|
332
332
|
| `ai.temperature` | `number` | `0.1` | AI response creativity (0-1) | `ai: { temperature: 0.7 }` |
|
|
333
333
|
|
|
334
|
-
###
|
|
334
|
+
### **SWC Configuration**
|
|
335
335
|
|
|
336
336
|
SWC (Speedy Web Compiler) is now the default transpiler for all TypeScript and JavaScript compilation in Lex. SWC provides:
|
|
337
337
|
|
|
@@ -352,7 +352,7 @@ SWC is automatically configured and doesn't require additional configuration in
|
|
|
352
352
|
| **Decorators** | TypeScript decorators support | `enabled` |
|
|
353
353
|
| **Source Maps** | Debug information | `inline` |
|
|
354
354
|
|
|
355
|
-
###
|
|
355
|
+
### **Jest Configuration**
|
|
356
356
|
|
|
357
357
|
| Option | Type | Default | Description | Example |
|
|
358
358
|
|--------|------|---------|-------------|---------|
|
|
@@ -364,14 +364,45 @@ SWC is automatically configured and doesn't require additional configuration in
|
|
|
364
364
|
| `jest.transform` | `Record<string, [string, object]>` | `undefined` | Transform configurations | `jest: { transform: { '^.+\\.tsx?$': ['ts-jest'] } }` |
|
|
365
365
|
| `jest.transformIgnorePatterns` | `string[]` | `undefined` | Patterns to ignore in transforms | `jest: { transformIgnorePatterns: ['node_modules'] }` |
|
|
366
366
|
|
|
367
|
-
###
|
|
367
|
+
### **ESLint Configuration**
|
|
368
|
+
|
|
369
|
+
Lex provides a default ESLint configuration optimized for React and TypeScript projects. To extend Lex's ESLint config, create an `eslint.config.mjs` file in your project root that imports and spreads Lex's configuration.
|
|
370
|
+
|
|
371
|
+
**How it works:**
|
|
372
|
+
- Lex uses ESLint's flat config format (array-based configuration)
|
|
373
|
+
- Create an `eslint.config.mjs` file that imports `@nlabs/lex/eslint.config.mjs` and spreads it
|
|
374
|
+
- Add your custom rules as additional objects in the array
|
|
375
|
+
- If you don't create an `eslint.config.mjs`, Lex will use its default configuration automatically
|
|
376
|
+
|
|
377
|
+
**Recommended approach - Create `eslint.config.mjs`:**
|
|
378
|
+
|
|
379
|
+
```javascript
|
|
380
|
+
// eslint.config.mjs
|
|
381
|
+
import lexConfig from '@nlabs/lex/eslint.config.mjs';
|
|
382
|
+
|
|
383
|
+
export default [
|
|
384
|
+
...lexConfig,
|
|
385
|
+
{
|
|
386
|
+
rules: {
|
|
387
|
+
'no-console': 'warn',
|
|
388
|
+
'@typescript-eslint/no-unused-vars': 'error'
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
];
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**Alternative - Use `lex.config.*` (limited):**
|
|
395
|
+
|
|
396
|
+
You can also specify ESLint rules in your `lex.config.js` file, but this is less flexible:
|
|
368
397
|
|
|
369
398
|
| Option | Type | Default | Description | Example |
|
|
370
399
|
|--------|------|---------|-------------|---------|
|
|
371
|
-
| `eslint.extends` | `string[]` | `undefined` | ESLint
|
|
372
|
-
| `eslint.rules` | `Linter.RulesRecord` | `undefined` | ESLint rules | `eslint: { rules: { 'no-console': 'warn' } }` |
|
|
400
|
+
| `eslint.extends` | `string[]` | `undefined` | Additional ESLint configs to extend | `eslint: { extends: ['@typescript-eslint/recommended'] }` |
|
|
401
|
+
| `eslint.rules` | `Linter.RulesRecord` | `undefined` | Custom ESLint rules | `eslint: { rules: { 'no-console': 'warn' } }` |
|
|
402
|
+
|
|
403
|
+
**Note:** Creating an `eslint.config.mjs` file gives you full control and is the recommended approach. The `lex.config.*` approach is provided for simple rule overrides only.
|
|
373
404
|
|
|
374
|
-
###
|
|
405
|
+
### **Webpack Configuration**
|
|
375
406
|
|
|
376
407
|
| Option | Type | Default | Description | Example |
|
|
377
408
|
|--------|------|---------|-------------|---------|
|
|
@@ -381,14 +412,14 @@ SWC is automatically configured and doesn't require additional configuration in
|
|
|
381
412
|
| `webpack.plugins` | `unknown[]` | `undefined` | Webpack plugins | `webpack: { plugins: [new MyPlugin()] }` |
|
|
382
413
|
| `webpack.staticPath` | `string` | `'./src/static'` | Path to static assets directory. Files in this directory will be copied to the output and optimized (images/videos compressed, audio optimized) | `webpack: { staticPath: './assets' }` |
|
|
383
414
|
|
|
384
|
-
###
|
|
415
|
+
### **Library Configuration**
|
|
385
416
|
|
|
386
417
|
| Option | Type | Default | Description | Example |
|
|
387
418
|
|--------|------|---------|-------------|---------|
|
|
388
419
|
| `libraryName` | `string` | `undefined` | Library name for UMD builds | `libraryName: 'MyLibrary'` |
|
|
389
420
|
| `libraryTarget` | `string` | `undefined` | Library target format | `libraryTarget: 'umd'` |
|
|
390
421
|
|
|
391
|
-
###
|
|
422
|
+
### **File Management**
|
|
392
423
|
|
|
393
424
|
| Option | Type | Default | Description | Example |
|
|
394
425
|
|--------|------|---------|-------------|---------|
|
|
@@ -397,7 +428,7 @@ SWC is automatically configured and doesn't require additional configuration in
|
|
|
397
428
|
| `env` | `object` | `null` | Environment variables | `env: { NODE_ENV: 'development' }` |
|
|
398
429
|
| `gitUrl` | `string` | `undefined` | Git repository URL | `gitUrl: 'https://github.com/user/repo'` |
|
|
399
430
|
|
|
400
|
-
###
|
|
431
|
+
### **Usage Examples**
|
|
401
432
|
|
|
402
433
|
#### Basic TypeScript Project
|
|
403
434
|
|
|
@@ -459,7 +490,42 @@ export default {
|
|
|
459
490
|
};
|
|
460
491
|
```
|
|
461
492
|
|
|
462
|
-
|
|
493
|
+
#### Custom ESLint Configuration
|
|
494
|
+
|
|
495
|
+
**Option 1: Create `eslint.config.mjs` (Recommended)**
|
|
496
|
+
|
|
497
|
+
```javascript
|
|
498
|
+
// eslint.config.mjs
|
|
499
|
+
import lexConfig from '@nlabs/lex/eslint.config.mjs';
|
|
500
|
+
|
|
501
|
+
export default [
|
|
502
|
+
...lexConfig,
|
|
503
|
+
{
|
|
504
|
+
rules: {
|
|
505
|
+
'no-console': 'warn',
|
|
506
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
507
|
+
'react/prop-types': 'off' // Not needed with TypeScript
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
];
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
**Option 2: Use `lex.config.*` (Simple overrides only)**
|
|
514
|
+
|
|
515
|
+
```javascript
|
|
516
|
+
// lex.config.js
|
|
517
|
+
export default {
|
|
518
|
+
useTypescript: true,
|
|
519
|
+
eslint: {
|
|
520
|
+
rules: {
|
|
521
|
+
'no-console': 'warn',
|
|
522
|
+
'@typescript-eslint/explicit-function-return-type': 'off'
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
## Troubleshooting
|
|
463
529
|
|
|
464
530
|
### Common Issues
|
|
465
531
|
|
|
@@ -527,7 +593,7 @@ touch src/manifest.json
|
|
|
527
593
|
mkdir -p src/images && touch src/images/logo-icon-64.png
|
|
528
594
|
```
|
|
529
595
|
|
|
530
|
-
##
|
|
596
|
+
## Documentation
|
|
531
597
|
|
|
532
598
|
- ๐ **[Full Documentation](http://lex.nitrogenlabs.com)** - Complete API reference
|
|
533
599
|
- ๐ฏ **[Getting Started Guide](http://lex.nitrogenlabs.com/getting-started)** - Step-by-step tutorial
|
|
@@ -535,7 +601,7 @@ mkdir -p src/images && touch src/images/logo-icon-64.png
|
|
|
535
601
|
- ๐ค **[AI Features Guide](http://lex.nitrogenlabs.com/ai-features)** - AI-powered development
|
|
536
602
|
- ๐งช **[Testing Guide](http://lex.nitrogenlabs.com/testing)** - Testing best practices
|
|
537
603
|
|
|
538
|
-
##
|
|
604
|
+
## Contributing
|
|
539
605
|
|
|
540
606
|
We love contributions! Here's how you can help:
|
|
541
607
|
|
|
@@ -561,7 +627,7 @@ npm test
|
|
|
561
627
|
npm run build
|
|
562
628
|
```
|
|
563
629
|
|
|
564
|
-
##
|
|
630
|
+
## License
|
|
565
631
|
|
|
566
632
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
567
633
|
|
|
@@ -574,12 +640,12 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
574
640
|
- **Storybook** - For component development
|
|
575
641
|
- **OpenAI/Anthropic** - For AI-powered features
|
|
576
642
|
|
|
577
|
-
##
|
|
643
|
+
## Support
|
|
578
644
|
|
|
579
|
-
-
|
|
580
|
-
-
|
|
581
|
-
-
|
|
582
|
-
-
|
|
645
|
+
- **Issues** - [GitHub Issues](https://github.com/nitrogenlabs/lex/issues)
|
|
646
|
+
- **Discussions** - [GitHub Discussions](https://github.com/nitrogenlabs/lex/discussions)
|
|
647
|
+
- **Email** - <support@nitrogenlabs.com>
|
|
648
|
+
- **Twitter** - [@NitrogenLabs](https://twitter.com/NitrogenLabs)
|
|
583
649
|
|
|
584
650
|
---
|
|
585
651
|
|
package/lib/Button.stories.js
CHANGED
|
@@ -96,4 +96,4 @@ export const Disabled = {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9CdXR0b24uc3Rvcmllcy50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHR5cGUge01ldGEsIFN0b3J5T2JqfSBmcm9tICdAc3Rvcnlib29rL3JlYWN0JztcblxuaW50ZXJmYWNlIEJ1dHRvblByb3BzIHtcbiAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZTtcbiAgZGlzYWJsZWQ/
|
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9CdXR0b24uc3Rvcmllcy50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHR5cGUge01ldGEsIFN0b3J5T2JqfSBmcm9tICdAc3Rvcnlib29rL3JlYWN0JztcblxuaW50ZXJmYWNlIEJ1dHRvblByb3BzIHtcbiAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZTtcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICBvbkNsaWNrPzogKCk9PiB2b2lkO1xuICBzaXplPzogJ2xnJyB8ICdtZCcgfCAnc20nO1xuICB2YXJpYW50PzogJ291dGxpbmUnIHwgJ3ByaW1hcnknIHwgJ3NlY29uZGFyeSc7XG59XG5cbmNvbnN0IEJ1dHRvbjogUmVhY3QuRkM8QnV0dG9uUHJvcHM+ID0gKHtcbiAgY2hpbGRyZW4sXG4gIGRpc2FibGVkID0gZmFsc2UsXG4gIG9uQ2xpY2ssXG4gIHNpemUgPSAnbWQnLFxuICB2YXJpYW50ID0gJ3ByaW1hcnknXG59KSA9PiB7XG4gIGNv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UNsQkMsT0FBTztBQUNUO0FBRUEsZUFBZVQsS0FBSztBQUdwQixPQUFPLE1BQU1VLFVBQWlCO0lBQzVCQyxNQUFNO1FBQ0o3QixVQUFVO1FBQ1ZJLFNBQVM7SUFDWDtBQUNGLEVBQUU7QUFFRixPQUFPLE1BQU0wQixZQUFtQjtJQUM5QkQsTUFBTTtRQUNKN0IsVUFBVTtRQUNWSSxTQUFTO0lBQ1g7QUFDRixFQUFFO0FBRUYsT0FBTyxNQUFNMkIsVUFBaUI7SUFDNUJGLE1BQU07UUFDSjdCLFVBQVU7UUFDVkksU0FBUztJQUNYO0FBQ0YsRUFBRTtBQUVGLE9BQU8sTUFBTTRCLFFBQWU7SUFDMUJILE1BQU07UUFDSjdCLFVBQVU7UUFDVkcsTUFBTTtJQUNSO0FBQ0YsRUFBRTtBQUVGLE9BQU8sTUFBTThCLFFBQWU7SUFDMUJKLE1BQU07UUFDSjdCLFVBQVU7UUFDVkcsTUFBTTtJQUNSO0FBQ0YsRUFBRTtBQUVGLE9BQU8sTUFBTStCLFdBQWtCO0lBQzdCTCxNQUFNO1FBQ0o3QixVQUFVO1FBQ1ZDLFVBQVU7SUFDWjtBQUNGLEVBQUUifQ==
|
package/lib/LexConfig.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare class LexConfig {
|
|
|
124
124
|
static addConfigParams(cmd: any, params: LexConfigType): void;
|
|
125
125
|
static parseConfig(cmd: any, isRoot?: boolean): Promise<void>;
|
|
126
126
|
static checkTypescriptConfig(): void;
|
|
127
|
-
static
|
|
127
|
+
static getTypeScriptDeclarationFlags(): string[];
|
|
128
128
|
static checkLintTypescriptConfig(): void;
|
|
129
129
|
static checkTestTypescriptConfig(): void;
|
|
130
130
|
}
|