Skip to content

Sophed/mkpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkpr — make project

Fast Zig CLI tool to create projects from a set of opinionated language templates

CLI tool showcase

Usage

mkpr <template> <project-name>

  • Use mkpr ls for a list of templates

Motive

Originally based on my project golaunch, mkpr is intended to be a comprehensive set of utility scripts and templates for my personal projects.

Just was chosen as the command runner of choice for its flexibility and simple shell-like syntax. Simply running just build and having a cohesive toolchain is far easier and less headache than having build scripts with different syntax for each language I use for a project.

Installing

  • I'll add to some package repos eventually
  • Until then, there is binaries available in releases

Building

  • Requires zig version 0.14.0 and just installed
git clone https://github.com/Sophed/mkpr
cd mkpr
just build
  • Output binaries can be found in zig-out/bin/

Available Templates

Go

  • Requires go installed
Click to view project structure
  example
  ├── .gitignore <- language specific ignores
  ├─ app
  │  ├─ main.go
  │  └─ main_test.go
  ├─ build
  │  └─ bin <- output binary
  ├─ go.mod
  ├─ justfile <- build/run/test scripts
  ├─ LICENSE <- auto generated MIT license from username/current year
  └─ README.md <- auto generated with project name

Rust

  • Requires cargo installed
  • The built in cargo init was mostly sufficient, this template just adds meta files
Click to view project structure
  example
  ├── .gitignore <- language specific ignores
  ├── Cargo.lock
  ├── Cargo.toml
  ├── justfile <- build/run/test scripts
  ├── LICENSE <- auto generated MIT license from username/current year
  ├── README.md <- auto generated with project name
  ├── src
  │   └── main.rs
  ├── target
  │   └── ...
  └── tests
      └── example_test.rs

Zig

  • Requires zig installed (only version 0.14.0 tested, newer versions should still work)
Click to view project structure
  example
  ├── .gitignore <- language specific ignores
  ├── build.zig
  ├── build.zig.zon
  ├── justfile <- build/run scripts
  ├── LICENSE <- auto generated MIT license from username/current year
  ├── README.md <- auto generated with project name
  └── src
      └── main.zig

About

⚡ fast Zig CLI tool to create projects from a set of opinionated language templates

Topics

Resources

License

Stars

Watchers

Forks