Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
4547c2b4
Commit
4547c2b4
authored
Nov 24, 2015
by
Ray Schamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #247 from rschamp/issue/GH-133
Add version.txt file to build directory on build
parents
45b44204
70a0a2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Makefile
Makefile
+10
-3
No files found.
Makefile
View file @
4547c2b4
...
@@ -4,6 +4,9 @@ SASSLINT=./node_modules/.bin/sass-lint -v
...
@@ -4,6 +4,9 @@ SASSLINT=./node_modules/.bin/sass-lint -v
TAP
=
./node_modules/.bin/tap
TAP
=
./node_modules/.bin/tap
WATCH
=
./node_modules/.bin/watch
WATCH
=
./node_modules/.bin/watch
WEBPACK
=
./node_modules/.bin/webpack
WEBPACK
=
./node_modules/.bin/webpack
GIT_VERSION
=
$(
shell
git rev-parse
--verify
--short
=
5 HEAD 2> /dev/null
)
GIT_VERSION
?=
$(WWW_VERSION)
GIT_MESSAGE
=
$(
shell
git log
-1
--pretty
=
%s 2> /dev/null
)
# ------------------------------------
# ------------------------------------
...
@@ -11,6 +14,7 @@ build:
...
@@ -11,6 +14,7 @@ build:
@
make clean
@
make clean
@
make translations
@
make translations
@
make webpack
@
make webpack
@
make tag
clean
:
clean
:
rm
-rf
./build
rm
-rf
./build
...
@@ -19,7 +23,7 @@ clean:
...
@@ -19,7 +23,7 @@ clean:
deploy
:
deploy
:
ifeq
($(shell grep "artifact: deploy.zip" .elasticbeanstalk/config.yml), )
ifeq
($(shell grep "artifact: deploy.zip" .elasticbeanstalk/config.yml
2> /dev/null
), )
@
echo
"You must configure elasticbeanstalk to deploy an artifact."
@
echo
"You must configure elasticbeanstalk to deploy an artifact."
@
echo
"Add the following to your .elasticbeanstalk/config.yml"
@
echo
"Add the following to your .elasticbeanstalk/config.yml"
@
echo
"deploy:
\n
artifact: deploy.zip"
@
echo
"deploy:
\n
artifact: deploy.zip"
...
@@ -27,9 +31,12 @@ else
...
@@ -27,9 +31,12 @@ else
@
make build
@
make build
git archive
-o
deploy.zip HEAD
git archive
-o
deploy.zip HEAD
zip
-rv
deploy.zip build
zip
-rv
deploy.zip build
eb deploy
-l
$
$
(
git rev-parse
--verify
--short
=
5 HEAD
)
-m
"
$$
(git log -1 --pretty=%s
)"
eb deploy
-l
$
(GIT_VERSION)
-m
"
$(GIT_MESSAGE
)
"
endif
endif
tag
:
echo
$(GIT_VERSION)
>
./build/version.txt
translations
:
translations
:
./lib/bin/build-locales locales/translations.json
./lib/bin/build-locales locales/translations.json
...
@@ -75,4 +82,4 @@ integration:
...
@@ -75,4 +82,4 @@ integration:
# ------------------------------------
# ------------------------------------
.PHONY
:
build clean deploy static translations webpack watch stop start test lint
.PHONY
:
build clean deploy static t
ag t
ranslations webpack watch stop start test lint
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment