Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthrp/quick-skeleton
Simple tool for scaffolding
https://github.com/arthrp/quick-skeleton
hacktoberfest handlebars rust scaffolding
Last synced: 7 days ago
JSON representation
Simple tool for scaffolding
- Host: GitHub
- URL: https://github.com/arthrp/quick-skeleton
- Owner: arthrp
- License: gpl-3.0
- Created: 2017-06-10T19:17:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T19:16:33.000Z (almost 4 years ago)
- Last Synced: 2024-08-09T10:16:24.400Z (3 months ago)
- Topics: hacktoberfest, handlebars, rust, scaffolding
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-cn - arthrp/quick-skeleton - ci.org/arthrp/quick-skeleton.svg?branch=master">](https://travis-ci.org/arthrp/quick-skeleton) (应用 / Utilities)
- awesome-rust - arthrp/quick-skeleton - ci.org/arthrp/quick-skeleton.svg?branch=master">](https://travis-ci.org/arthrp/quick-skeleton) (Applications / Utilities)
- awesome-rust-zh - arthrp/quick-skeleton - 项目脚手架工具,类似于 Yeoman 和 Slush。[<img src="https://api.travis-ci.org/arthrp/quick-skeleton.svg?branch=master">](https://travis-ci.org/arthrp/quick-skeleton) (应用 / 实用)
- awesome-rust - arthrp/quick-skeleton - ci.org/arthrp/quick-skeleton.svg?branch=master">](https://travis-ci.org/arthrp/quick-skeleton) (应用 Applications / 公用事业 Utilities)
README
# quick-skeleton
[![Build Status](https://travis-ci.org/arthrp/quick-skeleton.svg?branch=master)](https://travis-ci.org/arthrp/quick-skeleton)
[![Crates.io status](https://img.shields.io/badge/crates.io-v0.4.7-orange.svg?longCache=true)](https://crates.io/crates/quickskeleton)**tldr;** Lightweight replacement for [yeoman](http://yeoman.io/) or [slush](http://slushjs.github.io). Powered by [handlebars](https://github.com/wycats/handlebars.js).
This is a scaffolding tool to save you hours of writing boilerplate code for your new project. Many langugages have tools that help you create a project skeleton in a matter of seconds (e.g. in Rust you can use ```cargo``` for that), but this tool isn't tied to any particular language or ecosystem. Just like Yeoman, you can use it for anything. Unlike Yeoman, it tries to be totally simple and does only one thing: replaces Handlebars expressions with values that you provide.
### Template structure
Template is essentially a zip archive that must contain a file called **parameters.json**. That file contains a JSON array with all the expressions that will be replaced with user-provided values. The format is as follows:
```
[{
"name" : "example", //This is the name of expression
"value": "", //Default value (currently always overwritten by user's input)
"desc": "Provide example value" //Text that will be shown to user when asking for value
}
]
```
Example from *simple_page* template:
```
{
"name" : "title",
"value": "My sample title",
"desc": "Input title"
}
```
All the other files in archive will be extracted and expressions inside them will be processed by Handlebars engine.### Installation
You can install it from crates.io by invoking ```cargo install quickskeleton```.
Or you can check out the code and run ```cargo install```.
### Usage
```quick-skeleton -c [path to template]``` You can use simple_page.zip in project's root to create, well, simple web page. ```quick-skeleton -c simple_page.zip```
```quick-skeleton -n [forder path] -file [default project folder name]``` - create template from folder. Creates template without variables.
There is a [repo](https://github.com/arthrp/quick-skeleton-templates) with various templates.