Merge lp:~makyo/juju-gui/recess into lp:juju-gui/experimental
Proposed by
Madison Scott-Clary
Status: | Merged |
---|---|
Merged at revision: | 312 |
Proposed branch: | lp:~makyo/juju-gui/recess |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
112 lines (+43/-17) 4 files modified
Makefile (+5/-2) lib/templates.js (+30/-15) package.json (+1/-0) recess.json (+7/-0) |
To merge this branch: | bzr merge lp:~makyo/juju-gui/recess |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+142572@code.launchpad.net |
Description of the change
Use recess as CSS linter
This is the first step to implementing a CSS linter (recess). Currently, most of the options are turned off in order to keep this slack task short, so our LESS file passes the linter. Further slack tasks may be created for options that we decide to turn on down the road (personal suggestions: noOverqualifying and zeroUnits, ambivalent about strictPropertyO
To post a comment you must log in.
Reviewers: mp+142572_ code.launchpad. net,
Message:
Please take a look.
Description:
Use recess as CSS linter
This is the first step to implementing a CSS linter (recess). rder). There is one work-around in place in /github. com/twitter/ recess/ issues/ 22 in
Currently, most of the options are turned off in order to keep this
slack task short, so our LESS file passes the linter. Further slack
tasks may be created for options that we decide to turn on down the road
(personal suggestions: noOverqualifying and zeroUnits, ambivalent about
strictPropertyO
lib/templates.js due to https:/
that recess is called twice - once to lint and once to compile - in
order to side-step an OOM error. This is still quite fast, and not used
in production.
https:/ /code.launchpad .net/~makyo/ juju-gui/ recess/ +merge/ 142572
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/7067057/
Affected files:
M Makefile
A [revision details]
M lib/templates.js
M package.json
A recess.json
Index: Makefile modules/ minimatch node_modules/mocha node_modules/ node-markdown \ modules/ node-minify node_modules/ node-spriteshee t \ modules/ rimraf node_modules/should node_modules/yui \ yuidocjs yuidocjs node_modules/recess NODE_TARGETS= $(shell echo "$(NODE_TARGETS)" | tr ' ' '\n' | sort \
=== modified file 'Makefile'
--- Makefile 2012-12-21 12:52:30 +0000
+++ Makefile 2013-01-09 18:36:08 +0000
@@ -38,7 +38,7 @@
node_
node_
node_
- node_modules/
+ node_modules/
EXPECTED_
| tr '\n' ' ')
@@ -223,7 +223,10 @@
yuidoc-lint: $(JSFILES)
bin/lint-yuidoc
-lint: gjslint jshint yuidoc-lint stylesheet. less --config recess.json | grep -q Perfect
+recess: node_modules/recess
+ recess lib/views/
+
+lint: gjslint jshint recess yuidoc-lint
virtualenv/ bin/gjslint virtualenv/ bin/fixjsstyle:
virtualenv virtualenv
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: package.json node-markdown" : "0.1.x",
=== modified file 'package.json'
--- package.json 2013-01-09 16:42:50 +0000
+++ package.json 2013-01-09 17:23:33 +0000
@@ -24,6 +24,7 @@
"chai": ">=1.2.0",
"less": "1.3.x",
"jshint": ">=0.9.1",
+ "recess": "1.1.x",
"
"yuidocjs": "0.3.x",
"minimatch": "0.2.x",
Index: recess.json Order": false,
=== added file 'recess.json'
--- recess.json 1970-01-01 00:00:00 +0000
+++ recess.json 2013-01-09 18:36:08 +0000
@@ -0,0 +1,7 @@
+{
+ "compile": false,
+ "noIDs": false,
+ "noOverqualifying": false,
+ "strictProperty
+ "zeroUnits": false
+}
Index: lib/templates.js 'child_ process' ).exec, './view. js'), '../config. js').config,
=== modified file 'lib/templates.js'
--- lib/templates.js 2012-12-20 21:59:21 +0000
+++ lib/templates.js 2013-01-09 18:37:46 +0000
@@ -5,7 +5,7 @@
exec = require(
YUI = require('yui').YUI,
view = require(
- less = require('less'),
+ recess = require('recess'),
config = require(
...