17 Commits

Author SHA1 Message Date
David Ostrovsky
a7056ec1dd Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Bazel: Fix more buildifier warnings
  Bazel: Automatically fix lint errors with buildifier 0.20.0
  Bazel: Automatically fix lint errors with buildifier

Change-Id: I02ba30185683a54dca09e6e200b90fe0e86e1f83
2019-01-09 23:10:35 +01:00
David Ostrovsky
930f29e2fd Bazel: Automatically fix lint errors with buildifier
In recent buildifier versions, lint errors can be fixed automatically:

  $ find . \( -name BUILD -o -name "*.bzl" \) -print \
      | xargs buildifier --lint=fix

This commit was created with Buildifier version 0.19.2:

  $ buildifier --version
buildifier version: 0.19.2
buildifier scm revision: d39e4d5c25111527369142f16cdb49aa67707313

Change-Id: I1f06cd4596e794981ccc2d9fc2d1da9b17f3973a
2019-01-08 23:11:59 +01:00
David Pursehouse
cb8c06c580 Merge "Adjust file mode of Roboto fonts" into stable-2.15 2018-07-25 07:30:06 +00:00
Gert van Dijk
1d7fc21b83 Adjust file mode of Roboto fonts
The fonts added in I7588e9aa1ef0b2e4ccd / 00a23600a8 were added with
deviating file modes compared to others in this folder. This change aligns
them.

Change-Id: Ic5db038e9d3d942f41a6f4789dd76f053556d6c4
2018-07-25 08:54:16 +02:00
Gert van Dijk
2d7cbe2f8d Remove SourceCodePro font files
The font has been replaced by Roboto in I7588e9aa1ef0b2e4ccd / 00a23600a8.
SourceCodePro font files were dereferenced with that change, but the font
files itself appear not to have been removed.

Change-Id: I525f18e3f6b61e475fe8c3082af6a3c9a80350e8
2018-07-25 08:53:17 +02:00
Becky Siegel
2df9a75899 Update Roboto to Roboto-Regular
For consistency with gerrit build process

Change-Id: I2e06175b3499f855c98e8138eb9e07543cde0016
2017-09-06 13:00:11 -07:00
Becky Siegel
792e418600 Add Roboto and Roboto-Medium to bazel build
New design mocks have the site's fonts entirely in Roboto and Roboto
Medium. This change adds the fonts as dependncies.

Bug: Issue 7139
Change-Id: I4e8175e49dda42a68b22d4a5966aba597c84c132
2017-09-05 14:14:46 -07:00
David Pursehouse
361f30cc0b Format fonts BUILD file with buildifier
Change-Id: Ieadf10b166f5778f49c99f37c4b546fd5744a58b
2017-06-27 19:39:16 +09:00
Kasper Nilsson
00a23600a8 Switch to Roboto Mono font
Swaps out Source Code Pro for Roboto Mono. In addition, modifies the
syntax highlighting theme for numbers and class selectors from the
darker #7F0055 to the ligher #9E0069 and removes the bold font weight
from the selector to better differentiate the selector, especially with
a red background color.

Bug: Issue 6021
Change-Id: I7588e9aa1ef0b2e4ccde8b7a5ed0c24e56760a11
2017-06-20 15:37:02 -07:00
David Ostrovsky
fdbfcad77d Remove Buck based build
Bug: Issue 5302
Change-Id: I6e860446ef30ff0ad1c7c49fc0e39d39d921820b
2017-01-23 12:44:58 +00:00
David Ostrovsky
fa18907d7f Bazel: Reformat build files
Reformat the Bazel build files with the buildifier tool [1].

The style is different for Bazel files. Most notably, indentation level
is 4 spaces instead of 2, and " is used instead of '.

[1] https://github.com/bazelbuild/buildifier

Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
2016-12-07 11:33:07 +00:00
Viktar Donich
5389538038 Serve fonts for local PolyGerrit development
Packs fonts the same way bower_components are packed, with a 'fonts'
folder inside fonts.zip.

Also removes deprecated OpenSans fonts from build files.

Bug: Issue 4893
Change-Id: I7fc11d6e689c7d5b1d68d09e94ee7aaba91ded9b
2016-11-07 14:24:06 -08:00
Han-Wen Nienhuys
29cced5e29 bazel: remove 'out' attribute from genrule2, and use throughout.
This centralizes the OSX mktemp solution.

Change-Id: Iaab18450146b649245b36865bedc5d7b50d1aa07
2016-11-02 13:54:10 +01:00
Han-Wen Nienhuys
3254ec7492 bazel: generate polygerrit_ui.zip.
Tested:
  verified that polygerrit-ui/app:polygerrit_ui zip contain same files
  for bazel and buck.

Change-Id: I5fb1abbc6e68a593d6af0b7b1811608eb11f7e4c
2016-10-24 11:19:20 +02:00
Han-Wen Nienhuys
28e7a6d3fe bazel: bower support
* npm_binary (download tarball packaged npm apps)

* bower_archive (download a zip file, to be put in WORKSPACE)

* bower_component (defining a bower library, with dependency )

* bower_component_bundle (zipping up libraries together)

* js_component (insert plain js file into bower component bundle)

* bower2bazel.py: run bower to find dependencies, generate a .bzl to
  define archives and define components

Tested:

 python tools/js/bower2bazel.py -w lib/js/bower_archives.bzl -b \
    lib/js/bower_components.bzl

 bazel build polygerrit-ui:components
 unzip -v bazel-bin/polygerrit-ui/components.zip > /tmp/baz

 buck build polygerrit-ui:polygerrit_components
 unzip -v buck-out/gen/polygerrit-ui/polygerrit_components/polygerrit_components.bower_components.zip > /tmp/buck

 diff /tmp/buck /tmp/baz

The diff corresponds to newer file versions pinned through bower2bazel.

Change-Id: I4f33914d4853bcf8afe78b4719d0e0e83b139031
2016-09-29 13:18:19 +02:00
Andrew Bonventre
7a9dca2b33 Remove .otf extension from Source Code Pro woff fonts
Change-Id: Ia654d5819c8ed35eef79a14ede705b75fe97e4a9
2016-04-02 12:16:38 -04:00
Viktar Donich
5eb59e374e Serve fonts from Gerrit instead of Google Fonts.
Bug: Issue 3985
Change-Id: I107921c7e1fbc02e3b279f4d834c16447dffde51
2016-04-01 13:11:02 -04:00