Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fis-plus是否提供初始化新目录的命令 #112

Open
lshbyy opened this issue Sep 9, 2016 · 2 comments
Open

fis-plus是否提供初始化新目录的命令 #112

lshbyy opened this issue Sep 9, 2016 · 2 comments

Comments

@lshbyy
Copy link

lshbyy commented Sep 9, 2016

fis-plus对项目的目录结构及目录的名称是有要求的,widget、page、fis-conf.js 等并列的目录组成。我的疑问是,现在新建一个新的文件夹 fisp-demo,fis-plus是否有提供一个命令或者方法可以自动将fisp-demo 这个空目录变成符合fis-plus 目录结构、名称的要求 。而不是 手动去一一创建fis-plus要求的目录结构及名称。

@lshbyy lshbyy changed the title fis-plus是否听过初始化新目录的命令 fis-plus是否提供初始化新目录的命令 Sep 9, 2016
@YangYule
Copy link

YangYule commented Jan 9, 2017

同求,类似于npm init的命令

@oxUnd
Copy link
Contributor

oxUnd commented Jan 10, 2017

> $ fisp init -h

  Usage: init <command> [options]

  Commands:

    module                 create a module
    widget                 create a widget

  Options:

    -h, --help                 output usage information
    -s, --scaffold <scaffold>
    -d, --dir <name>           create to dir
    --with-plugin              if create a module, whether include `plugin`
    --repos <url>              repository
    --verbose                  output verbose help
    --list [query]             list component from the repos
    --ld <left_delimiter>      smarty left_delimiter
    --rd <right_delimiter>     smarty right_delimiter

  Examples:

    $ fisp init module -d ./to/directory/other
    $ fisp init module -d ./to/directory/common --with-plugin
    $ fisp init module -d ./to/directory/other --ld '<%' --rd '%>'
    $ fisp init widget -d ./widget/box
    $ fisp init modjs //just download 'modjs'

15年就有这个功能了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants