File tree Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change
1
+ all : deps build
2
+
3
+ deps :
4
+ go run build.go setup
5
+ godep restore
6
+ npm install
7
+
8
+ build :
9
+ go run build.go build
10
+ npm run build
11
+
12
+ test :
13
+ godep go test -v ./pkg/...
14
+ npm test
15
+
16
+ run :
17
+ ./bin/grafana-server
Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ npm (v2.5.0) and grunt (v0.4.5). Run the following:
103
103
104
104
``` bash
105
105
npm install
106
- npm install -g grunt-cli
107
- grunt
106
+ npm run build
108
107
```
109
108
110
109
### Recompile backend on source change
@@ -145,4 +144,3 @@ please [sign the CLA](http://docs.grafana.org/project/cla/)
145
144
146
145
Grafana is distributed under Apache 2.0 License.
147
146
Work in progress Grafana 2.0 (with included Grafana backend)
148
-
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ func ChangeWorkingDir(dir string) {
306
306
}
307
307
308
308
func grunt (params ... string ) {
309
- runPrint ("./node_modules/grunt-cli/ bin/grunt" , params ... )
309
+ runPrint ("./node_modules/. bin/grunt" , params ... )
310
310
}
311
311
312
312
func setup () {
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ test:
25
25
# Go test
26
26
- godep go test -v ./pkg/...
27
27
# js tests
28
- - ./node_modules/grunt-cli/bin/grunt test
28
+ - npm test
29
29
- npm run coveralls
30
30
31
31
deployment :
32
32
master :
33
33
branch : master
34
34
owner : grafana
35
- commands :
35
+ commands :
36
36
- ./trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
Original file line number Diff line number Diff line change 62
62
"npm" : " 2.14.x"
63
63
},
64
64
"scripts" : {
65
+ "build" : " grunt" ,
65
66
"test" : " grunt test" ,
66
67
"coveralls" : " grunt karma:coveralls && rm -rf ./coverage"
67
68
},
You can’t perform that action at this time.
0 commit comments