Comparing version 1.0.0-alpha4 to 1.0.0-alpha5
@@ -5,2 +5,7 @@ # Change Log | ||
## [1.0.0-alpha5] - 2016-05-18 | ||
### Changed | ||
- Files ending `.jade` are now recognized as Pug templates when a directory is provided as input. | ||
## [1.0.0-alpha4] - 2016-05-18 | ||
@@ -72,3 +77,4 @@ | ||
[unreleased]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha4...master | ||
[unreleased]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha5...master | ||
[1.0.0-alpha5]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha4...1.0.0-alpha5 | ||
[1.0.0-alpha4]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha3...1.0.0-alpha4 | ||
@@ -75,0 +81,0 @@ [1.0.0-alpha3]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha2...1.0.0-alpha3 |
@@ -243,5 +243,5 @@ #!/usr/bin/env node | ||
function renderFile(path, rootPath) { | ||
var re = /\.pug$/; | ||
var re = /\.(?:pug|jade)$/; | ||
var stat = fs.lstatSync(path); | ||
// Found pug file/\.pug$/ | ||
// Found pug file | ||
if (stat.isFile() && re.test(path)) { | ||
@@ -305,3 +305,3 @@ // Try to watch the file if needed. watchFile takes care of duplicates. | ||
function getNameFromFileName(filename) { | ||
var file = basename(filename, '.pug'); | ||
var file = basename(filename).replace(/\.(?:pug|jade)$/, ''); | ||
return file.toLowerCase().replace(/[^a-z0-9]+([a-z])/g, function (_, character) { | ||
@@ -308,0 +308,0 @@ return character.toUpperCase(); |
{ | ||
"name": "pug-cli", | ||
"version": "1.0.0-alpha4", | ||
"version": "1.0.0-alpha5", | ||
"description": "Pug's CLI interface", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
39391