mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Restructure to monorepo (#6907)
* 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>
This commit is contained in:
1 parent
0066ca4ea2
commit
2657df2293
3321 files changed
+28699
-11447
No files matched your search
@@ -5,108 +5,27 @@ CMD_ARGS = $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
ELECTRON_BUILDER_EXTRA_ARGS ?=
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
DETECTED_OS := Windows
|
||||
else
|
||||
DETECTED_OS := $(shell uname)
|
||||
endif
|
||||
|
||||
node_modules: yarn.lock
|
||||
yarn install --check-files --frozen-lockfile --network-timeout=100000
|
||||
|
||||
binaries/client: node_modules
|
||||
yarn download:binaries
|
||||
|
||||
.PHONY: compile-dev
|
||||
compile-dev: node_modules
|
||||
yarn compile:main --cache
|
||||
yarn compile:renderer --cache
|
||||
|
||||
.PHONY: validate-dev
|
||||
ci-validate-dev: binaries/client compile-dev
|
||||
|
||||
.PHONY: dev
|
||||
dev: binaries/client
|
||||
rm -rf static/build/
|
||||
yarn run build:tray-icons
|
||||
yarn dev
|
||||
.PHONY: bootstrap
|
||||
bootstrap:
|
||||
yarn install
|
||||
|
||||
.PHONY: lint
|
||||
lint: node_modules
|
||||
yarn lint
|
||||
|
||||
.PHONY: tag-release
|
||||
tag-release:
|
||||
scripts/tag-release.sh $(CMD_ARGS)
|
||||
|
||||
.PHONY: test
|
||||
test: node_modules binaries/client
|
||||
yarn run jest $(or $(CMD_ARGS), "src")
|
||||
test: node_modules
|
||||
yarn run test:unit
|
||||
|
||||
.PHONY: integration
|
||||
integration: build
|
||||
yarn integration
|
||||
|
||||
.PHONY: build-impl
|
||||
build-impl:
|
||||
yarn run download:binaries
|
||||
yarn run build:tray-icons
|
||||
yarn run compile
|
||||
ifeq "$(DETECTED_OS)" "Windows"
|
||||
# https://github.com/ukoloff/win-ca#clear-pem-folder-on-publish
|
||||
rm -rf node_modules/win-ca/pem
|
||||
endif
|
||||
yarn run electron-builder --publish onTag $(ELECTRON_BUILDER_EXTRA_ARGS)
|
||||
yarn test:integration
|
||||
|
||||
.PHONY: build
|
||||
build: node_modules binaries/client build-impl
|
||||
|
||||
src/extensions/npm/extensions/__mocks__:
|
||||
cp -r __mocks__ src/extensions/npm/extensions/
|
||||
|
||||
packages/extensions/dist: packages/extensions/node_modules
|
||||
yarn compile:extension-types
|
||||
|
||||
packages/extensions/node_modules: packages/extensions/package.json
|
||||
cd packages/extensions/ && ../../node_modules/.bin/npm install --no-audit --no-fund --no-save
|
||||
|
||||
.PHONY: build-extensions-npm
|
||||
build-extensions-npm: build-extension-types
|
||||
yarn npm:fix-extensions-package-version
|
||||
|
||||
.PHONY: build-library-npm
|
||||
build-library-npm: node_modules
|
||||
yarn compile-library
|
||||
|
||||
.PHONY: build-extension-types
|
||||
build-extension-types: node_modules packages/extensions/dist
|
||||
|
||||
.PHONY: publish-extensions-npm
|
||||
publish-extensions-npm: node_modules build-extensions-npm
|
||||
./scripts/publish-extensions-npm.sh
|
||||
|
||||
.PHONY: publish-library-npm
|
||||
publish-library-npm: node_modules build-library-npm
|
||||
./scripts/publish-library-npm.sh
|
||||
|
||||
.PHONY: build-docs
|
||||
build-docs:
|
||||
yarn typedocs-extensions-api
|
||||
|
||||
.PHONY: docs
|
||||
docs: build-docs
|
||||
yarn mkdocs-serve-local
|
||||
|
||||
.PHONY: clean-npm
|
||||
clean-npm:
|
||||
rm -rf packages/extensions/{dist,__mocks__,node_modules}
|
||||
rm -rf static/build/library/
|
||||
build:
|
||||
yarn lerna run build:app
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-npm
|
||||
rm -rf binaries/client
|
||||
rm -rf dist
|
||||
rm -rf static/build
|
||||
rm -rf node_modules
|
||||
rm -rf site
|
||||
rm -rf docs/extensions/api
|
||||
clean:
|
||||
yarn run clean
|
||||
yarn run clean:node_modules
|
||||
Reference in new issue
Block a user