UNPKG

@gdjiami/cli

Version:

CLI for build front end project.

226 lines (225 loc) 5.53 kB
{ "$id": "jm-cli-options", "$schema": "http://json-schema.org/draft-07/schema", "description": "jm-cli options", "type": "object", "properties": { "proxy": { "description": "proxy server settings", "anyOf": [{ "type": "object", "patternProperties": { ".*": { "anyOf": [{ "type": "string" }, { "$ref": "#/definitions/proxyConfig" } ] } } }, { "type": "array", "items": { "$ref": "#/definitions/proxyConfigWithContext" } } ] }, "dll": { "description": "webpack dll plugin config", "type": "object", "properties": { "include": { "type": "array", "items": { "type": "string" }, "default": null }, "exclude": { "type": "array", "items": { "type": "string" }, "default": null } }, "default": null }, "electronExternalsWhitelist": { "description": "webpack-node-externals whitelist for electron main build", "type": "array", "items": { "type": "string" }, "default": null }, "importPlugin": { "description": "babel-import-plugin settings", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/importPluginConfig" } }, { "$ref": "#/definitions/importPluginConfig" } ] }, "enableDuplicatePackageCheck": { "description": "enable duplicate-package-checker-webpack-plugin", "type": "boolean", "default": false }, "enableCircularDependencyCheck": { "description": "enable circular-dependency-plugin'", "type": "boolean", "default": false }, "enableDllInProduction": { "description": "enable DllPlugin in production mode", "type": "boolean", "default": false }, "enableESlint": { "description": "enable ESlint check", "type": "boolean", "default": true }, "enableTypescriptCheck": { "description": "enable Typescript check", "type": "boolean", "default": true }, "enableTypescriptCheckInProduction": { "description": "enable Typescript check in production", "type": "boolean", "default": true }, "enableTypescriptAsyncCheck": { "description": "enable Typescript async check", "type": "boolean", "default": false }, "enableESlintInProduction": { "description": "enable eslint in production, development mode is force enabled", "type": "boolean", "default": false }, "electron": { "description": "enable electron mode", "type": "boolean", "default": false }, "ie8": { "description": "enable IE8 mode", "type": "boolean", "default": false }, "offline": { "description": "enable offline mode", "type": "boolean", "default": false }, "enableOfflineInDev": { "description": "enable offline mode in development", "type": "boolean", "default": false }, "offlineOptions": { "description": "offline-plugin options. see: https://github.com/NekR/offline-plugin/blob/master/docs/options.md", "type": "object" }, "inject": { "description": "inject entry module", "type": "object" }, "happypack": { "description": "(deprecated) happy pack mode, default is true when cpus cores > 1", "type": "boolean", "default": true }, "useBuiltIns": { "description": "babel-env-preset useBuiltIns option", "enum": [false, "usage", "entry"], "default": "usage" }, "ignoreBrowserlistInDevelopment": { "description": "ignore development in development", "type": "boolean", "default": true }, "alias": { "description": "webpack module alias", "type": "object", "default": null } }, "definitions": { "proxyConfig": { "type": "object", "required": ["target"], "properties": { "target": { "type": "string" }, "secure": { "type": "boolean" }, "ws": { "type": "boolean" }, "changeOrigin": { "type": "boolean" } } }, "proxyConfigWithContext": { "allOf": [{ "type": "object", "required": ["context"], "properties": { "context": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" }, "minItems": 1 } ] } } }, { "$ref": "#/definitions/proxyConfig" } ] }, "importPluginConfig": { "type": "object", "required": ["libraryName"], "properties": { "libraryName": { "type": "string" }, "style": { "enum": ["css", true] }, "libraryDirectory": { "type": "string" }, "camel2DashComponentName": { "type": "boolean" } } } } }