ko 6.6.1-beta.2 → 6.6.1

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.
@@ -15,12 +15,19 @@ class Dev extends factory_1.default {
15
15
  }
16
16
  get devServerConfig() {
17
17
  const { serve, publicPath } = this.service.config;
18
- const { host, port, proxy, staticPath, historyApiFallback = false } = serve;
18
+ const { host, port, proxy, client = {
19
+ overlay: {
20
+ errors: true,
21
+ warnings: false,
22
+ runtimeErrors: true,
23
+ },
24
+ }, staticPath, historyApiFallback = false, } = serve;
19
25
  return {
20
26
  port,
21
27
  host,
22
28
  hot: true,
23
29
  proxy,
30
+ client,
24
31
  static: {
25
32
  directory: staticPath,
26
33
  watch: true,
@@ -28,13 +35,6 @@ class Dev extends factory_1.default {
28
35
  },
29
36
  setupExitSignals: false,
30
37
  allowedHosts: 'all',
31
- client: {
32
- overlay: {
33
- errors: true,
34
- warnings: false,
35
- runtimeErrors: true,
36
- },
37
- },
38
38
  historyApiFallback,
39
39
  };
40
40
  }
package/lib/cli.js CHANGED
File without changes
package/lib/types.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Pattern } from 'copy-webpack-plugin';
2
2
  import { Plugin } from 'postcss';
3
3
  import { IKeys, IOpts } from 'ko-lints';
4
4
  import { IOpts as AutoPolyfillsWebpackPluginOptions } from '@dtinsight/auto-polyfills-webpack-plugin';
5
+ import { ClientConfiguration } from 'webpack-dev-server';
5
6
  export type IOptions = {
6
7
  /**
7
8
  * The current working directory.
@@ -81,6 +82,7 @@ export type IOptions = {
81
82
  autoPolyfills: boolean | AutoPolyfillsWebpackPluginOptions;
82
83
  /**
83
84
  * Options for the development server.
85
+ * Docs url: https://webpack.js.org/configuration/dev-server/
84
86
  * @param {{proxy?: Record<string, any>, host: string, port: number, staticPath?: string, historyApiFallback?: any, compilationSuccessInfo?: { messages: string[]; notes?: string[] }}}
85
87
  */
86
88
  serve: {
@@ -88,6 +90,7 @@ export type IOptions = {
88
90
  host: string;
89
91
  port: number;
90
92
  staticPath?: string;
93
+ client?: boolean | ClientConfiguration | undefined;
91
94
  historyApiFallback?: any;
92
95
  compilationSuccessInfo?: {
93
96
  messages: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ko",
3
- "version": "6.6.1-beta.2",
3
+ "version": "6.6.1",
4
4
  "description": "build & lint library",
5
5
  "keywords": [
6
6
  "ko",
@@ -34,15 +34,9 @@
34
34
  "files": [
35
35
  "lib/*"
36
36
  ],
37
- "scripts": {
38
- "prepublishOnly": "rm -rf lib && tsc",
39
- "debug": "tsc -w --sourceMap",
40
- "test": "jest",
41
- "build": "tsc"
42
- },
43
37
  "dependencies": {
44
38
  "@babel/core": "^7.18.0",
45
- "@dtinsight/auto-polyfills-webpack-plugin": "^2.0.0",
39
+ "@dtinsight/auto-polyfills-webpack-plugin": "2.0.0",
46
40
  "@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
47
41
  "@parcel/css": "^1.12.2",
48
42
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
@@ -102,5 +96,11 @@
102
96
  },
103
97
  "engines": {
104
98
  "node": ">=14"
105
- }
106
- }
99
+ },
100
+ "scripts": {
101
+ "debug": "tsc -w --sourceMap",
102
+ "test": "jest",
103
+ "build": "tsc"
104
+ },
105
+ "readme": "# ko\nEnglish | [简体中文](./README_CN.md)\n## Simple, yet powerful, tool for managing your react applications. \n\n<a href=\"https://www.npmjs.com/package/ko\"><img alt=\"NPM Status\" src=\"https://img.shields.io/npm/v/ko.svg?style=flat\"></a>\n\n## Features\n\n* Support building applications on top of **webpack v5** and **esbuild**\n* Customize ko to work exactly the way you need it for your applications \n* Built-in popular linting tools to lint your source code\n* Built-in support typescript\n\n## Installation\n\nYou can install ko using npm, yarn or pnpm:\n``` bash\nnpm install ko --save-dev\n# or\nyarn add ko --dev\n# or \npnpm add ko --save-dev\n```\n\n## Documents\n* [Introduction](https://dtstack.github.io/ko/zh-CN/docs/current/introduction)\n* [Getting Started](https://dtstack.github.io/ko/zh-CN/docs/current/getting-started)\n* [FAQ](https://dtstack.github.io/ko/zh-CN/docs/current/FAQ)\n\n## Contributing\n\nWe'd love to have your helping hand on `ko`! See [CONTRIBUTING](../../CONTRIBUTING.md) for more information on how to get started.\n\n## License\n\nCopyright © DTStack. All rights reserved.\n\nLicensed under the MIT license.\n"
106
+ }