forked from shoelace-style/shoelace
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4a3b32
commit 3cea8d3
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Makefile | ||
|
||
MAKEFLAGS += -j2 | ||
-include .env | ||
export | ||
|
||
CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) | ||
CURRENT_PATH := $(shell pwd) | ||
DEFAULT_BRANCH := $(shell git remote show upstream | sed -n '/HEAD branch/s/.*: //p') | ||
AMM := ${HOME}/amm | ||
|
||
.PHONY: gitRebase | ||
gitRebase: | ||
git checkout $(DEFAULT_BRANCH) && \ | ||
git pull upstream $(DEFAULT_BRANCH) && \ | ||
git push origin $(DEFAULT_BRANCH) && \ | ||
git checkout $(CURRENT_BRANCH) && \ | ||
git rebase $(DEFAULT_BRANCH) | ||
git push --force origin $(CURRENT_BRANCH) | ||
|
||
.PHONY: gitAmmend | ||
gitAmmend: | ||
git add . && git commit --amend --no-edit && git push --force origin $(CURRENT_BRANCH) | ||
|
||
.PHONY: run | ||
run: | ||
npm start | ||
|
||
.PHONY: build | ||
build: | ||
npm run build |