Skip to content

lvsecoto/masons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

自动代码生成模版

为了方便开发,利用mason帮助生成代码

用法

安装mason

dart pub global activate mason_cli

安装brick作为插件,这里用create_page作为例子,全局安装。项目级别的安装参考官方文档

mason add create_page -g --git-url '[email protected]:6240585956f85235f7dd77d1/app/mason_brick.git' --git-path 'create_page'

然后运行:

mason make create_page --name "test me"

就会生成:

  • test_me/provider/provider.dart
  • test_me/widget/widget.dart
  • test_me/test_me.dart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published