Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed lint warnings

  • Loading branch information...
commit 5332930da3bf8208930ebe2cc3cf35e913589829 1 parent ebf6142
@davglass davglass authored
Showing with 35 additions and 34 deletions.
  1. +35 −34 lib/module.js
View
69 lib/module.js
@@ -342,9 +342,9 @@ var buildSkin = function (mod, name, callback) {
var stack = new Stack(),
from = path.join(process.cwd(), 'assets'),
to = path.join(buildDir, name, 'assets');
-
- ncp(from, to, stack.add(function() {
+
+ ncp(from, to, stack.add(function () {
//Get list of Skins
fs.readdir(path.join(process.cwd(), 'assets/skins'), stack.add(function (err, skins) {
@@ -356,38 +356,39 @@ var buildSkin = function (mod, name, callback) {
registry: registry
}),
base = path.join(process.cwd(), 'assets/skins/', skinName);
-
- queue.read([
- path.resolve(base, '../../', name + '-core.css'),
- path.join(base, name + '-skin.css')
- ])
- .log('copying assets to skin for ' + skinName)
- .concat()
- .csslint(cssLint)
- .cssstamp({
- stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.skin-' + skinName + '-' + name + ' { display: none; }'
- })
- .compressor({
- 'line-break': 6000,
- type: 'css'
- })
- .log('writing skin file with core wrapper')
- .write(path.join(buildDir, name, 'assets', 'skins', skinName, name + '.css'))
- .run(stack.add(function () {
-
- //Write the skin file without core
- var Rqueue = new Queue({
- logger: log,
- registry: registry
- });
- Rqueue.read([
- path.join(base, name + '-skin.css')
- ])
- .log('writing skin file without core wrapper')
- .write(path.join(buildDir, name, 'assets', 'skins', skinName, name + '-skin.css'))
- .run(stack.add(function () {
- }));
- }));
+
+ queue.read([
+ path.resolve(base, '../../', name + '-core.css'),
+ path.join(base, name + '-skin.css')
+ ])
+ .log('copying assets to skin for ' + skinName)
+ .concat()
+ .csslint(cssLint)
+ .cssstamp({
+ stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.skin-' + skinName + '-' + name + ' { display: none; }'
+ })
+ .compressor({
+ 'line-break': 6000,
+ type: 'css'
+ })
+ .log('writing skin file with core wrapper')
+ .write(path.join(buildDir, name, 'assets', 'skins', skinName, name + '.css'))
+ .run(stack.add(function () {
+
+ //Write the skin file without core
+ var Rqueue = new Queue({
+ logger: log,
+ registry: registry
+ });
+
+ Rqueue.read([
+ path.join(base, name + '-skin.css')
+ ])
+ .log('writing skin file without core wrapper')
+ .write(path.join(buildDir, name, 'assets', 'skins', skinName, name + '-skin.css'))
+ .run(stack.add(function () {
+ }));
+ }));
});
}));
Please sign in to comment.
Something went wrong with that request. Please try again.