GithubHelp home page GithubHelp logo

shtgenerater's Introduction

SHTGenerater

Swift Package Manager compatible License MIT

SHTGenerater 是十荟团系列项目生成子模块基础目录结构和基础代码文件的命令行工具

安装

下载

git clone [email protected]:nicetuan/app/ios/shtgenerater.git

git clone http://gitlaball.nicetuan.net/nicetuan/app/ios/shtgenerater.git

自动安装

bash

cd SHTGenerater
./install_bash.sh

zsh

cd SHTGenerater
./install_zshrc.sh

手动安装

bash

cd SHTGenerater
swift build -c release
echo "export PATH=\"\$PATH:$(pwd)/.build/release\"" >> ~/.bash_profile
source ~/.bash_profile

zsh

cd SHTGenerater
swift build -c release
echo "export PATH=\"\$PATH:$(pwd)/.build/release\"" >> ~/.zshrc
source ~/.zshrc

使用

Generators

在当前目录(推荐项目代码目录)执行声明

# 创建业务模块
SHTGenerater generate Module Name 

选项
  --force, -f
  强制重写已存在的文件
  --iglistkit, -ig
  使用基于IGListKit生成的模板代码,VC,Cell 及 Model 和 ViewModel 均会依赖 IGListKit

也可以写成 SHTGenerater g 等同于 SHTGenerater generate

环境要求

  • Xcode 10
  • Swift 5

Contact

License

SHTGenerater is released under the MIT License.

shtgenerater's People

Watchers

孟庆成 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.