Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
5745da92
Commit
5745da92
authored
Jul 19, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove fake server from production files
parent
aad0686b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
vifib/Makefile
vifib/Makefile
+10
-10
No files found.
vifib/Makefile
View file @
5745da92
...
...
@@ -22,7 +22,7 @@ all: dev release
# Emulate server responses with sinonjs
fake
:
dev ${DEVDIR}/js/fake.js
cat
$(CATJSFILES)
${DEVDIR}
/js/fake.js
>
${DEVDIR}
/
$(
FINAL
JS)
cat
$(CATJSFILES)
${DEVDIR}
/js/fake.js
>
${DEVDIR}
/
$(
DEV
JS)
${DEVDIR}/js/fake.js
:
js/utils/fake.js
@
mkdir
-p
$
(
@D
)
...
...
@@ -113,19 +113,19 @@ ${DEVDIR}/tests/%_test.html.ok: ${DEVDIR}/tests/%_test.html ${DEVDIR}/tests/%_te
#########################################
# Sort files for concatenation
CATFINALJSFILES
=
${DEVDIR}
/lib/jquery.js
${DEVDIR}
/lib/mustache.js
${DEVDIR}
/lib/spin.js
${DEVDIR}
/lib/modernizr.js
${DEVDIR}
/lib/swipe.js
${DEVDIR}
/js/jquery.slapos.js
${DEVDIR}
/js/init.js
${DEVDIR}
/lib/jquery-mobile.js
${DEVDIR}
/js/url.js
${DEVDIR}
/js/route.js
${DEVDIR}
/js/main.js
${DEVDIR}
/js/render.js
${DEVDIR}
/js/panels.js
${DEVDIR}
/js/pages.js
${DEVDIR}
/js/pages.mobile.js
${DEVDIR}
/js/pages.tablet.js
${DEVDIR}
/js/pages.desktop.js
#
CATFINALJSFILES = ${DEVDIR}/lib/jquery.js ${DEVDIR}/lib/mustache.js ${DEVDIR}/lib/spin.js ${DEVDIR}/lib/modernizr.js ${DEVDIR}/lib/swipe.js ${DEVDIR}/js/jquery.slapos.js ${DEVDIR}/js/init.js ${DEVDIR}/lib/jquery-mobile.js ${DEVDIR}/js/url.js ${DEVDIR}/js/route.js ${DEVDIR}/js/main.js ${DEVDIR}/js/render.js ${DEVDIR}/js/panels.js ${DEVDIR}/js/pages.js ${DEVDIR}/js/pages.mobile.js ${DEVDIR}/js/pages.tablet.js ${DEVDIR}/js/pages.desktop.js
release
:
${DEVDIR}/lib/jquery.js ${DEVDIR}/lib/jquery-mobile.js ${DEVDIR}/lib/modernizr.js ${DEVDIR}/lib/mustache.js ${DEVDIR}/lib/spin.js ${DEVDIR}/lib/swipe.js $(patsubst %.js
,
${DEVDIR}/js/%.js
,
$(JSFILES)) ${DEVDIR}/index.html ${DEVDIR}/$(FINALJS)
#
release: ${DEVDIR}/lib/jquery.js ${DEVDIR}/lib/jquery-mobile.js ${DEVDIR}/lib/modernizr.js ${DEVDIR}/lib/mustache.js ${DEVDIR}/lib/spin.js ${DEVDIR}/lib/swipe.js $(patsubst %.js, ${DEVDIR}/js/%.js, $(JSFILES)) ${DEVDIR}/index.html ${DEVDIR}/$(FINALJS)
#
Concatenation, minification #
${DEVDIR}/$(FINALJS)
:
$(CATFINALJSFILES)
@
mkdir
-p
$
(
@D
)
cat
$^
| uglifyjs
>
$@
#
Concatenation, minification #
#
${DEVDIR}/$(FINALJS): $(CATFINALJSFILES)
#
@mkdir -p $(@D)
#
cat $^ | uglifyjs > $@
tarball
:
${DEVDIR}/$(FINALJS) ${DEVDIR}/index.html
tar
-czf
$(TARBALL)
$^
#
tarball: ${DEVDIR}/$(FINALJS) ${DEVDIR}/index.html
#
tar -czf $(TARBALL) $^
export
:
tarball
#
export: tarball
#########################################
# Cleaning
...
...
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