Skip to content

Releases: kktjs/kkt

v6.1.2

18 Jan 05:21
Compare
Choose a tag to compare

v6.1.1...v6.1.2

  • 💄 chore(@kkt/mocker-api): This package has been deprecated. b388406
  • 🆎 type: Update plugins options types. 00d7979
  • 💄 chore: update ci.yml a262b69
  • 🌟 feat: Modify devServerConfig.headers config. 0e3d83b

v6.1.1

14 Jan 09:43
Compare
Choose a tag to compare

v6.1.0...v6.1.1

  • 🌟 feat: Add devServerConfig and kktrc to return options. 8c143a1

v6.1.0

14 Jan 03:45
Compare
Choose a tag to compare

v6.0.12...v6.1.0

  • 💄 chore: update ci.yml 780d3bd
  • 💄 chore: Fix npm publish errors. 7db27f8
  • 🐞 fix(deps): update dependency uiw to v4.7.5 7628066 @renovate-bot
  • 📖 doc: Update README.md b6c08e6
  • 📄 Merge branch 'master' of github.com:kktjs/kkt 7041120
  • 💄 chore: update ci.yml b2fe758
  • 💄 chore: Add sanbox config. 58454db
  • 💄 chore: fix scripts errors. 245c40b
  • 💄 chore: fix scripts errors. c695e47
  • 🐞 fix(deps): update dependency css-minimizer-webpack-plugin to v1.2.0 144095e @renovate-bot
  • 💄 chore: Add prettier config. 15ae00f
  • 💄 chore: Code formatting. 44fee6f
  • 💄 chore(react-component-tsx): Add prettier config. 5af37a4
  • 💄 chore: update .gitignore 60a3a34
  • 💄 chore: update ci.yml fdac6ca
  • 💄 chore: update ci.yml c3c96ac
  • 💄 chore: update ci.yml 09647cf
  • 💄 chore: update ci.yml 2a829a6
  • 💄 chore(deps): update dependency electron to v11.2.0 836b260 @renovate-bot
  • 💄 chore: update ci.yml 5cd595f
  • 📖 doc: Update README.md 25e3fbd
  • 🌟 feat: The kkt command add [--version|v] 113c055
  • 💄 chore: update package.json 5c16392

v6.0.12

12 Jan 02:25
Compare
Choose a tag to compare

v6.0.11...v6.0.12

  • 💄 chore: remove classnames dependency. ef89be7
  • 🐞 fix(deps): update dependency uiw to v4.7.2 b90838a
  • 🐞 fix(deps): update dependency react-router-dom to v5.2.0 a7a7410
  • 🐞 fix(deps): update dependency react-redux to v7.2.2 cccc7ab
  • 🐞 fix(deps): update dependency axios to v0.21.1 c10d2a3
  • 🐞 fix(deps): update dependency react-dynamic-loadable to v2.0.5 #128 7e4d106
  • 📄 Merge branch 'master' of github.com:kktjs/kkt ddefdb4
  • 📄 update workflows config. 49631fa
  • 📄 update README.md 54b5301
  • 🐞 fix(deps): update dependency @types/fs-extra to v9.0.6 7bdecf4
  • 💄 chore(example): Modify eslint config. 8fd4451
  • 📖 doc: Update README.md 4bb6cd2
  • 💄 chore(exmaple): Update peerDependencies. 6b69f34
  • 💄 chore: update public/index.html 1f63849
  • 📖 doc: Update README.md db6c6c0
  • 💄 chore: Add CodeSandbox config. e0a94e1
  • 💄 chore(basic): Fix basic example. 717cecb
  • 💄 chore(markdown): Add CodeSandbox config. 7d2d86b
  • 💄 chore(rematch-tsx): Add CodeSandbox config. 6c41318
  • 💄 chore(rematch-uiw): Add CodeSandbox config. 86d9635
  • 💄 chore(deps): update dependency react-router-dom to v5.2.0 8038fba
  • 💄 chore(rematch-hash-router): Add CodeSandbox config. eeb10c8
  • 💄 chore(rematch-hash-router): Update README.md. 7e899c1
  • 💄 chore(scss): Add CodeSandbox config. e52b805
  • 💄 chore(stylus): Add CodeSandbox config. a25ba60
  • 💄 chore(typescript): Add CodeSandbox config. 9c2a011
  • 💄 chore(uiw): Add CodeSandbox config. 2ded0f6
  • 📖 doc: Update README.md 0ae5b08
  • 💄 chore(deps): update dependency @types/react-redux to v7.1.15 eaa9b83
  • 💄 chore(deps): update dependency @types/react-router-dom to v5.1.7 db526fe
  • 💄 chore: update ci.yml 44063fe
  • 📄 Merge branch 'master' of github.com:kktjs/kkt 7ea91a7
  • 💄 chore: update ci.yml 2e4ce3a
  • 💄 chore: update ci.yml b2c1415
  • 💄 chore: update ci.yml 54f1bc0
  • 💄 chore: update ci.yml 30d0448
  • 🐞 fix: windows 环境 路径覆盖错误 eaae043 @liaoyinglong

v6.0.11

30 Dec 04:25
Compare
Choose a tag to compare

老的版本 v5 是将 create-react-app 使用 TypeScript 重新实现了一遍,并添加了配置功能支持,维护成本越来越高,最终 v6 参考 @timarney 开发的 react-app-rewired 已相同的方式实现,虽然在 mocker-api 中使用过类似的玩法,但是没有想到去更改缓存中的内容来实现添加配置。

v5.6.1...v6.0.11

配置支持 .kktrc.js.kktrc.ts,也可以不配置,将是少量更改的 create-react-app 玩儿法是一样的。

kkt 5.x to 6.x

设置入口目录

- "doc": "cross-env ENTRYDIR=website kkt build",
+ "doc": "kkt build --app-src ./website",

- "start": "cross-env ENTRYDIR=website kkt start",
+ "start": "kkt start --app-src ./website",

配置变得简单

配置依然支持 kktrc.jskktrc.ts 两种配置。

- export const moduleScopePluginOpts = [];
- export const loaderOneOf = [];
- export const mocker = {};
- export function loaderDefault(loader) {
-   return loader;
- }
- export default (conf: webpack.Configuration, options: OptionConf, webpack: typeof webpack) => {
-   return conf;
- }

+ export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
+   return conf;
+ }

+ 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 config;
+   }
+ }

Support for Less.

- export const loaderOneOf = [
-   require.resolve('@kkt/loader-less'),
- ];

+ import lessModules from '@kkt/less-modules';
 
export default (conf, env, options) => {
+   conf = lessModules(conf, env, options);
   return conf;
}

Support for scss.

- export const loaderOneOf = [
-   require.resolve('@kkt/loader-scss'),
- ];

Support for stylus.

- export const loaderOneOf = [
-   require.resolve('@kkt/loader-stylus')
- ];
+ import stylusModules from '@kkt/stylus-modules';

export default (conf, env, options) => {
+  conf = stylusModules(conf, env, options);
  return conf;
}

Mocker API

- export const mocker = {
-   path: path.resolve('./mocker/index.js'),
-   option: {
-     proxy: {
-       '/repos/(.*)': 'https://api.github.com/',
-     },
-     changeHost: true,
-   },
- }

+ export const proxySetup = () => {
+   return {
+     path: path.resolve('./mocker/index.js'),
+     option: {
+       proxy: {
+         '/repos/(.*)': 'https://api.github.com/',
+       },
+       changeHost: true,
+     }
+   }
+ }

How to kkt your create-react-app project

npm install kkt --save-dev
"scripts": {
-   "start": "react-scripts start",
+   "start": "kkt start",
-   "build": "react-scripts build",
+   "build": "kkt build",
-   "test": "react-scripts test",
+   "test": "kkt test",
    "eject": "react-scripts eject"
}
# Start the Dev Server
$ npm start
# Build your app
$ npm run build

v5.6.1

07 Apr 01:11
Compare
Choose a tag to compare
  • d989d7a - chore(deps): bump acorn from 6.4.0 to 6.4.1 (#9) - @dependabot[bot]
  • 8ad93d0 - fix(pkg): Fix type errors.
  • 1c6ad34 - chore(release): v5.6.1
  • 6af45bd - feat: Add kktrc type file.
  • a4c58e1 - chore(release): v5.6.0
  • 946e80e - fix(example): Upgrade kkt configs.
  • 3d0dcb9 - feat: Handle config of .ts format more elegantly.
  • 36d908f - chore(release): v5.5.5
  • 23f340b - doc: Update document.
  • 9726bc0 - chore: Update bundle example.
  • a34434e - feat(kkt): Add MiniCssExtractPlugin in the conf options.
  • c8ea895 - chore(release): v5.5.4
  • 9edb028 - chore(release): v5.5.3
  • 932b667 - feat(kkt): Command add openBrowser option.
  • cb330bd - chore(release): v5.5.2
  • 32d69ca - chore: Merge kktjs/kkt-next code.
  • 29c8342 - chore(release): v5.5.1
  • cbe0a3e - chore: Modify workbox-webpack-plugin version.
  • 7959c96 - chore: Modify lerna config.
  • 6be9d83 - chore(release): v5.5.0
  • 00a1405 - chore: Upgrade webpack config.
  • c7b2944 - fix(@kkt/plugin-bundle): Fix typescript type errors.
  • 71cd19b - chore: Upgrade scss dependencies.
  • 9c8ce85 - chore: Upgrade less dependencies.
  • 97fff1c - Modify kkt folder name.
  • 9b2b450 - chore(release): v5.4.3
  • 76bde72 - chore: Remove changelog.
  • 3c983e3 - chore: Use @kkt/config-loader load config.
  • 9e2f89f - fix: Fix npm WARN.
  • d4420ed - chore: Modify repository url.
  • ec5f0cd - chore(kkt): Renamed packages/kkt/ => packages/kkt-core/
  • d390946 - feat(@kkt/config-loader): Add a new package.
  • de97dc0 - chore(release): v5.4.2
  • a88cb0d - chore(example): Update .kktrc.js
  • e176a7d - feat: Support mocker-api.
  • d0c03fa - chore(release): v5.4.1
  • bed6947 - Fix issue cauesd by jest dependency upgrade.
  • f21250f - chore(release): v5.4.0
  • 384975c - chore: Update dependencies.
  • 4db3a08 - Create LICENSE (#2)
  • cf29e8f - chore(release): v5.3.0
  • 4c454e2 - feat: Add @kkt/plugin-bundle plugin.
  • 63ad2a9 - chore: Modify typescript config.
  • 63ad2a9 - chore: Modify typescript config.
  • 4694e78 - doc: Modify document.
  • db6fc40 - chore: Add watch:kkt script.
  • 46fc464 - chore(kkt): Modify watch script in package.json
  • 7e5843a - chore(release): v5.2.2
  • 3264f89 - chore: Modify lerna config.
  • 4af2584 - doc(loader-less): Add README.md
  • 8a415f2 - Updte README.md
  • f93906f - chore(release): v5.2.1
  • 0f3b728 - chore: Package contains README.md
  • 1facdbc - chore: Modify publish script in package.json
  • b209b59 - chore: Modify lerna config.
  • 65e0e44 - fix: Remove private in package.json
  • c3a28b3 - chore: Modify lerna config.
  • 8261286 - chore: Add publish script to package.json
  • ecee41f - chore: Use lerna management package.
  • eb0d132 - example: Add ESLint config to the example.
  • c93d231 - type(ManifestPlugin): Modify the Plugin options types.
  • a8b194f - feat: Add eslint for webpack config.
  • 60ac121 - Upgrade react-dev-utils v9.1.0 to v10.0.0
  • 91563a0 - Modify resolve alias for webpack config.
  • 0cdaf17 - Modify ManifestPlugin optiosn.
  • 00c640c - Upgrade terser-webpack-plugin v1.4.1 to v2.2.1
  • 4843491 - Upgrade dependencies.
  • e540c7e - doc: Update document.
  • 090de79 - released v5.0.3
  • e7caa2c - chore: Upgrade dependencies.
  • ea775a7 - chore: Modify the url kktjs/kkt to kktjs/kkt-next.
  • a5d2b8e - chore(kkt-loader-stylus): released v1.0.5
  • 9981250 - chore(kkt-loader-scss): released v1.0.5
  • 17f25f5 - chore(kkt-loader-less): released v1.0.6
  • f14f263 - chore: Modify the file directory.
  • 61f0e16 - chore(kkt): Upgrade dependencies.
  • 945a495 - chore(example): Upgrade dependencies.
  • ff9df77 - chore(kkt-loader-stylus): Upgrade dependencies.
  • cf9b985 - chore(kkt-loader-scss): released v1.0.4.
  • ef0f6a1 - chore(kkt-loader-scss): Upgrade dependencies.
  • b33329a - chore(kkt-loader-scss): Upgrade dependencies.
  • f729968 - chore(kkt-loader-less): Add TypeScrit config.
  • afe89c3 - chore(kkt-loader-less): Upgrade dependencies.
  • 071fd93 - chore: Update badges.
  • 437116f - released v5.0.0
  • a60ca9b - released v5.0.0-alpha.12
  • 477f1e4 - example(react-component-tsx): Add peerDependencies in package.json
  • ef85254 - fix: Fix moduleScopePluginOpts optiosn issue.
  • d244694 - Add compile-less-cli devDependencies
  • 3834bd3 - example: Upgrade dependencies.
  • 429b3df - released v5.0.0-alpha.11
  • 893bd06 - chore(example): Show README.md content.
  • 5bd27cd - feat: kktrc add config options moduleScopePluginOpts.
  • f4bc607 - example(react-component-tsx): Upgrade tsbb v1.3.3 to v1.3.4
  • e1179f1 - released v5.0.0-alpha.10
  • a69fad3 - example: Add react-component-tsx example.
  • ecd56ba - chore: Support for changing the entry.
  • b2172d6 - feat: Add APPSRC to the environment variable.
  • f00230d - feat: Modify webpack config.
  • 848647b - Upgrade dependencies.
  • 1b293c0 - Fix get public url error.
  • 8a363a0 - chore(example): Upgrade react component example.
  • 3066182 - Update document.
  • 97855eb - Fix: Fix with copy public directory errors of issue.
  • 3c02827 - feat: Build command to add checkRequiredFiles option.
  • a9560ce - chore: Update bundle example.
  • d728230 - Fix console errors.
  • b486a96 - feat(Example): Add electron example.
  • 7452b91 - Fix start script port parameter issue.
  • b83668e - chore: Update dependencies
  • 1e354ba - chore(babel): Update babel loader config.
  • 626f1fc - example(TypeScript): Update example config.
  • 4eff3ab - Update example.
  • f722667 - feat: Support custom loader.
  • 13d280d - feat: Add stylus/less/scss loader package.
  • d1b116e - Modify buidle example config.
  • 0f285f3 - Add chunkHtml plugin.
  • 0d0d848 - Add react-component example.
  • 31d7b5f - Add bundle example.
  • 2d254f4 - Support custom command.
  • efce061 - Update example.
  • fb0d47e - Add uiw example.
  • c1936fb - Modify jest config.
  • b8492da - Update gitignore
  • 2c30a2f - example: Add kktrc conf.
  • 0696e51 - Support TS conf file.
  • f5e41ec - Add less & scss example.
  • 2e74b9d - init project.
  • d2bb00d - Bump eslint-utils from 1.3.1 to 1.4.2 (#7) - @dependabot[bot]
  • eab8c30 - Bump lodash.template from 4.4.0 to 4.5.0 (#6) - @dependabot[bot]
  • 02cf0ad - Bump lodash from 4.17.11 to 4.17.15 (#5) - @dependabot[bot]

v4.2.0

28 Jul 16:49
Compare
Choose a tag to compare
  • 💄 Transfer ownership to kktjs. 95bdcea
  • 📖 Update README.md 0edde2f
  • 🐞 chore: The Browserslist Error error issue was resolved. #3 fff94f1

v4.1.2

18 Jun 09:29
Compare
Choose a tag to compare
released v4.1.2

v4.1.1

13 Jun 18:29
Compare
Choose a tag to compare
v4.1.1

v4.0.0

10 Jun 09:00
Compare
Choose a tag to compare
released v4.0.0