graphite
Version, currently master branch1 version
- master branchlatestOct 9, 2019
github.com/nganhkhoa/graphite
Currently in re-design
Installation
# Add this to your shard.yml
dependencies:
graphite:
github: nganhkhoa/graphite
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.27.1- License
- MIT
- Author
- Nguyễn Anh Khoa
- Target
graphitefrom src/graphite.cr
Dependencies
This version declares no dependencies.
README
Graphite
A tool to automatically create an app folder by github/tarball.
Build
crystal build src/graphite.cr
Usage
Prepare a yaml file, the syntax like the example setting.yml and place it in an empty folder. Run graphite install, it will create the bellowing file structure, clone the app in setting.yml, build the app with the given commands, and make a symlink (also predefined in setting.yml).
GRAPHITE/
├── app
├── bin
├── include
└── lib
The general command is graphite [options] [apps].
After that, just modify your path to contains GRAPHITE, like below.
# path file
export PATH=~/GRAPHITE/bin:$PATH
# ld lib files
export LD_LIBRARY_PATH=~/GRAPHITE/lib:$LD_LIBRARY_PATH
# gcc and g++ header files
export LIBRARY_PATH=~/GRAPHITE/include:$LIBRARY_PATH
Not usable with tools requires setting in shell (pyenv, nvm, ...). This could be solve by adding those in a config file and source it. WORK IS TO BE DONE.
# ~/.bashrc
source ~/GRAPHITE/conf.bash
# ~/GRAPHITE/conf.bash
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
For application that requires itself to build, (crystal, yarn), give it a tar.gz file download link with the command path after extraction. It will use the binary downloaded to build, for exactly, it add the folder to path.
For application that requires others to build first, this will be solved by making a topology before running the main worker. WORK IS TO BE DONE.
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/graphite/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Nguyễn Anh Khoa - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 9, 2019
- Crystal
0.27.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nganhkhoa/graphite
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1