GitXplorerGitXplorer
n

graphite

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
7448049d2432de0134a0f4b9b6b48ae8255a15c6

Version 1.0.0-alpha

committed 6 years ago
Unverified
9481c96785fab52a6d3a2a4665d43362ff38ef1b

feature: enable install app require it self via binary tarball download

committed 6 years ago
Unverified
9ae5dda8bfd0bcd156c02bd3dc3f9f8e4e0b3c52

fix: typo in graphite build

committed 6 years ago
Unverified
f3b3ae7d08fb5f058b5c58382debb6a2bed27c73

update: README.md

committed 6 years ago
Unverified
03c6b7147e66f6dc4c13a8990b7a92e7064def97

update: new setting.yml

committed 6 years ago
Unverified
4a0b49b17f37656e56696074f6f0f6a1599ce769

Merge remote-tracking branch 'origin/master'

committed 6 years ago

README

The README file for this repository.

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

  1. Fork it (https://github.com/your-github-user/graphite/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors