mirror of https://github.com/grafana/grafana.git
				
				
				
			Updated build and wercker file for new repo structure
This commit is contained in:
		
							parent
							
								
									e5fbbe96fd
								
							
						
					
					
						commit
						102c896046
					
				|  | @ -11,7 +11,7 @@ module.exports = function (grunt) { | |||
|     docsDir: 'docs/' | ||||
|   }; | ||||
| 
 | ||||
|   config.mode = grunt.option('mode') || 'standalone'; | ||||
|   config.mode = grunt.option('mode') || 'backend'; | ||||
|   config.modeOptions = { | ||||
|     zipSuffix: '', | ||||
|     requirejs: { | ||||
|  |  | |||
|  | @ -35,14 +35,13 @@ module.exports = function(grunt) { | |||
|       }); | ||||
|       grunt.config('clean.dest_dir', ['<%= destDir %>']); | ||||
|       grunt.config('copy.backend_bin', { | ||||
|         cwd: '../bin', | ||||
|         cwd: 'bin', | ||||
|         expand: true, | ||||
|         src: ['grafana'], | ||||
|         options: { mode: true}, | ||||
|         dest: '<%= tempDir %>' | ||||
|       }); | ||||
|       grunt.config('copy.backend_files', { | ||||
|         cwd: '../', | ||||
|         expand: true, | ||||
|         src: ['conf/*', 'vendor/**/*', '!conf/grafana.dev.ini'], | ||||
|         dest: '<%= tempDir %>' | ||||
|  |  | |||
|  | @ -24,15 +24,13 @@ build: | |||
|         code: | | ||||
|           go run build.go test | ||||
|     # frontend | ||||
|     - npm-install: | ||||
|         cwd: grafana/ | ||||
|     - npm-install | ||||
|     - grunt: | ||||
|         cwd: grafana/ | ||||
|         tasks: release --mode=backend | ||||
|         tasks: release | ||||
|     - script: | ||||
|         name: copy output | ||||
|         code: |- | ||||
|           rsync -rv "$WERCKER_SOURCE_DIR/grafana/dist/" "$WERCKER_OUTPUT_DIR" | ||||
|           rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR" | ||||
| deploy: | ||||
|   steps: | ||||
|     - add-to-known_hosts: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue