Merge "bazel: update bower packages."
This commit is contained in:
commit
f7aeca3234
15
lib/js/BUILD
15
lib/js/BUILD
@ -32,18 +32,3 @@ filegroup(
|
||||
srcs = [ "//lib/highlightjs:highlight.min.js" ],
|
||||
data = ['//lib:LICENSE-highlightjs',],
|
||||
)
|
||||
|
||||
bower_component(
|
||||
name = 'iron-test-helpers',
|
||||
seed = True,
|
||||
)
|
||||
|
||||
bower_component(
|
||||
name = 'test-fixture',
|
||||
seed = True,
|
||||
)
|
||||
|
||||
bower_component(
|
||||
name = 'web-component-tester',
|
||||
seed = True,
|
||||
)
|
||||
|
@ -6,6 +6,21 @@
|
||||
|
||||
load("//tools/bzl:js.bzl", "bower_archive")
|
||||
def load_bower_archives():
|
||||
bower_archive(
|
||||
name = "accessibility-developer-tools",
|
||||
package = "accessibility-developer-tools",
|
||||
version = "2.11.0",
|
||||
sha1 = "792cb24b649dafb316e7e536f8ae65d0d7b52bab")
|
||||
bower_archive(
|
||||
name = "async",
|
||||
package = "async",
|
||||
version = "1.5.2",
|
||||
sha1 = "1ec975d3b3834646a7e3d4b7e68118b90ed72508")
|
||||
bower_archive(
|
||||
name = "chai",
|
||||
package = "chai",
|
||||
version = "3.5.0",
|
||||
sha1 = "849ad3ee7c77506548b7b5db603a4e150b9431aa")
|
||||
bower_archive(
|
||||
name = "iron-a11y-announcer",
|
||||
package = "iron-a11y-announcer",
|
||||
@ -51,11 +66,36 @@ def load_bower_archives():
|
||||
package = "iron-validatable-behavior",
|
||||
version = "1.1.1",
|
||||
sha1 = "480423380be0536f948735d91bc472f6e7ced5b4")
|
||||
bower_archive(
|
||||
name = "lodash",
|
||||
package = "lodash",
|
||||
version = "3.10.1",
|
||||
sha1 = "2f207a8293c4c554bf6cf071241f7a00dc513d3a")
|
||||
bower_archive(
|
||||
name = "mocha",
|
||||
package = "mocha",
|
||||
version = "2.5.3",
|
||||
sha1 = "22ef0d1f43ba5e2241369c501ac648f00c0440c0")
|
||||
bower_archive(
|
||||
name = "neon-animation",
|
||||
package = "neon-animation",
|
||||
version = "1.2.4",
|
||||
sha1 = "e8ccbb930c4b7ff470b1450baa901618888a7fd3")
|
||||
bower_archive(
|
||||
name = "sinon-chai",
|
||||
package = "sinon-chai",
|
||||
version = "2.8.0",
|
||||
sha1 = "0464b5d944fdf8116bb23e0b02ecfbac945b3517")
|
||||
bower_archive(
|
||||
name = "sinonjs",
|
||||
package = "sinonjs",
|
||||
version = "1.17.1",
|
||||
sha1 = "a26a6aab7358807de52ba738770f6ac709afd240")
|
||||
bower_archive(
|
||||
name = "stacky",
|
||||
package = "stacky",
|
||||
version = "1.3.2",
|
||||
sha1 = "d6c07a0112ab2e9677fe085933744466a89232fb")
|
||||
bower_archive(
|
||||
name = "web-animations-js",
|
||||
package = "web-animations-js",
|
||||
|
@ -6,6 +6,18 @@
|
||||
|
||||
load("//tools/bzl:js.bzl", "bower_component")
|
||||
def define_bower_components():
|
||||
bower_component(
|
||||
name = "accessibility-developer-tools",
|
||||
license = "//lib:LICENSE-Apache2.0",
|
||||
)
|
||||
bower_component(
|
||||
name = "async",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "chai",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "es6-promise",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
@ -111,6 +123,12 @@ def define_bower_components():
|
||||
deps = [ ":polymer" ],
|
||||
seed = True,
|
||||
)
|
||||
bower_component(
|
||||
name = "iron-test-helpers",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
deps = [ ":polymer" ],
|
||||
seed = True,
|
||||
)
|
||||
bower_component(
|
||||
name = "iron-validatable-behavior",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
@ -119,6 +137,14 @@ def define_bower_components():
|
||||
":polymer",
|
||||
],
|
||||
)
|
||||
bower_component(
|
||||
name = "lodash",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "mocha",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "moment",
|
||||
license = "//lib:LICENSE-moment",
|
||||
@ -152,10 +178,43 @@ def define_bower_components():
|
||||
deps = [ ":polymer" ],
|
||||
seed = True,
|
||||
)
|
||||
bower_component(
|
||||
name = "sinon-chai",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "sinonjs",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "stacky",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
)
|
||||
bower_component(
|
||||
name = "test-fixture",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
seed = True,
|
||||
)
|
||||
bower_component(
|
||||
name = "web-animations-js",
|
||||
license = "//lib:LICENSE-Apache2.0",
|
||||
)
|
||||
bower_component(
|
||||
name = "web-component-tester",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
deps = [
|
||||
":accessibility-developer-tools",
|
||||
":async",
|
||||
":chai",
|
||||
":lodash",
|
||||
":mocha",
|
||||
":sinon-chai",
|
||||
":sinonjs",
|
||||
":stacky",
|
||||
":test-fixture",
|
||||
],
|
||||
seed = True,
|
||||
)
|
||||
bower_component(
|
||||
name = "webcomponentsjs",
|
||||
license = "//lib:LICENSE-polymer",
|
||||
|
@ -39,6 +39,7 @@ license_map = {
|
||||
# TODO(hanwen): remove these, and add appropriate license files under //lib
|
||||
"BSD": "polymer",
|
||||
"MIT": "polymer",
|
||||
"BSD-3-Clause": "polymer",
|
||||
}
|
||||
|
||||
# list of licenses for packages that don't specify one in their bower.json file.
|
||||
@ -47,8 +48,11 @@ package_licenses = {
|
||||
"fetch": "fetch",
|
||||
"moment": "moment",
|
||||
"page": "page.js",
|
||||
"lodash": "polymer", # MIT, actually.
|
||||
"promise-polyfill": "promise-polyfill",
|
||||
"webcomponentsjs": "polymer", # self-identifies as BSD.
|
||||
"sinon-chai": "polymer", # WTFPL & BSD.
|
||||
"sinonjs": "polymer", # BSD.
|
||||
}
|
||||
|
||||
|
||||
@ -201,7 +205,7 @@ def interpret_bower_json(seeds, ws_out, build_out):
|
||||
license = license_map.get(license, license)
|
||||
else:
|
||||
if pkg_name not in package_licenses:
|
||||
msg = "package %s does not specify license." % pkg_name
|
||||
msg = "package %s does not specify license: %s" % (pkg_name, pkg)
|
||||
sys.stderr.write(msg)
|
||||
raise Exception(msg)
|
||||
license = package_licenses[pkg_name]
|
||||
|
Loading…
Reference in New Issue
Block a user