Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
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
Ivan Tyagov
jio
Commits
7aa49403
Commit
7aa49403
authored
Jan 10, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile updated; can use node jslint and node uglify-js
parent
dda2573d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Makefile
Makefile
+6
-4
No files found.
Makefile
View file @
7aa49403
OUT
=
jio.js
OUT
=
jio.js
UGLY_OUT
=
jio.min.js
UGLY_OUT
=
jio.min.js
LINT_CMD
=
jslint
--terse
# npm install jslint
UGLIFY_CMD
=
uglifyjs
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
# npm install uglify-js
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
FILE_DIR
=
src/jio
FILE_DIR
=
src/jio
STORAGE_DIR
=
src/jio.storage
STORAGE_DIR
=
src/jio.storage
...
@@ -19,7 +21,7 @@ concat:
...
@@ -19,7 +21,7 @@ concat:
# uglify jio.js to build jio.min.js
# uglify jio.js to build jio.min.js
uglify
:
uglify
:
$(UGLIFY_CMD)
--
"
$(OUT)
"
>
"
$(UGLY_OUT)
"
$(UGLIFY_CMD)
"
$(OUT)
"
>
"
$(UGLY_OUT)
"
# lint all files in FILES and STORAGE_FILES
# lint all files in FILES and STORAGE_FILES
# command: jslint [options] file
# command: jslint [options] file
...
@@ -28,7 +30,7 @@ uglify:
...
@@ -28,7 +30,7 @@ uglify:
# /*jslint indent: 2, maxlen: 80 */
# /*jslint indent: 2, maxlen: 80 */
# /*global hex_sha256: true, jQuery: true */
# /*global hex_sha256: true, jQuery: true */
lint
:
lint
:
$(LINT_CMD)
--
$
(
LINT_FILES:%
=
$(FILE_DIR)
/%.js
)
$(LINT_CMD)
$
(
LINT_FILES:%
=
$(FILE_DIR)
/%.js
)
.phony
:
clean
.phony
:
clean
clean
:
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