GithubHelp home page GithubHelp logo

carmudii / ios-project-template Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 452 KB

iOS Modular MVVM Template Generator for iOS

License: MIT License

Swift 72.42% Ruby 13.27% Shell 14.31%
modular-architecture swift template-project xcode xcode-templates

ios-project-template's Introduction

Bash Script for Project Setup

This script automates the setup process for iOS projects and modules by renaming files, folders, and replacing placeholders in template files. It also adds dependencies to the Podfile for modules.

Usage

  1. Make sure you have Bash installed on your system.
  2. Clone this repository or copy the script content into a new file.
  3. Run the script using the following command:

./generate.sh or ./osascript.sh

Functions

add_line_above_marker()

This function adds a line above a specified marker in a file. It is used to add dependencies to the Podfile for iOS modules.

rename_files_and_folders()

This function recursively renames files and folders and replaces placeholders in template files based on the provided project details.

Instructions

  1. When prompted, select the project type: iOS Project or iOS Module.
  2. Provide the necessary project details such as project path, package name, project name, and module prefix.
  3. Wait for the script to complete the setup process.

Important Notes

  • Ensure that the script file has executable permissions.
  • Make sure to provide valid input when prompted to avoid errors during setup.
  • If you're setting up an iOS module, dependencies will be added to the Podfile automatically.

Reminder

Don't forget to embed the framework module:

Embed Framework

License

This script is licensed under the MIT License. See the LICENSE file for details.

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.