Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4131b755
Commit
4131b755
authored
Jan 05, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated build script and readme with build instructions
parent
62af885c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
+26
-20
.bra.toml
+2
-2
Makefile
+0
-18
README.md
+23
-0
build.go
+1
-0
No files found.
.bra.toml
View file @
4131b755
[run]
[run]
init_cmds
=
[
init_cmds
=
[
[
"
make"
,
"build
"
],
[
"
go"
,
"build"
,
"-o"
,
"./bin/grafana
"
],
[
"./bin/grafana"
,
"web"
]
[
"./bin/grafana"
,
"web"
]
]
]
watch_all
=
true
watch_all
=
true
...
@@ -12,6 +12,6 @@ watch_dirs = [
...
@@ -12,6 +12,6 @@ watch_dirs = [
watch_exts
=
[
".go"
,
".ini"
]
watch_exts
=
[
".go"
,
".ini"
]
build_delay
=
1500
build_delay
=
1500
cmds
=
[
cmds
=
[
[
"make"
,
"build
"
],
[
"go"
,
"build"
,
"-o"
,
"./bin/grafana
"
],
[
"./bin/grafana"
,
"web"
]
[
"./bin/grafana"
,
"web"
]
]
]
Makefile
deleted
100644 → 0
View file @
62af885c
all
:
build
build
:
go build
-o
bin/grafana .
go
test
./pkg/...
lint
:
@
gofmt
-w
pkg
&&
go tool vet pkg/
**
/
*
.go
&&
echo
"
$(GOLINT)
"
setup
:
go get github.com/tools/godep
go install github.com/mattn/go-sqlite3
README.md
View file @
4131b755
Work in progress Grafana 2.0 (with included Grafana backend)
Work in progress Grafana 2.0 (with included Grafana backend)
[
![wercker status
](
https://app.wercker.com/status/0f109051cfaf2a6d94c0eebdc0dcaeae/s
"wercker status"
)
](https://app.wercker.com/project/bykey/0f109051cfaf2a6d94c0eebdc0dcaeae)
[
![wercker status
](
https://app.wercker.com/status/0f109051cfaf2a6d94c0eebdc0dcaeae/s
"wercker status"
)
](https://app.wercker.com/project/bykey/0f109051cfaf2a6d94c0eebdc0dcaeae)
## building and running
```
go run build.go setup (only needed once to install godep)
go run build.go build
```
For quicker builds:
```
godep restore (will pull down all golang lib dependecies in your current GOPATH)
go build -o ./bin/grafana .
```
To build less to css for frontend:
```
cd grafana
npm install
npm install -g grunt-cli
grunt
```
build.go
View file @
4131b755
...
@@ -84,6 +84,7 @@ func main() {
...
@@ -84,6 +84,7 @@ func main() {
func
setup
()
{
func
setup
()
{
runPrint
(
"go"
,
"get"
,
"-v"
,
"github.com/tools/godep"
)
runPrint
(
"go"
,
"get"
,
"-v"
,
"github.com/tools/godep"
)
runPrint
(
"go"
,
"install"
,
"-v"
,
"github.com/mattn/go-sqlite3"
)
}
}
func
test
(
pkg
string
)
{
func
test
(
pkg
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment