-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (75 loc) · 2.52 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.PHONY: test check clean build dist all
# each tag change this
ENV_DIST_VERSION := 1.0.0
ENV_PROJECT_NAME ?= tudm-cli
ENV_ROOT ?= $(shell pwd)
ENV_MODULE_FOLDER ?= ${ENV_ROOT}
ENV_MODULE_MANIFEST = ${ENV_ROOT}/package.json
env:
pipenv --version
pipenv check
init:
pipenv install --three
install:
pipenv sync --dev
pipenv sync
graph:
pipenv graph
dependencies:
-pipenv check
-pipenv update
-pipenv lock
shell:
@echo "-> in pipenv shell"
@echo " install runtime like: pipenv install requests"
@echo " install develop like: pipenv install httpie --dev"
@echo " uninstall like: pipenv uninstall requests"
@echo ""
@echo "and will load environment file as .env"
pipenv shell
dev:
pipenv run main
utils:
node -v
npm -v
npm install -g commitizen cz-conventional-changelog conventional-changelog-cli
tagVersionHelp:
@echo "-> please check to change version, now is ${ENV_DIST_VERSION}"
@echo "change check at ${ENV_ROOT}/Makefile:4"
@echo "change check at ${ENV_MODULE_MANIFEST}:3"
@echo "change check at ${ENV_ROOT}/tudm.py:27"
@echo ""
@echo "please check all file above!"
@echo ""
tagBefore: tagVersionHelp
conventional-changelog -i CHANGELOG.md -s --skip-unstable
@echo ""
@echo "place check all file, then add git tag to push!"
help:
@echo "unity makefile template"
@echo " module project name: ${ENV_PROJECT_NAME}"
@echo " module folder path: ${ENV_MODULE_FOLDER}"
@echo " module version is: ${ENV_DIST_VERSION}"
@echo " module manifest path: ${ENV_MODULE_MANIFEST}"
@echo ""
@echo " first need init utils"
@echo "$$ make utils ~> npm install git cz"
@echo " 1. add change log, then write git commit , replace [ git commit -m ] to [ git cz ]"
@echo " 2. generate CHANGELOG.md doc: https://github.com/commitizen/cz-cli#conventional-commit-messages-as-a-global-utility"
@echo ""
@echo " then you can generate CHANGELOG.md as"
@echo "$$ make tagVersionHelp ~> print version when make tageBefore will print again"
@echo "$$ make tagBefore ~> generate CHANGELOG.md and copy to module folder"
@echo ""
@echo "This project use python 3.9.+"
@echo "------ ------"
@echo "- first run you can use make init to check environment"
@echo "------ ------"
@echo ""
@echo "$$ make init ~> init this project"
@echo "$$ make env ~> show env of this project"
@echo "$$ make graph ~> show graph of this project"
@echo "$$ make shell ~> into shell, out use exit or ctrl-D"
@echo ""
all:
@echo "~> start base info"