Hung-Han (Henry) Chen
a7a7675a3b
Use stats: minimal
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:50 +08:00
Hung-Han (Henry) Chen
4e02f943f3
Correction of chuck name
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:50 +08:00
Hung-Han (Henry) Chen
ba6acfb20a
Remove context: __dirname as its the default
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:50 +08:00
Hung-Han (Henry) Chen
cb1a3bc80d
Silence webpack-extension-api output
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:49 +08:00
Hung-Han (Henry) Chen
bcfa00aea5
Add splitChunks plugin and its configs
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:49 +08:00
Hung-Han (Henry) Chen
8dfe991adc
Corret typos in logger.info
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:49 +08:00
Hung-Han (Henry) Chen
6079235fb6
Remove electron-reload, replace with more light-weight electron-reload
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:22:47 +08:00
Hung-Han (Henry) Chen
63ce210c9a
Add missing node-loader for webpack-extension-api
2021-01-07 11:21:47 +08:00
Hung-Han (Henry) Chen
edca90f6cc
Only enable minimize in production
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:47 +08:00
Hung-Han (Henry) Chen
40760b05e7
Add persistant chache for extension-api
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:47 +08:00
Hung-Han (Henry) Chen
6aec421dc0
Enable persistent cache in renderer/main
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:47 +08:00
Hung-Han (Henry) Chen
c7cf786380
Enable progress bar
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:47 +08:00
Hung-Han (Henry) Chen
b99c3f7df8
Upgrade weboack-cli to 4.2, webpack-dev-server to 4.0.0-beta0, remove 'sockjs' redirect as wds4 uses ws instead
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:44 +08:00
Hung-Han (Henry) Chen
08fa0c6d63
Replace buggy mac-ca dep with own injectMacCA()
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:05 +08:00
Hung-Han (Henry) Chen
e510ec3880
Remove @types/progress-bar-webpack-plugin
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:04 +08:00
Hung-Han (Henry) Chen
37f610df1c
Rename webpack.extensions.ts to webpack.extension-api.ts to avoid confusion
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:21:02 +08:00
Hung-Han (Henry) Chen
02b4703c34
Fix webpack warning require.extensions is not supported by webpack. Use a loader instead.
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:20:10 +08:00
Hung-Han (Henry) Chen
78400e51fc
Add babel-loader to fxi lingui related issues
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:20:10 +08:00
Hung-Han (Henry) Chen
d569c104ba
Set minimize: false and transpileOnly: true to speed up build, as the output will not be used in production/runtime
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:20:09 +08:00
Hung-Han (Henry) Chen
de17ecb13f
Fix webpack warning require.extensions is not supported by webpack. Use a loader instead.
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:20:09 +08:00
Hung-Han (Henry) Chen
7154f5b6fa
Pin @babel/runtime at v7.12.5 avoid 'Module not found' errors
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:20:07 +08:00
Hung-Han (Henry) Chen
d660760c70
Remove warning DeprecationWarning: config.stats.warningsFilter is deprecated in favor of config.ignoreWarnings
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:19:37 +08:00
Hung-Han (Henry) Chen
1b6e37883e
Remove library:'' as webpack throws configuration[0].output.library should be an non-empty string
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:39 +08:00
Hung-Han (Henry) Chen
6829da8fb6
Upgrade html-webpack-plugin to v5 to avoid DeprecationWarning
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:36 +08:00
Hung-Han (Henry) Chen
2413938524
Enbale eval-source-map for development for faster recompiling
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:10 +08:00
Hung-Han (Henry) Chen
9ccc9bf790
Remove TerserPlugin options .cache which is not valid in v5, remove parallel:true which is default, remove sourceMap: true as should be enabled via devtool
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:10 +08:00
Hung-Han (Henry) Chen
6e4b7fe2f2
Adding back @types/mini-css-extract-plugin @types/terser-webpack-plugin due to tsc warnings
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:10 +08:00
Hung-Han (Henry) Chen
a0ccc90acd
Upgrade terser-webpack-plugin to v5.0.3 and remove @types/terser-webpack-plugin (types already built-in)
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:09 +08:00
Hung-Han (Henry) Chen
174faaef0f
Remove ProgressBarPlugin
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:09 +08:00
Hung-Han (Henry) Chen
c196ae9679
Upgrade mini-css-extract-plugin to v1.3.1 and remove @types/mini-css-extract-plugin (types already built-in)
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:18:06 +08:00
Hung-Han (Henry) Chen
af3a80db42
Remove progress-bar-webpack-plugin
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:17:14 +08:00
Hung-Han (Henry) Chen
dc591e4f2e
Upgrade webpack to v5, ts-loader to v8, webpack-node-externals to v2
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2021-01-07 11:17:10 +08:00
chh
f6a88b386f
Add <BottomBar /> support rendering if item is a function ( #1606 )
...
* Support rendering if item is a function
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-12-02 17:49:12 +08:00
chh
997fb22d80
Add section for extension testing ( #1576 )
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-30 21:58:04 +08:00
chh
95d7ff847e
Use webpack instead of tsc to output extension-api.ts ( #1499 )
...
* Use webpack instead of tsc to output extension-api.ts
* Move tsconfig.extension.json into ts-loader's compilerOptions
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-26 16:12:53 +08:00
chh
b94e523ad5
Add documentation on how to use Lens Extension Generator ( #1411 )
...
* Add generator docs
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* 'Welcome' > 'You are welcome to ...'
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* Add missing backslash
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* Move Generator section to Extension Guides
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-24 16:38:43 +02:00
chh
3eeb395a78
Remove hard-source-webpack-plugin ( #1305 )
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-10 12:13:01 +02:00
chh
85f0ef8c2e
Add webpack hot-reload/cache plugins to improve Lens DX ( #1250 )
...
* Add webpack-dev-server (for hot module replacement) to serve statics, add HardSourceWebpackPlugin to improve re-compiling speed
* Serve statics using webpack-dev-server instead of lens-proxy, redirect request of Lens.html/Lens.js to webpack-dev-server
* Add react-refresh-webpack-plugin and its dep for hot-reload
* Add hot-reload plugin, and make proxy redirects requests to webpackdevserver
* Add hard-source webpack plugin to main process
* Remove parameter 'path' of handleStaticFile
* Upgarde webpack to v4 latest stable
* Fix build error: plugins shouldnt be null
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-09 21:04:41 +08:00
chh
15030f5ce9
Remove PR auto labler ( #1272 )
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-09 11:58:20 +02:00
chh
ea155de6e4
Docs: extension testing ( #1264 )
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-06 16:29:43 +02:00
chh
88a550fbda
Add if to only run labler on lens own repo but not fork ( #1221 )
...
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-04 15:43:17 +02:00
chh
484de2ec21
Add +/- buttons in scale deployment popup screen ( #1191 )
...
* Add @testing-library/jest-dom and @testing-library/react for writing test cases
* Make eslint check __mocks__/*.ts files
* Mock electron.ipcRenderer.on to prevent errors in React compoment test cases
* Mock <Trans /> from @lingui/macro as a component simplely returns children components
* Use optional chaining operator (?.) to avoid TypeError: Cannot read property 'replicas' of undefined
* Add jest-fetch-mock for mocking global.fetch, activate for all test cases in jest.setup.ts
* Add basic tests for <DeploymentScaleDialog /> to ensure it initialises/renders without errors
* Add +/- button for changing desired replicas, and its test cases
* Adjust the styles of +/- buttons container to make sure it aligns with the slider
* Refactor after rebase from master
* Use var defined in vars.scss
* Add flex align-center to slider-container and remove margin-top: -4px
* Use <Icon /> to replace <i/>
* Add flex gaps to plus-minus-container
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-03 20:30:36 +08:00
chh
ab5885f0e1
Add actions/labeler for auto label PRs ( #1193 )
...
* Add labler github action for auto labeling of PRs
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* Add new label area/ci
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* Auto label PR when changes on .azure-pipelines.yml and docs/**/*
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
* Typo READEME.md > README.md
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com >
2020-11-02 21:37:14 +08:00