Files
gerrit/tools/node_tools/polygerrit_app_preprocessor
David Ostrovsky 6b6dfcbf26 Update rules_nodejs to 2.0.0
rules_nodejs maintainers suggest to upgrade to upcoming rules_nodejs
version 2.0.0. The new version has breaking change how loading of the
external repositories work. New approach makes WORKSPACE ordering
easier since we won’t need rules_nodejs install_bazel_dependencies
anymore.

ts_setup_workspace has been a no-op since 1.0 when requirejs was
vendored for ts_devserver. Therefore ts_setup_workspace is a no-op
and can be removed.

Bug: Issue 13090
Change-Id: If48daa15ca31627129eab7b865971124792336cc
2020-07-22 13:47:39 +02:00
..
2020-07-22 13:47:39 +02:00
2020-02-12 16:41:59 +01:00
2020-03-17 10:28:09 +00:00

This directory contains bazel rules and CLI tools to preprocess HTML and JS files before bundling.

There are 2 different tools here:

  • links-updater (and update_links rule) - updates link in HTML files. Receives list of input and output files as well as a redirect.json file with information about redirects.
  • preprocessor (and prepare_for_bundling rule) - split each HTML files to a pair of one HTML and one JS files. The output HTML doesn't contain <script> tags and JS file contains all scripts and imports from HTML file. For more details see source code.