* Add package for shared webpack configurations for Lens applications, Features and libraries
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove duplication from gitignores
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add package for shared jest configurations for Lens applications, Features and libraries.
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add root level script for running unit tests in monorepo mindset
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Ignore coverage files from VCS
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
---------
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* wip: restructure to monorepo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor create-release-pr to a package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* github workflow fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix typo
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add webpack-env types to core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix github workflows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor/fix integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* yarn run dev
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* eslint settings for vscode
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* move templates to right package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* open-lens build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* integration test fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix nx task dependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use bash shell for unit tests in test workflow
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix test:unit for windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix win-ca webpack error in open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix build:app on windows
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove ELECTRON_BUILDER_EXTRA_ARGS
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* sync src/ from master
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove Makefile from core
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* unify build fs layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use currentApp path for static files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* lint fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to import open-lens
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to customize both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix compile-library script
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove bundled extensions
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* similar interface for both main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* use startApp on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix startApp import
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* Fix injection cycle (somehow)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* use cwd in download_binaries
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce applicationInformationToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* register applicationInformationInjectable in main & renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to define bundled extensions via appStart
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* compile node-fetch automatically via prepare
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* define peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* webpack fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* rename application-information-token.injectable.ts -> application-information-token.ts
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* monaco-editor as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor application-information
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce bundledExtensionInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* mark library exports as experimental
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* move extension npm package files & add release automation
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add missing build files to package
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix bad merge conflict resolve
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix package.json name
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* allow to set mode via startApp
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* revert unnecessary changes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* webpack: fix extensionOutDir
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove unnecessary peerDependencies
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* introduce nodeEnvInjectionToken
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove NODE_ENV from environmentVariablesInjectable
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix jest modulePathIgnorePatterns
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix duplicate injectable registration
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix build executableName
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
* Upgrade to latest node-fetch
- Introduce injection tokens for retriving the implementation of
node-fetch via await import() calls
- Add webpack file for compiling node-fetch to electron-renderer single
file format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update lock file
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add type packages which were removed for some reason
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add more dev @types deps that weren't added last time
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Simpify by using webpack to create a commonjs package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix build for integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix unit tests on CI not having all deps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Revert accidental timeout change
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Replace manually specifying nodeJS externals with preset
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add configuration for debugging integration tests
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Add launch configuration for debugging main process
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Continue polishing debug configurations
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Remove unnecessary dependency
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Add debug configuration for unit tests + cleanup vscode tasks
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Update src/renderer/bootstrap.tsx
Add `await` keyword to debugger attachment
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Update src/renderer/bootstrap.tsx
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Use existing variable to wait for chrome debugger attachment
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Update src/renderer/bootstrap.tsx
Use available helper function instead of raw promise
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Import delay utility
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
* Move async function to async context (attaching debugger)
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
Co-authored-by: Alex Culliere <alozhkin@mirantis.com>
Co-authored-by: chh <1474479+chenhunghan@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
* add step to verify docs on area/documentation PRs
* use GH actions to run the verification
* add check if label is set to area/documentation
* fix broken links in docs with WIP files
* add generating API docs before verifying
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove Makefile from all intree extensions
- Makefiles are not really common (rightly so) in JS projects and script
entries in the package.json are good enough and what they're there
for.
- Move to using yarn for installing dependencies and running scripts as
that is what we mostly use for the rest of the project.
- Move from using make syntax to a dedicated script for building and
testing extensions.
- add jest as extension devDep, go back to using makefile foreach syntax
- add correct exit code
- add yarn check call to install-deps
- add yarn invokation to find deps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
* Allow for users to enabled release mode debugging by setting the env var `DEBUG` to "true"
* Adds file logging so that in production logs can still be
obtained. Those log files are limited the size and number and are rotated automatically
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>