fis3-command-vim
a scaffold for offline development
Last updated 3 years ago by geek-albin .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fis3-command-vim 
SYNC missed versions from official npm registry.

fis3-command-vim

a scaffold for offline development

##安装

npm install fis3-command-vim

##配置方式


fis.set('vim.src','scaffold/');
fis.set('vim.pageDir','views/');
fis.set('vim.pageExt','.jade');
fis.set('vim.widgetDir','src/apps/');
fis.set('vim.widgetJsExt','.es6');

或者


fis.set('vim',{
	src:'scaffold/',
	pageDir:'views/',
	pageExt:'.jade',
	widgetDir:'src/apps/',
	widgetJsExt:'.es6',
    widgetCssExt:'.less',
    widgetTplExt:'.tpl'
})

##运行

fis3 vim -n xxx or fis3 vim --name xxx

自动在 views/ 目录下生成 xxx.jade. 在 src/apps/ 目录下生成 xxx/index.es6 , xxx/index.less , xxx/index.tpl 文件模板来自 scaffold/ 的 index.jade , index.es6 , index.less , index.tpl.

##TODO

去掉后缀名配置, 直接取 scaffold/ 目录下文件模板后缀。

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

2 Versions

  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |