Skip to content

Releases: kktjs/kkt

v6.6.3

14 Feb 09:54
Compare
Choose a tag to compare

v6.6.2...v6.6.3

v6.6.2

25 Jan 12:12
Compare
Choose a tag to compare

v6.6.1...v6.6.2

  • 🐞 fix(kkt): Fix cross domain issue. 21c84b0

v6.6.1

25 Jan 10:51
Compare
Choose a tag to compare

v6.6.0...v6.6.1

  • 💄 chore: update workflows/ci.yml abc0c1e
  • 💄 chore(bundle-react-component-tsx): update tsconfig.json 75346d0
  • 🐞 fix(kkt): Fix KKT_CLEAR_CONSOLE evn invalid. c1d6d14

v6.6.0

25 Jan 09:48
Compare
Choose a tag to compare

v6.5.1...v6.6.0

  • 🌟 feat: Add override DevServerConfig handle. 2ab8df0
  • 💄 chore(example): update dependency uiw to v4.7.7 #156 d05e89f
  • 🐞 fix(kkt): Fix --no-open-browser/--no-clear-console invalid. 69bd316
  • 🌟 feat: Modify client server port. e345037

v6.5.1

23 Jan 21:19
Compare
Choose a tag to compare

v6.5.0...v6.5.1

  • 📖 doc(kkt): Update README.md ce55778
  • 💄 chore(deps): update dependency tsbb to v2.0.3 #157 8cdd541
  • 🐞 fix: The kkt command add .catch handle. 6d7cf79
  • 💄 chore(deps): update dependency tsbb to v2.0.4 #157 7a5ef42
  • 💄 chore: update scripts. fb69d39
  • 💄 chore(deps): update dependency tsbb to v2.0.5 eb1db32

v6.5.0

22 Jan 18:21
Compare
Choose a tag to compare

v6.4.0...v6.5.0

  • 📖 doc(kkt): Update README.md 71d5902
  • 🌟 feat(kkt): Enhanced devServer api. 8c22ff7
  • 💄 chore: update .github/workflows/ci.yml 3c2022c
import express from 'express';
import { ParsedArgs } from 'minimist';
import { Configuration } from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import { LoaderConfOptions, MockerAPIOptions, DevServerOptions } from 'kkt';

type KKTRC = {
  proxySetup?: (app: express.Application) => MockerAPIOptions;
-  devServer?: (config: WebpackDevServer.Configuration) => WebpackDevServer.Configuration;
+  devServer?: (config: WebpackDevServer.Configuration, options: DevServerOptions) => WebpackDevServer.Configuration;
  default?: (conf: Configuration, evn: string, options: LoaderConfOptions) => Configuration | Promise<Configuration>;
};

v6.4.0

22 Jan 17:01
Compare
Choose a tag to compare

v6.3.0...v6.4.0

  • 💄 chore: update .github/workflows/ci.yml f30b5d7
  • 🐞 fix(kkt): Update command help. b0e47db
  • 🐞 fix(kkt): Update command help. 861d554
  • 📖 doc(kkt): Update README.md b9f35e5
  • 🌟 feat(kkt): Override webpack config support promise. deba4bc
  • 🆎 type(kkt): Modify types. f48162e
  • 💄 chore:(deps): update denpendency tsbb to v2.0.2 4b0ef18
  • 💄 chore(react-component-tsx): update website/react-app-env.d.ts 3c64d18
import express from 'express';
import { ParsedArgs } from 'minimist';
import { Configuration } from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import { LoaderConfOptions, MockerAPIOptions } from 'kkt';

type KKTRC = {
  proxySetup?: (app: express.Application) => MockerAPIOptions;
  devServer?: (config: WebpackDevServer.Configuration) => WebpackDevServer.Configuration;
-  default?: (conf: Configuration, evn: string, options: LoaderConfOptions) => Configuration;
+  default?: (conf: Configuration, evn: string, options: LoaderConfOptions) => Configuration | Promise<Configuration>;
};

v6.3.0

22 Jan 10:29
Compare
Choose a tag to compare

v6.2.1...v6.3.0

  • 🐞 fix(deps): update dependency web-vitals to v1.1.0 a244baa @renovate-bot
  • 💄 chore(react-component-tsx): Update index.html 822e12a
  • 💄 chore(react-component-tsx): Update react-app-env.d.ts 55695a3
  • 🌟 feat(kkt): Add --no-clear-console args. 448aaf7
  • 📄 Merge branch 'master' of github.com:kktjs/kkt e37978f
  • 📖 doc: Update README.md 295ab41
  • 💄 chore(react-component-tsx): Update kkt config. 67ed0c5
  • 💄 chore: remove README.md 66c50d2
  • 💄 chore: Link README.md 8836155
- export const devServer = (configFunction: DevServerConfigFunction) => {
-   return (proxy: WebpackDevServer.ProxyConfigArrayItem[], allowedHost: string) => {
-     // Create the default config by calling configFunction with the proxy/allowedHost parameters
-     const config = configFunction(proxy, allowedHost);
-     // Return your customised Webpack Development Server config.
-     return config;
-   }
- }
+ export const devServer = (config: WebpackDevServer.Configuration) => {
+   // Return your customised Webpack Development Server config.
+   return config;
+ };
import express from 'express';
import { ParsedArgs } from 'minimist';
import WebpackDevServer from 'webpack-dev-server';
import { Configuration } from 'webpack';
import { LoaderConfOptions, DevServerConfigFunction, MockerAPIOptions } from 'kkt';

type KKTRC = {
  proxySetup?: (app: express.Application) => MockerAPIOptions;
-  devServer?: (configFunction: DevServerConfigFunction, evn: string) => DevServerConfigFunction;
+  devServer?: (config: WebpackDevServer.Configuration) => WebpackDevServer.Configuration;
  default?: (conf: Configuration, evn: string, options: LoaderConfOptions) => Configuration;
};

- type DevServerConfigFunction = (proxy: WebpackDevServer.ProxyConfigArrayItem[], allowedHost: string)
-    => WebpackDevServer.Configuration;
Usage: kkt [start|build|test] [--help|h]

Displays help information.

Options:

  --version, -v Show version number
  --help, -h Displays help information.
  --no-open-browser Do not open in browser.
+  --no-clear-console Do not clear the command line information.

Example:


$ kkt build
$ kkt build --app-src ./website
$ kkt start
$ kkt start --no-open-browser
+ $ kkt start --no-clear-console
$ kkt start --app-src ./website
$ kkt test

v6.2.1

21 Jan 05:24
Compare
Choose a tag to compare

v6.2.0...v6.2.1

v6.2.0

18 Jan 12:48
Compare
Choose a tag to compare

v6.1.2...v6.2.0

  • 💄 chore: update scripts. a09f42e
  • 🌟 feat: Add method for execution after service. 556840d