Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hungtcs/ts-json-schema-generator-webpack-plugin
Auto generate JSON schema, Power by https://github.com/vega/ts-json-schema-generator
https://github.com/hungtcs/ts-json-schema-generator-webpack-plugin
json-schema webpack webpack-plugin
Last synced: about 1 month ago
JSON representation
Auto generate JSON schema, Power by https://github.com/vega/ts-json-schema-generator
- Host: GitHub
- URL: https://github.com/hungtcs/ts-json-schema-generator-webpack-plugin
- Owner: hungtcs
- License: mit
- Created: 2022-06-28T06:58:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T08:50:39.000Z (over 2 years ago)
- Last Synced: 2024-11-16T11:47:04.270Z (about 2 months ago)
- Topics: json-schema, webpack, webpack-plugin
- Language: TypeScript
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TS JSON Schema Generator Webpack Plugin
Auto generate JSON schema after build or after file change in watching mode.
## Installation
```shell
npm install -D ts-json-schema-generator-webpack-plugin
```## Configuration
Note: **Do not support tsconfig**
```typescript
export interface JSONSchemaGenerateWebpackPluginOptions extends Omit {
path: string;
output: string;
}
```More options see:
## Example
```typescript
import JSONSchemaGenerateWebpackPlugin from 'ts-json-schema-generator-webpack-plugin';module.exports = {
// ...
plugins: [
// ...
new JSONSchemaGenerateWebpackPlugin({
type: 'Config',
path: path.join(__dirname, './src/config/index.ts'),
topRef: false,
output: 'config.schema.json',
additionalProperties: true,
}),
],
};
```