Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
a4f3d0d1
Commit
a4f3d0d1
authored
Jun 11, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: notes added about npm packages + make phantom improved
parent
4c418987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Makefile
Makefile
+5
-1
No files found.
Makefile
View file @
a4f3d0d1
...
@@ -11,6 +11,8 @@ COMPLEX_MIN = complex_queries.min.js
...
@@ -11,6 +11,8 @@ COMPLEX_MIN = complex_queries.min.js
PARSER_PAR
=
$(QUERIES_DIR)
/parser.par
PARSER_PAR
=
$(QUERIES_DIR)
/parser.par
PARSER_OUT
=
$(QUERIES_DIR)
/parser.js
PARSER_OUT
=
$(QUERIES_DIR)
/parser.js
## install npm package system wide -> npm -g install <package>
## js/cc using rhino
## js/cc using rhino
#JSCC_CMD = rhino ~/modules/jscc/jscc.js -t ~/modules/jscc/driver_web.js_
#JSCC_CMD = rhino ~/modules/jscc/jscc.js -t ~/modules/jscc/driver_web.js_
# sh -c 'cd ; npm install jscc-node'
# sh -c 'cd ; npm install jscc-node'
...
@@ -19,6 +21,8 @@ JSCC_CMD = node ~/node_modules/jscc-node/jscc.js -t ~/node_modules/jscc-node/
...
@@ -19,6 +21,8 @@ JSCC_CMD = node ~/node_modules/jscc-node/jscc.js -t ~/node_modules/jscc-node/
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
# sh -c 'cd ; npm install uglify-js'
# sh -c 'cd ; npm install uglify-js'
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
# sh -c 'cd ; npm install phantomjs'
PHANTOM_CMD
=
$(
shell
which phantomjs
||
echo
~/node_modules/phantomjs/bin/phantomjs
)
auto
:
compile build lint
auto
:
compile build lint
build
:
concat uglify
build
:
concat uglify
...
@@ -57,7 +61,7 @@ lint:
...
@@ -57,7 +61,7 @@ lint:
$(LINT_CMD)
$(LINT_FILES)
$(LINT_CMD)
$(LINT_FILES)
phantom
:
phantom
:
~/node_modules/phantomjs/bin/phantomjs
test
/run-qunit.js
test
/jiotests_withoutrequirejs.html |
awk
'BEGIN {print "<!DOCTYPE html><html>"} /^<head>$$/, /^<\/body>$$/ {print} END {print "</html>"}'
|
sed
-e
's,^ *<\(/\|\)script.*>$$,,g'
>
test
/unit_test_result.html
$(PHANTOM_CMD)
test
/run-qunit.js
test
/jiotests_withoutrequirejs.html |
awk
'BEGIN {print "<!DOCTYPE html><html>"} /^<head>$$/, /^<\/body>$$/ {print} END {print "</html>"}'
|
sed
-e
's,^ *<\(/\|\)script.*>$$,,g'
>
test
/unit_test_result.html
grep
'^ <title>✔ '
test
/unit_test_result.html
>
/dev/null
grep
'^ <title>✔ '
test
/unit_test_result.html
>
/dev/null
.phony
:
clean
.phony
:
clean
...
...
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