Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
renderjs
Commits
3f1b27e6
Commit
3f1b27e6
authored
Feb 01, 2013
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow jslint form command line.
parent
c0c383b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Makefile
Makefile
+4
-0
README
README
+3
-1
No files found.
Makefile
View file @
3f1b27e6
...
@@ -4,6 +4,7 @@ RENDERJS_MIN = renderjs.min.js
...
@@ -4,6 +4,7 @@ RENDERJS_MIN = renderjs.min.js
# npm install uglify-js
# 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
)
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
auto
:
build
auto
:
build
build
:
uglify
build
:
uglify
...
@@ -11,6 +12,9 @@ build: uglify
...
@@ -11,6 +12,9 @@ build: uglify
uglify
:
uglify
:
$(UGLIFY_CMD)
"
$(RENDERJS)
"
>
"
$(RENDERJS_MIN)
"
$(UGLIFY_CMD)
"
$(RENDERJS)
"
>
"
$(RENDERJS_MIN)
"
lint
:
$(LINT_CMD)
$(RENDERJS)
clean
:
clean
:
find
-name
'*~'
-delete
find
-name
'*~'
-delete
find
-name
'renderjs.min.js'
-delete
find
-name
'renderjs.min.js'
-delete
...
...
README
View file @
3f1b27e6
...
@@ -13,4 +13,6 @@ Developer
...
@@ -13,4 +13,6 @@ Developer
> git clone https://git.erp5.org/repos/renderjs.git
> git clone https://git.erp5.org/repos/renderjs.git
> make (will produce a minified version for now, requires nodejs installed as well its uglifyjs module)
> make (will produce a minified version for now, requires nodejs installed as well its uglifyjs module)
\ No newline at end of file
> make lint (will produce a jslint report, requires nodejs installed as well its jslint module)
\ No newline at end of file
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