 cb76de7e17
			
		
	
	cb76de7e17
	
	
	
		
			
			Required by the image-diff plugin. There does not seem to be any easy way to add bower dependencies inside plugins without adding them to core. Building image-diff never seemed to work for a normal user. Im not entirely sure how google got it working. Bug: Issue 9911 Change-Id: I08499c86e236a1c3861b78ba698dbd4a3bc811d8
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//lib/js:bower_components.bzl", "define_bower_components")
 | |
| load("//tools/bzl:js.bzl", "bower_component", "js_component")
 | |
| 
 | |
| package(default_visibility = ["//visibility:public"])
 | |
| 
 | |
| # For importing new versions of existing bower packages,
 | |
| #
 | |
| # 1) edit the versions of 'seed' components in WORKSPACE as desired
 | |
| #
 | |
| # 2) Run: 'python tools/js/bower2bazel.py -w lib/js/bower_archives.bzl -b lib/js/bower_components.bzl', to update dependency versions.
 | |
| #
 | |
| 
 | |
| # For adding a new component as dependency to a bower_component_bundle
 | |
| #
 | |
| # 1) add a new bower_archive in WORKSPACE
 | |
| #
 | |
| # 2) add bower_component(name="my_new_dependency", seed=True) here
 | |
| #
 | |
| # 3) run bower2bazel (see above.)
 | |
| #
 | |
| # 4) remove bower_component(name="my_new_dependency", .. ) here
 | |
| #
 | |
| 
 | |
| define_bower_components()
 | |
| 
 | |
| js_component(
 | |
|     name = "highlightjs",
 | |
|     srcs = ["//lib/highlightjs:highlight.min.js"],
 | |
|     license = "//lib:LICENSE-highlightjs",
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "highlightjs_files",
 | |
|     srcs = ["//lib/highlightjs:highlight.min.js"],
 | |
|     data = ["//lib:LICENSE-highlightjs"],
 | |
| )
 | |
| 
 | |
| js_component(
 | |
|     name = "ba-linkify",
 | |
|     srcs = ["//lib/ba-linkify:ba-linkify.js"],
 | |
|     license = "//lib:LICENSE-ba-linkify",
 | |
| )
 | |
| 
 | |
| bower_component(
 | |
|     name = "codemirror-minified",
 | |
|     license = "//lib:LICENSE-codemirror-minified",
 | |
| )
 | |
| 
 | |
| bower_component(
 | |
|     name = "resemblejs",
 | |
|     license = "//lib:LICENSE-resemblejs",
 | |
| )
 |