component-builder
Advanced tools
Comparing version 0.8.1 to 0.8.2
0.8.2 / 2013-05-13 | ||
================== | ||
* fix .basename for root components not in a directory of the same config `.name` | ||
* fix improper asset rewrite url join on windows. Closes #94 | ||
* fix copy/link attempts to files that ENOENT | ||
0.8.1 / 2013-04-26 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -46,3 +46,2 @@ /** | ||
this.parent = parent; | ||
this.basename = basename(dir); | ||
this.globalLookupPaths = []; | ||
@@ -61,2 +60,6 @@ this.lookupPaths = []; | ||
this.config.paths = this.config.paths || []; | ||
this.basename = this.root | ||
? this.config.name | ||
: basename(dir); | ||
@@ -750,9 +753,13 @@ // root level lookup paths are | ||
if (err) return fn(err); | ||
if (self.copy){ | ||
debug('cp %s -> %s', file, dest); | ||
cp(file, dest, done); | ||
} else { | ||
debug('link %s -> %s', file, dest); | ||
fs.symlink(file, dest, done); | ||
} | ||
fs.exists(file, function(exists){ | ||
if (!exists) return fn(new Error('Path does not exist: ' + file)); | ||
if (self.copy){ | ||
debug('cp %s -> %s', file, dest); | ||
cp(file, dest, done); | ||
} else { | ||
debug('link %s -> %s', file, dest); | ||
fs.symlink(file, dest, done); | ||
} | ||
}); | ||
}); | ||
@@ -946,3 +953,3 @@ }; | ||
var name = normalize(builder.basename); | ||
url = join(builder.urlPrefix, '/', name, dirname(file), url); | ||
url = [builder.urlPrefix, name, dirname(file), url].join('/'); | ||
return 'url("' + url + '")'; | ||
@@ -949,0 +956,0 @@ } |
{ | ||
"name": "component-builder", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Component build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28295
859