@vuepress/shared-utils
Advanced tools
Comparing version 1.0.0-alpha.25 to 1.0.0-alpha.26
@@ -7,2 +7,3 @@ exports.logger = require('./lib/logger') | ||
exports.parseFrontmatter = require('./lib/parseFrontmatter') | ||
exports.parseVueFrontmatter = require('./lib/parseVueFrontmatter') | ||
@@ -38,1 +39,3 @@ exports.unescapeHtml = require('./lib/unescapeHtml') | ||
exports.toAbsolutePath = require('./lib/toAbsolutePath') | ||
exports.performance = require('./lib/performance') |
@@ -9,9 +9,13 @@ const { indexRE } = require('./isIndexFile') | ||
// README.md -> / | ||
// README.vue -> / | ||
// foo/README.md -> /foo/ | ||
// foo/README.vue -> /foo/ | ||
return file.replace(indexRE, '/$1') | ||
} else { | ||
// foo.md -> /foo.html | ||
// foo.vue -> /foo.html | ||
// foo/bar.md -> /foo/bar.html | ||
// foo/bar.vue -> /foo/bar.html | ||
return `/${file.replace(extRE, '').replace(/\\/g, '/')}.html` | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
const indexRE = /(^|.*\/)(index|readme)\.md$/i | ||
const indexRE = /(^|.*\/)(index|readme)\.(md|vue)$/i | ||
@@ -3,0 +3,0 @@ function isIndexFile (file) { |
@@ -91,3 +91,3 @@ 'use strict' | ||
developer (...args) { | ||
if (process.env.VUEPRESS_ENV !== 'developer') { | ||
if (process.env.VUEPRESS_ENV !== 'developer' && !process.argv.includes('--developer')) { | ||
return | ||
@@ -94,0 +94,0 @@ } |
{ | ||
"name": "@vuepress/shared-utils", | ||
"version": "1.0.0-alpha.25", | ||
"version": "1.0.0-alpha.26", | ||
"description": "shared-utils for vuepress", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
24538
29
812