2dfire-cli
Advanced tools
+6
-2
@@ -24,4 +24,8 @@ const fs = require('fs-extra') | ||
| name: '_pageName', | ||
| validate(val) { | ||
| return val.trim() ? true : 'You must provide a page name' | ||
| validate(val = '') { | ||
| val = val.trim().toLowerCase() || 'base' | ||
| if (['static', 'base', '__base__'].includes(val)) { | ||
| return '你必须提供一个有效的名字' | ||
| } | ||
| return true | ||
| } | ||
@@ -28,0 +32,0 @@ } |
+1
-1
| { | ||
| "name": "2dfire-cli", | ||
| "version": "1.9.5", | ||
| "version": "1.9.6", | ||
| "description": "cli", | ||
@@ -5,0 +5,0 @@ "author": "danfan", |
38268
0.38%744
0.54%