@bemedev/manifest
v0.0.1
Published
Create a manifest of all your files
Readme
Description
This library provides helpers and tools to simplify the management of manifests in Node.js projects.
Usage
Installation:
pnpm add @bemedev/manifestExample usage:
Code
import { buildWatcher } from '@bemedev/manifest';
// Using the watcher
const watcher = buildWatcher({ path: './manifest.json' });
watcher.on('change', () => {
console.log('Manifest changed!');
});CLI
To use the CLI, add to your package.json, eventually after installing @bemedev/manifest as dependency:
{
"scripts": {
"manifest": "manifest"
}
}Or run directly:
pnpx @bemedev/manifest [options]Or, if you have the package installed:
pnpm manifest [options]Available options
| Option | Alias | Description | | ------------------ | ----- | ------------------------------------------------------- | | --watch | -w | Enable directory watching (watch mode) | | --base-dir | -b | Base directory to scan (default: src) | | --exclude | -e | File patterns to exclude (can be used multiple times) | | --extensions | -x | File extensions to include (can be used multiple times) | | --exclude-tests | | Automatically exclude test files | | --verbose | -v | Show detailed logs | | --const | -c | Append "as const" to the end of the generated manifest |
Example
pnpx @bemedev/manifest --base-dir src --exclude "*.test.ts" --extensions .ts,.json --verboseCHANGE_LOG
Author
chlbri ([email protected])
Links
- Documentation: https://github.com/chlbri/manifest.git
License
MIT
