Skip to content

Instantly share code, notes, and snippets.

View alexeagle's full-sized avatar
🌿
Making a better Bazel

Alex Eagle alexeagle

🌿
Making a better Bazel
View GitHub Profile
--- angular/.github/CODEOWNERS.scrubbed
+++ angular/.github/codeowners.gen
@@ -1 +0,0 @@
-* @IgorMinar @angular/framework-global-approvers
@@ -3,284 +1,0 @@
-/packages/platform-browser/animations/** @angular/fw-animations @angular/framework-global-approvers @angular/framework-global-approvers-for-docs-only-changes
-/aio/content/guide/animations.md @angular/fw-animations @angular/framework-global-approvers @angular/framework-global-approvers-for-docs-only-changes
-/aio/content/examples/animations/** @angular/fw-animations @angular/framework-global-approvers @angular/framework-global-approvers-for-docs-only-changes
-/aio/content/images/guide/animations/** @angular/fw-animations @angular/framework-global-approvers @angular/framework-global-approvers-for-docs-only-changes
-/aio/content/guide/complex-animation-sequences.md @angular/fw-animations @angular/framework-global-approvers @angular/framework-global-approvers-for-docs-only-changes
load("@npm_bazel_rollup//:index.bzl", "rollup_bundle")
load("@npm_bazel_terser//:index.bzl", "terser_minified")
load("@npm//@babel/cli:index.bzl", "babel")
# TODO(alexeagle): promote web_package rule to the public API
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
def differential_loading(name, entry_point, srcs):
"Common workflow to serve native ESModules to modern browsers"
rollup_bundle(
execroot/angular/external/npm/node_modules/@types/hammerjs/index.d.ts
execroot/angular/external/npm/node_modules/zone.js/dist/zone.js.d.ts
execroot/angular/external/npm/node_modules/tslib/tslib.d.ts
execroot/angular/external/npm/node_modules/typescript/lib/protocol.d.ts
execroot/angular/external/npm/node_modules/typescript/lib/tsserverlibrary.d.ts
execroot/angular/external/npm/node_modules/typescript/lib/typescript.d.ts
execroot/angular/external/npm/node_modules/typescript/lib/typescriptServices.d.ts
execroot/angular/packages/goog.d.ts
execroot/angular/packages/system.d.ts
execroot/angular/packages/types.d.ts
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("angular_bazel_example/src/app.component.ngfactory", ["require", "exports", "@angular/core", "@angular/material/toolbar/typings/index.ngfactory", "@angular/common", "@angular/router", "angular_bazel_example/src/app.component"], factory);
}
})(function (require, exports) {
"use strict";

TypeScript rules for Bazel

WARNING: this is beta-quality software. Breaking changes are likely. Not recommended for production use without expert support.

The TypeScript rules integrate the TypeScript compiler with Bazel.

Looking for Karma rules ts_web_test and karma_web_test? These are now documented in the README at http://npmjs.com/package/@bazel/karma

<!doctype html>
<title>webtreemap</title>
<style>
body {
font-family: sans-serif;
}
#treemap {
width: 800px;
height: 600px;
}
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');

Proposal: ts.DiagnosticPlugin and tswarn

The Angular team owns a couple of tools that would like to extend the diagnostics produced by the TypeScript compiler:

  • tsetse is our set of third-party --strict checks. So far, these are wired into our custom Bazel tsc compiler, tsc_wrapped, and they produce only Severity.ERROR diagnostics. See http://tsetse.info

  • Angular Ivy is a new rendering engine for Angular, and it allows a simpler compiler pipeline which we hope can fit entirely within tsc given a plugin model for producing extra diagnostics (such as semantic or type errors within Angular template

======== Resolving module 'shelljs' from '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular/external/angular/packages/bazel/src/packager/packager.ts'. ========
Explicitly specified module resolution kind: 'NodeJs'.
'baseUrl' option is set to '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular', using this value to resolve non-relative module name 'shelljs'.
'paths' option is specified, looking for a pattern to match module name 'shelljs'.
Module name 'shelljs', matched pattern '*'.
Trying substitution 'external/angular_deps/node_modules/*', candidate module location: 'external/angular_deps/node_modules/shelljs'.
Loading module as file / folder, candidate module location '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular/external/angular_deps/node_modules/shelljs', target file type 'TypeScript'.
File '/usr/local/google/home/a
======== Resolving module 'shelljs' from '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular/external/angular/packages/bazel/src/packager/packager.ts'. ========
Explicitly specified module resolution kind: 'NodeJs'.
'baseUrl' option is set to '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular', using this value to resolve non-relative module name 'shelljs'.
'paths' option is specified, looking for a pattern to match module name 'shelljs'.
Module name 'shelljs', matched pattern '*'.
Trying substitution 'external/angular_deps/node_modules/*', candidate module location: 'external/angular_deps/node_modules/shelljs'.
Loading module as file / folder, candidate module location '/usr/local/google/home/alexeagle/.cache/bazel/_bazel_alexeagle/5c094f47f582dc47fc598194e749d5c0/execroot/angular/external/angular_deps/node_modules/shelljs', target file type 'TypeScript'.
File '/usr/local/google/home/a