@nutui/draw-page-structure
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -9,3 +9,3 @@ | ||
output: { | ||
filepath: '${conf.filepath}', // 生成骨架屏的存放页面,一般为项目的入口页面 | ||
filepath: '${conf.filepath.toString()}', // 生成骨架屏的存放页面,一般为项目的入口页面 | ||
injectSelector: '#app' // 生成的骨架屏插入页面的节点 | ||
@@ -12,0 +12,0 @@ }, |
@@ -26,3 +26,3 @@ #!/usr/bin/env node | ||
askForConfig().then(ans => { | ||
const outputPath = path.resolve(process.cwd(), ans.filepath) | ||
const outputPath = path.resolve(process.cwd(), ans.filepath).replace(/\\/g, '\\\\') | ||
prompts({ | ||
@@ -29,0 +29,0 @@ type: 'toggle', |
{ | ||
"name": "@nutui/draw-page-structure", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "a way to make skeleton screen", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -6,3 +6,3 @@ const chalk = require('chalk'); | ||
if(str.length > 40) { | ||
return str.slice(0, 15) + '.../' + (str.match(/([^\/\\]+)$/) || ['', ''])[1]; | ||
return str.slice(0, 15) + '...' + (str.match(/([\/\\][^\/\\]+)$/) || ['', ''])[1]; | ||
} | ||
@@ -9,0 +9,0 @@ return str; |
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
18028