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
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+132302@code.staging.launchpad.net

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.

https://codereview.appspot.com/6823057/

To post a comment you must log in.
Revision history for this message
Gary Poster (gary) wrote :
Download full text (6.5 KiB)

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:
   M Makefile
   M README
   A [revision details]
   M app/assets/javascripts/svg-layouts.js
   M test-server.js

Index: Makefile
=== 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)?$$|
generateTemplates$$' | grep -Ev -e '^manifest\.json$$' -e '^test/assets/'
-e '^app/assets/javascripts/reconnecting-websocket.js$$' -e '^server.js$$')
+
  # 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/generateTemplates
   @./bin/generateTemplates

-yuidoc: install $(FILES)
+yuidoc/index.html: node_modules/yuidocjs $(JSFILES)
   @node_modules/.bin/yuidoc -o yuidoc -x assets app

+yuidoc: yuidoc/index.html
+
  $(SPRITE_GENERATED_FILES): node_modules/grunt
node_modules/node-spritesheet $(SPRITE_SOURCE_FILES)
   @node_modules/grunt/bin/grunt spritegen
- mv bin/sprite app/assets/sprite/
+ @mv bin/sprite app/assets/sprite/

  $(NODE_TARGETS): package.json
   @npm install
@@ -38,12 +41,12 @@
  gjslint: virtualenv/bin/gjslint
   @virtualenv/bin/gjslint --strict --nojsdoc --jslint_error=all \
       --custom_jsdoc_tags
module,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
\
- $(FILES)
+ $(JSFILES)

  jshint: node_modules/jshint
- @node_modules/jshint/bin/hint $(FILES)
+ @node_modules/jshint/bin/hint $(JSFILES)

-yuidoc-lint: $(FILES)
+yuidoc-lint: $(JSFILES)
   @bin/lint-yuidoc

  lint: gjslint jshint yuidoc-lint
@@ -53,7 +56,7 @@
   @virtualenv/bin/easy_install archives/closure_linter-latest.tar.gz

  beautify: virtualenv/bin/fixjsstyle
- @virtualenv/bin/fixjsstyle --strict --nojsdoc --jslint_error=all $(FILES)
+ @virtualenv/bin/fixjsstyle --strict --nojsdoc --jslint_error=all
$(JSFILES)

  spritegen: $(SPRITE_GENERATED_FILES)

@@ -87,4 +90,4 @@
  appcach...

Read more...

lp://staging/~gary/juju-gui/makefile updated
217. By Gary Poster

'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.

R=
CC=
https://codereview.appspot.com/6823057

Revision history for this message
Gary Poster (gary) wrote :

*** Submitted:

'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.

R=
CC=
https://codereview.appspot.com/6823057

https://codereview.appspot.com/6823057/

Revision history for this message
Nicola Larosa (teknico) wrote :

Looks good to me. Thanks for the single quotes. :-)

https://codereview.appspot.com/6823057/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches