Giter Club home page Giter Club logo

blaupause's Introduction

Blaupause

Is the missing template generator for creating VIPER, MVC, MVVM, etc. templates for your Projects.

Installation

Using pre build package

You find the latest build in bin/Blaupause. Please consider that you are downlaoding this from the master branch to get the newest stable binary file from Blaupause.

Compiling from source

Blaupause is build via spm (swift package manager) if you checkout the sources just run

swift build -c release

And you can find it in .build/release/Blaupause to run it from there.

Using

The usage is pretty simple just start

Usage to create a new VIPER Module

Blaupause viper FooBar

Usage to create a new MVC Module

Blaupause mvc FooBar

Usage to create a new MVVM Module

Blaupause mvvm FooBar

Usage to create a new structure from your template

Blaupause template FooBar

Searchs for a .blaupause.json file in the current path of Blaupause execution.

JSON Templates

Blaupause has the ability to create your own custom templates. If you want to create your own implementation Blaupause always checks the current execution path for a .blaupause.json file with the current implementation for a Template. Two different types are supported Folder and Files.

The JSON must always start with an array.

Folder

The Folder Type creates a Folder for you. Folder can hold children of different Folder and of Files.

JSON Notation

Creating a Folder without Children

{
  "type": "folder",
  "name": "FolderName",
  "children": null
}

Creating a Folder with Children

{
  "type": "folder",
  "name": "FolderName",
  "children": [
    {
    "type": "folder",
    "name": "FolderName",
    "children": null
    }
  ]
}

Files

The Files Type creates a File for you. A File can't hold chilrens.

JSON Notation

Creating a File

{
    "type": "file",
    "name": "FileName.fileEnding"
}

ToDo

  • Creating MVC Command
  • Creating MVVM Command
  • Error Handling if the Folder is already there
  • JSON Parsing for template files
  • Add ability to parse .blaupause.json files to create custom template that can be provided
  • Support for Template Files in your own .blaupause folder
  • Unit Testing
  • Create a wizard when starting without options
  • Publish it to Homebrew

blaupause's People

Contributors

mrs- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.