Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vereign Client Library
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
Vereign Client Library
Commits
517d15e4
Commit
517d15e4
authored
6 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Made Makefile cleanup temporary files.
parent
8c0b1ca6
No related branches found
No related tags found
1 merge request
!4
Use webpack for bundling JS libs and move Golang code related to Iframe generation there
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+12
-10
12 additions, 10 deletions
Makefile
javascript/.gitignore
+0
-1
0 additions, 1 deletion
javascript/.gitignore
with
12 additions
and
11 deletions
Makefile
+
12
−
10
View file @
517d15e4
SERVER_OUT
:=
"bin/app"
SERVER_OUT
:=
"bin/app"
PKG
:=
"code.vereign.com/code/vcl"
PKG
:=
"code.vereign.com/code/vcl"
SERVER_PKG_BUILD
:=
"
${
PKG
}
"
SERVER_PKG_BUILD
:=
"
${
PKG
}
"
IFRAME_LIB_LOCATION
:=
"javascript/temp"
.PHONY
:
all build clean
run
.PHONY
:
all build
run
clean
all
:
build run bundle-libs
all
:
build run bundle-libs
clean
dep
:
##
Get the dependencies
dep
:
##
Get the dependencies
dep ensure
dep ensure
...
@@ -12,18 +13,19 @@ dep: ## Get the dependencies
...
@@ -12,18 +13,19 @@ dep: ## Get the dependencies
build
:
dep
##
Build the binary file for app
build
:
dep
##
Build the binary file for app
@
go build
-i
-v
-o
$(
SERVER_OUT
)
$(
SERVER_PKG_BUILD
)
@
go build
-i
-v
-o
$(
SERVER_OUT
)
$(
SERVER_PKG_BUILD
)
clean
:
##
Remove previous builds
run
:
build
##
Run app to build iframe lib containing Restful API endpoints
@
rm
$(
SERVER_OUT
)
help
:
##
Display this help screen
@
grep
-E
'^[a-zA-Z_-]+:.*?## .*$$'
$(
MAKEFILE_LIST
)
|
sort
|
awk
'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
run
:
build
##
Run app
./bin/app
./bin/app
bundle-libs
:
##
Builds JS bundles
bundle-libs
:
run
##
Builds JS bundles
cd
javascript
&&
yarn
install
&&
yarn build
cd
javascript
&&
yarn
install
&&
yarn build
clean
:
bundle-libs
##
Remove previous builds
@
rm
$(
SERVER_OUT
)
@
rm
-rf
$(
IFRAME_LIB_LOCATION
)
help
:
##
Display this help screen
@grep -E '^[a-zA-Z_-]+
:
.*?
##
.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?
##
"}; {printf "
\0
33[36m%-30s
\0
33[0m %s
\n
"
,
$$1
,
$$2}'
fresh
:
fresh
:
rm
-rf
./vendor
rm
-rf
./vendor
rm
-rf
./Gopkg.lock
rm
-rf
./Gopkg.lock
\ No newline at end of file
This diff is collapsed.
Click to expand it.
javascript/.gitignore
+
0
−
1
View file @
517d15e4
node_modules
node_modules
dist
dist
temp
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment