1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

4105 Commits

Author SHA1 Message Date
Iku-turso
1755c498de chore: Make linkable push happen automatically for development
Note that because lerna-running the non-cached script "linkable-push"
it gets run only when required, and after its dependency script "build"
is ran.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-06 11:55:52 +03:00
Iku-turso
b408d5693d chore!: Make linkable-push opt-in for shared build scripts
This is because linkable-push is a non-deterministic side-effect, and
thus breaks fundamentals of nx-cacheing. Running it elsewhere in later
commit will give us best-of-both-worlds, where builds get cached, and
linkable-push still gets run automatically when required.

BREAKING CHANGE: Add "new LinkablePushPlugin()" in your
"plugins" of webpack.config to restore automatic linkable-push when
using "lens-webpack-build", "lens-webpack-build --watch" or just
"webpack".

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-06 11:55:52 +03:00
Iku-turso
aac6245e8c chore: Fix bad paths for yalc in package.jsons
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-06 11:03:21 +03:00
Iku-turso
37306e70a6 chore: Fix incorrect build-dependencies
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-05 10:27:07 +03:00
Iku-turso
2cde53acf7 chore: Make build scripts for dev not stream, as that's just noise
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 16:54:49 +03:00
Iku-turso
cdacd158e8 chore: Remove duplication from an NPM-script
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 16:52:39 +03:00
Iku-turso
e50daa3279 chore: Fix broken builds preventing start of "dev"
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 15:51:28 +03:00
Iku-turso
2a06577c4b chore: Make package "open-lens" cache properly
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 15:38:05 +03:00
Iku-turso
381caf654a fix: Make build pass by permitting larger bundle sizes for packages
To check that these bundles need to be closer to half a meg will be
checked elsewhere.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 15:24:41 +03:00
Iku-turso
9f68169f08 fix: Make the shared build script return non-zero status on errors
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 14:54:39 +03:00
Iku-turso
801e8c6229 chore: Make dev build not bail on failures
The failures are more convenient to fix using build:dev:watch anyway.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 13:59:08 +03:00
Iku-turso
2bf0bc8e33 chore: Add escape-hatch scripts to deal with probable stale build caches
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2023-06-02 13:57:09 +03:00
Iku-turso
c685c1f340 chore: Separate scripts for building and watching in development
With this, a dev can more easily understand intent of different scripts,
and choose the most fitting one for his use-case. Eg. "build:dev:watch"
is very fast to start, when the dev knows that everything is already
properly built.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 13:53:31 +03:00
Iku-turso
74e027c2c8 chore: Make default output of build scripts explicit
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 12:25:50 +03:00
Iku-turso
81b9b4483b chore: Make switching between prod and dev invalidate build cache
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 11:54:17 +03:00
Iku-turso
f00768c7d2 chore: Make only changes in production files invalidate build caches
Currently production files means other files than tests and .md -files.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 11:52:32 +03:00
Iku-turso
cd8f7a23e3 chore: Make "start-dev" start faster by caching icons and binaries
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
e0d1de4207 chore: Rely more on nx-cache to make "dev" start faster
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
875e5ac41c chore: Add some nx-dependencies to make dev-scripts more reliable
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
9d44ad8617 chore: Use lerna for parallel dev threads instead of "concurrently"
This synergises with lerna/nx better, particularly for caching.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
f136402117 chore: Make a change in Feature not cause everything to be rebuilt
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
ed75faab5d chore: Make more dev-scripts create sourcemaps
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
b2cd340654 fix: Use path format that is not broken in yalc
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
c7fc47505a feat: Make builds produce sourcemaps when NODE_ENV is not production
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-02 10:53:21 +03:00
Iku-turso
9a2d585e62 feat: Add support for lens-webpack-build --watch
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-01 08:57:01 +03:00
Iku-turso
28c9eeec36 feat: Make lens-webpack-build cope long lasting processes, eg. watch
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-01 08:57:01 +03:00
Iku-turso
0c2cc25b5b feat: Make webpack configuration trigger linkable-push
Previously this was done by lens-webpack-build, which is awkward for
build-scripts that watch.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-06-01 08:57:01 +03:00
Sebastian Malton
0c1e822788 chore: Move files around to better places
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 16:21:35 -04:00
Sebastian Malton
34adfcd20b fix: Retrieve projectVersion from main for 'extensions-persistent-storage'
- Prevent the version being changed by the renderer

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 16:21:35 -04:00
Sebastian Malton
5511a2f461 chore: Update snapshots after rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
f6cc1b00c2 chore: Fix lint after rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
b3990b535e chore: Fixup dependency versions of @k8slens/cluster-sidebar
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
a0e38b2178 chore: Update @orge-tools/* deps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
b1a988e133 chore: Move around Custom Resource and Custom Resource Definition files to simplify names
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
66a7615e9c chore: Factor out NavigateToCustomResources type
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
e641509e3d chore: Cleanup custom resource route definition
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
147be22db3 fix: The command pallet command for navigating to Custom Resource Definitions should navigate to the correct route
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
bedd7a25bb fix: Custom Resource Definitions sidebar item should navigate to the correct route
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
49db31a9aa fix: Custom Resource Definitions should be the first entry in the side bar
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
1ff2436240 chore: Fix tests after rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
54b6375a7e chore: Fix integration tests failing due to helm testid's changing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
eb78edb226 fix: Fix formatting of custom resource sidebar items
- The titles should better handle being line wrapped

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
d37a765ac2 chore: Improve title formatting for Horizontal/Vertical Pod Autoscalers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
27a14714c3 chore: Fix IDs for some sidebar items
- Also cleanup formatting of the sidebar item titles

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
27aaa3623d chore: Fixup tests snapshots to match new testid behaviour
- Move order-of-sidebar-items to the new package
- Fix the extension sidebar item registrator

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
7924ab5504 chore: Convert sidebarItemInjectionToken to use InjectWithMetadata instead of duplicating the IDs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
04273dcda2 chore: Rename sidebar item injectable files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Sebastian Malton
500ac15703 chore: Extract sidebar item injection token into separate package
- Add unit tests to cover custom resources sidebar items

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-31 14:23:53 -04:00
Gabriel
d28da8e7ac chore: update package version
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-05-30 23:02:45 +02:00
Gabriel
da1d35d1de chore: extract @k8slens/animate
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-05-30 23:02:45 +02:00