Code Monkey home page Code Monkey logo

go-spirit

go-spirit is a tools for build spirit component

Install go-spirit

install

go get github.com/go-spirit/go-spirit

if do not install, please run

go install github.com/go-spirit/go-spirit

update

go get -u github.com/go-spirit/go-spirit

Run todo project

pull project source

> go-spirit pull --config build.conf
INFO[0000] fetched    fetcher=goget revision=master url=github.com/spirit-component/examples/todo
INFO[0000] checkout   fetcher=goget revision=master url=github.com/spirit-component/examples/todo
INFO[0000] fetched    fetcher=goget revision=master url=github.com/spirit-component/postapi
INFO[0000] checkout   fetcher=goget revision=master url=github.com/spirit-component/postapi

build project

go-spirit build --config build.conf
INFO[0000] building                                      project=todo

build.conf

use goget fetcher

# project
todo  {

	# import packages
	packages = ["github.com/spirit-component/examples/todo", "github.com/spirit-component/postapi"]

	build-args = []

	fetchers {
		git {
		}
		goget {
		}
	}


	# the dependencies
	repos = {
		todo {
			fetcher = goget
			args = ["-v"]
			url = "github.com/spirit-component/examples/todo"
			revision = master
		}

		postapi {
			fetcher = goget
			args = ["-v"]
			url = "github.com/spirit-component/postapi"
			revision = master
		}
	}
}

use git fetcher

# project
todo  {

	# import packages
	packages = ["github.com/spirit-component/examples/todo", "github.com/spirit-component/postapi"]

	build {
		args = {
			go-get = ["-v"]
			go-build = ["-v"]
		}

		target {
			linux = ["amd64"]
			darwin = ["amd64"]
		}
	}

	fetchers {
		git {
		}
		goget {
		}
	}


	# the dependencies
	repos = {
		todo {
			fetcher = git
			args = {
				clone = []
				pull = []
			}
			url = "[email protected]:spirit-component/examples.git"
			revision = master
			dir = "github.com/spirit-component"
		}

		postapi {
			fetcher = git
			args = {
				clone = []
				pull = []
			}
			url = "[email protected]:spirit-component/postapi.git"
			revision = master
			dir = "github.com/spirit-component"
		}
	}
}

go-spirit's Projects

cli icon cli

fork from urfave/cli

go-spirit icon go-spirit

go-spirit is a tools for build spirit component

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.