legal-markdown-js 2.8.0 ā 2.9.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 +63 -2
- package/dist/cli/interactive/utils/format-helpers.js +1 -1
- package/dist/constants/paths.d.ts +5 -0
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +12 -3
- package/dist/constants/paths.js.map +1 -1
- package/dist/utils/env-discovery.d.ts +35 -0
- package/dist/utils/env-discovery.d.ts.map +1 -0
- package/dist/utils/env-discovery.js +149 -0
- package/dist/utils/env-discovery.js.map +1 -0
- package/package.json +9 -6
- package/scripts/build-packages.js +373 -0
- package/scripts/build-paths.js +69 -0
- package/scripts/build-web.js +118 -0
- package/scripts/generate-readmes.js +632 -0
- package/scripts/generate-run-scripts.js +537 -0
- package/scripts/setup-config.js +118 -0
- package/scripts/visual-tests/README.md +76 -0
- package/scripts/visual-tests/generate-contract.js +72 -0
- package/scripts/visual-tests/generate-ticket.js +72 -0
- package/scripts/web-serve.js +189 -0
package/README.md
CHANGED
|
@@ -41,6 +41,9 @@ After installation, you'll have access to these commands:
|
|
|
41
41
|
|
|
42
42
|
- **`legal-md`** - Standard command-line interface with options and flags
|
|
43
43
|
- **`legal-md-ui`** - Interactive CLI with guided prompts and smart defaults
|
|
44
|
+
- **`legal-md-setup`** - Configuration setup script for easy environment setup
|
|
45
|
+
- **`legal-md-playground`** - Local playground server for testing and
|
|
46
|
+
exploration
|
|
44
47
|
- **`legal2md`** - Alias for `legal-md` (for compatibility)
|
|
45
48
|
|
|
46
49
|
## š Try it Online
|
|
@@ -49,8 +52,42 @@ After installation, you'll have access to these commands:
|
|
|
49
52
|
Markdown JS directly in your browser with live examples and real-time
|
|
50
53
|
processing.
|
|
51
54
|
|
|
55
|
+
### Local Playground
|
|
56
|
+
|
|
57
|
+
You can also run the playground locally for offline use or testing:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Start local playground server (when installed globally)
|
|
61
|
+
legal-md-playground
|
|
62
|
+
|
|
63
|
+
# Or with custom port
|
|
64
|
+
legal-md-playground --port=3000
|
|
65
|
+
|
|
66
|
+
# Or if installed locally in a project
|
|
67
|
+
npm run web:serve
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The playground provides the same interactive experience as the online version,
|
|
71
|
+
including real-time processing, syntax highlighting, and example templates.
|
|
72
|
+
|
|
52
73
|
## Quick Start
|
|
53
74
|
|
|
75
|
+
### Initial Setup (Optional)
|
|
76
|
+
|
|
77
|
+
For the best experience, especially if you're new to Legal Markdown JS, run the
|
|
78
|
+
setup script to configure your environment:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Configure paths and directories (when installed globally)
|
|
82
|
+
legal-md-setup
|
|
83
|
+
|
|
84
|
+
# Or if installed locally in a project
|
|
85
|
+
npm run setup-config
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
This creates a personalized configuration file that the tool will automatically
|
|
89
|
+
find and use.
|
|
90
|
+
|
|
54
91
|
### Command Line Usage
|
|
55
92
|
|
|
56
93
|
#### Standard CLI
|
|
@@ -250,9 +287,33 @@ npm run test:coverage
|
|
|
250
287
|
Legal Markdown JS supports environment-based configuration for customizing file
|
|
251
288
|
paths and directories.
|
|
252
289
|
|
|
253
|
-
###
|
|
290
|
+
### Quick Setup (Recommended)
|
|
291
|
+
|
|
292
|
+
For easy configuration setup, especially for non-technical users:
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
# Run the setup script (when installed globally)
|
|
296
|
+
legal-md-setup
|
|
297
|
+
|
|
298
|
+
# Or if installed locally in a project
|
|
299
|
+
npm run setup-config
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
This script will:
|
|
303
|
+
|
|
304
|
+
- Create a configuration directory at `~/.config/legal-markdown-js/`
|
|
305
|
+
- Copy the configuration template with helpful comments
|
|
306
|
+
- Provide clear instructions on how to customize your paths
|
|
307
|
+
- Show you exactly where to edit your settings
|
|
308
|
+
|
|
309
|
+
### Manual Configuration
|
|
310
|
+
|
|
311
|
+
If you prefer manual setup, create a `.env` file in one of these locations (in
|
|
312
|
+
order of precedence):
|
|
254
313
|
|
|
255
|
-
|
|
314
|
+
1. **Current working directory**: `./.env`
|
|
315
|
+
2. **Your home directory**: `~/.env`
|
|
316
|
+
3. **Config directory**: `~/.config/legal-markdown-js/.env`
|
|
256
317
|
|
|
257
318
|
```bash
|
|
258
319
|
# Copy the example configuration
|
|
@@ -29,7 +29,7 @@ function formatConfigSummary(config) {
|
|
|
29
29
|
const { inputFile, outputFilename, outputFormats, processingOptions, cssFile } = config;
|
|
30
30
|
let summary = chalk_1.default.bold.cyan('\nš Configuration Summary:\n\n');
|
|
31
31
|
// Input file
|
|
32
|
-
summary +=
|
|
32
|
+
summary += `š ${chalk_1.default.bold('Input file:')} ${inputFile}\n`;
|
|
33
33
|
// Output filename
|
|
34
34
|
summary += `š ${chalk_1.default.bold('Output filename:')} ${outputFilename}\n`;
|
|
35
35
|
// Output formats
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
* This module provides centralized access to path constants loaded from
|
|
5
5
|
* environment variables via dotenv. It ensures consistent path usage
|
|
6
6
|
* across the application and provides sensible defaults.
|
|
7
|
+
*
|
|
8
|
+
* The .env file is discovered from multiple locations in order of precedence:
|
|
9
|
+
* 1. Current working directory
|
|
10
|
+
* 2. User's home directory
|
|
11
|
+
* 3. User's config directory (~/.config/legal-markdown-js/)
|
|
7
12
|
*/
|
|
8
13
|
/**
|
|
9
14
|
* Path constants loaded from environment variables
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH;;GAEG;AACH,eAAO,MAAM,KAAK;IAChB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;CAEK,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
|
package/dist/constants/paths.js
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
* This module provides centralized access to path constants loaded from
|
|
6
6
|
* environment variables via dotenv. It ensures consistent path usage
|
|
7
7
|
* across the application and provides sensible defaults.
|
|
8
|
+
*
|
|
9
|
+
* The .env file is discovered from multiple locations in order of precedence:
|
|
10
|
+
* 1. Current working directory
|
|
11
|
+
* 2. User's home directory
|
|
12
|
+
* 3. User's config directory (~/.config/legal-markdown-js/)
|
|
8
13
|
*/
|
|
9
14
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
15
|
if (k2 === undefined) k2 = k;
|
|
@@ -41,10 +46,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
41
46
|
})();
|
|
42
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
48
|
exports.RESOLVED_PATHS = exports.PATHS = void 0;
|
|
44
|
-
const dotenv_1 = require("dotenv");
|
|
45
49
|
const path = __importStar(require("path"));
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
const env_discovery_1 = require("../utils/env-discovery");
|
|
51
|
+
// Discover and load environment variables from .env file
|
|
52
|
+
const loadedEnvPath = (0, env_discovery_1.discoverAndLoadEnv)();
|
|
53
|
+
// Optional: Log which .env file was loaded for debugging
|
|
54
|
+
if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'ci' && loadedEnvPath) {
|
|
55
|
+
console.log(`Loaded environment configuration from: ${loadedEnvPath}`);
|
|
56
|
+
}
|
|
48
57
|
/**
|
|
49
58
|
* Path constants loaded from environment variables
|
|
50
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3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CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAK,CAAC,iBAAiB,CAAC;IACvE,kBAAkB,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAK,CAAC,kBAAkB,CAAC;CACjE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment File Discovery Utility
|
|
3
|
+
*
|
|
4
|
+
* This module provides functionality to discover .env files in multiple
|
|
5
|
+
* locations to improve user experience, especially for non-developer users.
|
|
6
|
+
* It searches for .env files in the following order:
|
|
7
|
+
* 1. Current working directory
|
|
8
|
+
* 2. User's home directory
|
|
9
|
+
* 3. User's config directory (~/.config/legal-markdown-js/)
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Discovers and loads .env file from multiple possible locations
|
|
13
|
+
*
|
|
14
|
+
* @returns The path of the loaded .env file or null if none found
|
|
15
|
+
*/
|
|
16
|
+
export declare function discoverAndLoadEnv(): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Gets all potential .env file locations for informational purposes
|
|
19
|
+
*
|
|
20
|
+
* @returns Array of potential .env file paths
|
|
21
|
+
*/
|
|
22
|
+
export declare function getEnvSearchPaths(): string[];
|
|
23
|
+
/**
|
|
24
|
+
* Creates the config directory if it doesn't exist
|
|
25
|
+
*
|
|
26
|
+
* @returns The path to the config directory
|
|
27
|
+
*/
|
|
28
|
+
export declare function ensureConfigDirectory(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a sample .env file in the user's config directory
|
|
31
|
+
*
|
|
32
|
+
* @returns The path where the sample was created or null if failed
|
|
33
|
+
*/
|
|
34
|
+
export declare function createSampleEnvFile(): string | null;
|
|
35
|
+
//# sourceMappingURL=env-discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-discovery.d.ts","sourceRoot":"","sources":["../../src/utils/env-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqBH;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAiBlD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAa9C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAgCnD"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment File Discovery Utility
|
|
4
|
+
*
|
|
5
|
+
* This module provides functionality to discover .env files in multiple
|
|
6
|
+
* locations to improve user experience, especially for non-developer users.
|
|
7
|
+
* It searches for .env files in the following order:
|
|
8
|
+
* 1. Current working directory
|
|
9
|
+
* 2. User's home directory
|
|
10
|
+
* 3. User's config directory (~/.config/legal-markdown-js/)
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.discoverAndLoadEnv = discoverAndLoadEnv;
|
|
47
|
+
exports.getEnvSearchPaths = getEnvSearchPaths;
|
|
48
|
+
exports.ensureConfigDirectory = ensureConfigDirectory;
|
|
49
|
+
exports.createSampleEnvFile = createSampleEnvFile;
|
|
50
|
+
const fs = __importStar(require("fs"));
|
|
51
|
+
const path = __importStar(require("path"));
|
|
52
|
+
const os = __importStar(require("os"));
|
|
53
|
+
const dotenv_1 = require("dotenv");
|
|
54
|
+
/**
|
|
55
|
+
* Potential locations for .env files in order of precedence
|
|
56
|
+
*/
|
|
57
|
+
const ENV_SEARCH_PATHS = [
|
|
58
|
+
// 1. Current working directory (highest precedence)
|
|
59
|
+
() => path.join(process.cwd(), '.env'),
|
|
60
|
+
// 2. User's home directory
|
|
61
|
+
() => path.join(os.homedir(), '.env'),
|
|
62
|
+
// 3. User's config directory
|
|
63
|
+
() => path.join(os.homedir(), '.config', 'legal-markdown-js', '.env'),
|
|
64
|
+
];
|
|
65
|
+
/**
|
|
66
|
+
* Discovers and loads .env file from multiple possible locations
|
|
67
|
+
*
|
|
68
|
+
* @returns The path of the loaded .env file or null if none found
|
|
69
|
+
*/
|
|
70
|
+
function discoverAndLoadEnv() {
|
|
71
|
+
for (const getPath of ENV_SEARCH_PATHS) {
|
|
72
|
+
const envPath = getPath();
|
|
73
|
+
try {
|
|
74
|
+
if (fs.existsSync(envPath) && fs.statSync(envPath).isFile()) {
|
|
75
|
+
// Load the .env file
|
|
76
|
+
(0, dotenv_1.config)({ path: envPath, debug: false });
|
|
77
|
+
return envPath;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
// Continue to next location if this one fails
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Gets all potential .env file locations for informational purposes
|
|
89
|
+
*
|
|
90
|
+
* @returns Array of potential .env file paths
|
|
91
|
+
*/
|
|
92
|
+
function getEnvSearchPaths() {
|
|
93
|
+
return ENV_SEARCH_PATHS.map(getPath => getPath());
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Creates the config directory if it doesn't exist
|
|
97
|
+
*
|
|
98
|
+
* @returns The path to the config directory
|
|
99
|
+
*/
|
|
100
|
+
function ensureConfigDirectory() {
|
|
101
|
+
const configDir = path.join(os.homedir(), '.config', 'legal-markdown-js');
|
|
102
|
+
try {
|
|
103
|
+
if (!fs.existsSync(configDir)) {
|
|
104
|
+
fs.mkdirSync(configDir, { recursive: true });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
// If we can't create the directory, that's okay
|
|
109
|
+
// The user can still use other locations
|
|
110
|
+
}
|
|
111
|
+
return configDir;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates a sample .env file in the user's config directory
|
|
115
|
+
*
|
|
116
|
+
* @returns The path where the sample was created or null if failed
|
|
117
|
+
*/
|
|
118
|
+
function createSampleEnvFile() {
|
|
119
|
+
try {
|
|
120
|
+
const configDir = ensureConfigDirectory();
|
|
121
|
+
const samplePath = path.join(configDir, '.env');
|
|
122
|
+
// Don't overwrite existing file
|
|
123
|
+
if (fs.existsSync(samplePath)) {
|
|
124
|
+
return samplePath;
|
|
125
|
+
}
|
|
126
|
+
const sampleContent = `# Legal Markdown - User Configuration
|
|
127
|
+
# This file was automatically created in your config directory
|
|
128
|
+
# Customize these paths according to your needs
|
|
129
|
+
|
|
130
|
+
# Directory containing image assets (logos, diagrams, etc.)
|
|
131
|
+
IMAGES_DIR=src/assets/images
|
|
132
|
+
|
|
133
|
+
# Directory containing CSS stylesheets
|
|
134
|
+
STYLES_DIR=src/styles
|
|
135
|
+
|
|
136
|
+
# Default directory for input documents
|
|
137
|
+
DEFAULT_INPUT_DIR=input
|
|
138
|
+
|
|
139
|
+
# Default directory for output documents
|
|
140
|
+
DEFAULT_OUTPUT_DIR=output
|
|
141
|
+
`;
|
|
142
|
+
fs.writeFileSync(samplePath, sampleContent, 'utf8');
|
|
143
|
+
return samplePath;
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=env-discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-discovery.js","sourceRoot":"","sources":["../../src/utils/env-discovery.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,gDAiBC;AAOD,8CAEC;AAOD,sDAaC;AAOD,kDAgCC;AA7GD,uCAAyB;AACzB,2CAA6B;AAC7B,uCAAyB;AACzB,mCAAgC;AAEhC;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACvB,oDAAoD;IACpD,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC;IAEtC,2BAA2B;IAC3B,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC;IAErC,6BAA6B;IAC7B,GAAG,EAAE,CAAC,IAAI,CAAC,I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B,mBAAmB;IACjC,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,qBAAqB,EAAE,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAEhD,gCAAgC;QAChC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC9B,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;CAezB,CAAC;QAEE,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;QACpD,OAAO,UAAU,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "legal-markdown-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"validate": "npm run typecheck && npm run lint && npm run test",
|
|
45
45
|
"web": "node scripts/web-serve.js",
|
|
46
46
|
"web:serve": "node scripts/web-serve.js",
|
|
47
|
-
"build:packages": "node scripts/build-packages.js"
|
|
47
|
+
"build:packages": "node scripts/build-packages.js",
|
|
48
|
+
"setup-config": "node scripts/setup-config.js"
|
|
48
49
|
},
|
|
49
50
|
"keywords": [
|
|
50
51
|
"legal",
|
|
@@ -81,7 +82,8 @@
|
|
|
81
82
|
"latex-ast-parser": "^1.1.0",
|
|
82
83
|
"marked": "^15.0.12",
|
|
83
84
|
"puppeteer": "^24.13.0",
|
|
84
|
-
"restructured": "^0.0.11"
|
|
85
|
+
"restructured": "^0.0.11",
|
|
86
|
+
"dotenv": "^17.2.1"
|
|
85
87
|
},
|
|
86
88
|
"devDependencies": {
|
|
87
89
|
"@commitlint/cli": "^19.8.1",
|
|
@@ -99,7 +101,6 @@
|
|
|
99
101
|
"browserify": "^17.0.0",
|
|
100
102
|
"commitizen": "^4.3.1",
|
|
101
103
|
"cz-conventional-changelog": "^3.3.0",
|
|
102
|
-
"dotenv": "^17.2.1",
|
|
103
104
|
"eslint": "^8.52.0",
|
|
104
105
|
"glob": "^11.0.3",
|
|
105
106
|
"husky": "^9.1.7",
|
|
@@ -121,9 +122,11 @@
|
|
|
121
122
|
"bin": {
|
|
122
123
|
"legal-md": "./dist/cli/index.js",
|
|
123
124
|
"legal2md": "./dist/cli/index.js",
|
|
124
|
-
"legal-md-ui": "./dist/cli/interactive/index.js"
|
|
125
|
+
"legal-md-ui": "./dist/cli/interactive/index.js",
|
|
126
|
+
"legal-md-setup": "./scripts/setup-config.js",
|
|
127
|
+
"legal-md-playground": "./scripts/web-serve.js"
|
|
125
128
|
},
|
|
126
|
-
"files": ["dist", "README.md", "LICENSE"],
|
|
129
|
+
"files": ["dist", "scripts", "README.md", "LICENSE"],
|
|
127
130
|
"engines": {
|
|
128
131
|
"node": ">=18.0.0"
|
|
129
132
|
},
|