Skip to content

Commit

Permalink
PMM-11231 Add build & cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkubinec committed Mar 22, 2024
1 parent b59a3d6 commit 6c5c039
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 6 additions & 0 deletions build/packages/rpm/server/SPECS/pmm-managed.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export PMM_RELEASE_BRANCH=""
cd src/github.com/percona/pmm/managed
make release

cd src/github.com/percona/pmm/ui
make release

%install
install -d -p %{buildroot}%{_bindir}
Expand All @@ -54,6 +56,7 @@ install -p -m 0755 bin/pmm-managed-starlark %{buildroot}%{_sbindir}/pmm-managed-
cd src/github.com/percona/pmm
cp -pa ./api/swagger %{buildroot}%{_datadir}/%{name}

cp -pa ./ui/dist %{_datadir}/pmm-ui

%files
%license src/%{provider}/LICENSE
Expand All @@ -65,6 +68,9 @@ cp -pa ./api/swagger %{buildroot}%{_datadir}/%{name}


%changelog
* Fri Mar 22 2024 Matej Kubinec <[email protected]> - 3.0.0-1
- PMM-10036 migrate to monorepo

* Thu Jul 28 2022 Alex Tymchuk <[email protected]> - 2.30.0-1
- PMM-10036 migrate to monorepo

Expand Down
11 changes: 3 additions & 8 deletions ui/Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
.PHONY: dev
dev:
yarn dev

.PHONY: ci
ci: setup lint test build

.PHONY: format
format: setup
yarn format

.PHONY: lints
lint: setup
yarn lint

.PHONY: test
test: setup
yarn test

.PHONY: setup
setup:
yarn install --frozen-lockfile

.PHONY: build
build: setup
yarn build

.PHONY: release
release: build

clean:
rm -r dist

0 comments on commit 6c5c039

Please sign in to comment.