Skip to content

Commit

Permalink
chore(deps): update dependency kkt to v7.
Browse files Browse the repository at this point in the history
kktjs/kkt#198
Upgrade react-scripts to v5, Support Webpack 5
  • Loading branch information
jaywcjlove committed Jan 12, 2022
1 parent 913aa98 commit a7ae18e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 19 deletions.
24 changes: 23 additions & 1 deletion .kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,33 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
);
conf.plugins!.push(
new MonacoWebpackPlugin({
languages: [],
languages: ['json'],
}),
);
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
monacoeditor: {
test: /[\\/]node_modules[\\/](monaco-editor)[\\/]/,
name: 'monaco-editor-vendor',
chunks: 'all',
},
codemirror: {
test: /[\\/]node_modules[\\/](@codemirror)[\\/]/,
name: 'codemirror-vendor',
chunks: 'all',
},
},
},
};
}
return conf;
};
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"homepage": "https://jaywcjlove.github.io/nginx-editor",
"scripts": {
"prepare": "npm run build",
"doc": "GENERATE_SOURCEMAP=false kkt build --app-src ./website",
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"watch": "tsbb watch",
"build": "tsbb build",
"get:nginx": "ts-node --project scripts/tsconfig.json scripts/directives.ts",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -41,28 +42,29 @@
"monaco-editor-nginx"
],
"devDependencies": {
"@kkt/less-modules": "6.11.0",
"@kkt/raw-modules": "6.11.0",
"@kkt/scope-plugin-options": "6.11.0",
"@uiw/react-monacoeditor": "3.4.4",
"@kkt/less-modules": "7.0.5",
"@kkt/raw-modules": "7.0.5",
"@kkt/scope-plugin-options": "7.0.5",
"@uiw/react-monacoeditor": "3.4.7",
"@types/turndown": "5.0.1",
"@types/react": "17.0.24",
"@types/react-dom": "17.0.9",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.1",
"cheerio": "1.0.0-rc.10",
"compile-less-cli": "1.8.8",
"domhandler": "4.2.2",
"compile-less-cli": "1.8.11",
"domhandler": "4.3.0",
"node-fetch": "2.6.2",
"husky": "7.0.2",
"kkt": "6.11.0",
"husky": "7.0.4",
"kkt": "7.0.5",
"lint-staged": "11.1.2",
"monaco-editor-webpack-plugin": "4.2.0",
"prettier": "2.4.1",
"pretty-quick": "3.1.1",
"monaco-editor-webpack-plugin": "7.0.1",
"prettier": "2.5.1",
"pretty-quick": "3.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"source-map-explorer": "2.5.2",
"turndown": "7.1.1",
"ts-node": "10.2.1",
"tsbb": "3.3.0"
"ts-node": "10.4.0",
"tsbb": "3.5.4"
},
"eslintConfig": {
"extends": [
Expand Down
1 change: 0 additions & 1 deletion src/react-app-env.d.ts

This file was deleted.

1 comment on commit a7ae18e

@vercel
Copy link

@vercel vercel bot commented on a7ae18e Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.