Merge lp://staging/~gary/juju-gui/makefile into lp://staging/juju-gui/experimental
Proposed by
Gary Poster
Status: | Merged |
---|---|
Merged at revision: | 217 |
Proposed branch: | lp://staging/~gary/juju-gui/makefile |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
148 lines (+43/-34) 4 files modified
Makefile (+11/-8) README (+4/-0) app/assets/javascripts/svg-layouts.js (+17/-15) test-server.js (+11/-11) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/makefile |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
'make server' should not always run yuidoc
I discovered that 'make server' always ran yuidoc. This was because, in part, the automatically generated FILES list included inappropriate files. There is another factor that affects this that I did not identify, but fixing the first problem is sufficient.
Fixing the problem specified the JS files more tightly, which revealed a few more lint changes.
I did a fly-by in the README.
To post a comment you must log in.
Reviewers: mp+132302_ code.launchpad. net,
Message:
Please take a look.
Description:
'make server' should not always run yuidoc
I discovered that 'make server' always ran yuidoc. This was because, in
part, the automatically generated FILES list included inappropriate
files. There is another factor that affects this that I did not
identify, but fixing the first problem is sufficient.
Fixing the problem specified the JS files more tightly, which revealed a
few more lint changes.
I did a fly-by in the README.
https:/ /code.launchpad .net/~gary/ juju-gui/ makefile/ +merge/ 132302
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6823057/
Affected files: javascripts/ svg-layouts. js
M Makefile
M README
A [revision details]
M app/assets/
M test-server.js
Index: Makefile es$$' | grep -Ev -e '^manifest\.json$$' -e '^test/assets/' javascripts/ reconnecting- websocket. js$$' -e '^server.js$$') plates generateTemplat es
=== modified file 'Makefile'
--- Makefile 2012-10-31 08:30:13 +0000
+++ Makefile 2012-10-31 10:57:16 +0000
@@ -1,4 +1,5 @@
-FILES=$(shell bzr ls -RV -k file | grep -v assets/ | grep -v
app/templates.js | grep -v server.js)
+JSFILES=$(shell bzr ls -RV -k file | grep -E -e '.+\.js(on)?$$|
generateTemplat
-e '^app/assets/
+
# After a successful "make" run, the NODE_TARGETS list can be regenerated
with
# this command (and then manually pasted in here):
# find node_modules -maxdepth 1 -mindepth 1 -type d
-printf 'node_modules/%f '
@@ -20,12 +21,14 @@
app/templates.js: $(TEMPLATE_TARGETS) bin/generateTem
@./bin/
-yuidoc: install $(FILES) yuidocjs $(JSFILES) modules/ .bin/yuidoc -o yuidoc -x assets app
+yuidoc/index.html: node_modules/
@node_
+yuidoc: yuidoc/index.html GENERATED_ FILES): node_modules/grunt node-spriteshee t $(SPRITE_ SOURCE_ FILES) modules/ grunt/bin/ grunt spritegen
+
$(SPRITE_
node_modules/
@node_
- mv bin/sprite app/assets/sprite/
+ @mv bin/sprite app/assets/sprite/
$(NODE_TARGETS): package.json bin/gjslint bin/gjslint --strict --nojsdoc --jslint_error=all \
--custom_ jsdoc_tags main,class, method, event,property, attribute, submodule, namespace, extends, config, constructor, static, final,readOnly, writeOnce, optional, required, param,return, for,type, private, protected, requires, default, uses,example, chainable, deprecated, since,async, beta,bubbles, extension, extensionfor, extension_ for
@npm install
@@ -38,12 +41,12 @@
gjslint: virtualenv/
@virtualenv/
module,
\
- $(FILES)
+ $(JSFILES)
jshint: node_modules/jshint jshint/ bin/hint $(FILES) jshint/ bin/hint $(JSFILES)
- @node_modules/
+ @node_modules/
-yuidoc-lint: $(FILES)
+yuidoc-lint: $(JSFILES)
@bin/lint-yuidoc
lint: gjslint jshint yuidoc-lint bin/easy_ install archives/ closure_ linter- latest. tar.gz
@@ -53,7 +56,7 @@
@virtualenv/
beautify: virtualenv/ bin/fixjsstyle bin/fixjsstyle --strict --nojsdoc --jslint_error=all $(FILES) bin/fixjsstyle --strict --nojsdoc --jslint_error=all
- @virtualenv/
+ @virtualenv/
$(JSFILES)
spritegen: $(SPRITE_ GENERATED_ FILES)
@@ -87,4 +90,4 @@
appcach...