Add the ability to read in CssMetadata protos from []. When they are passed in (the build wiring doesn't exist yet), it takes over what cssRegistry is supposed to do, but otherwise does the same thing functionally. Verifying css() calls is next
GITHUB_BREAKING_CHANGES=n/a
*/
package com.google.template.soy;
-
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import com.google.common.base.Stopwatch;
@@ -157,6 +156,15 @@ public abstract class AbstractSoyCompiler {
handler = SoyCmdLineParser.FileListOptionHandler.class)
private List<File> cssSummaries = new ArrayList<>();
+ @Option(
+ name = "--cssMetadata",
+ aliases = "--cssMetadata",
+ usage =
+ "List of css metadata files used to check strict deps against css dependencies and css()"
+ + " calls. This will eventually replace --cssSummaries",
+ handler = SoyCmdLineParser.FileListOptionHandler.class)
+ private List<File> cssMetadata = new ArrayList<>();
+
@Option(
name = "--enableExperimentalFeatures",
usage =
