インスコ
$ npm install -g @angular/cli@next @angular/bazel@next
ng new する
$ ng new my-bazel-app --collection=@angular/bazel
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS
Bazel will reuse existing version for RxJs: 6.3.3
CREATE my-bazel-app/README.md (1032 bytes)
CREATE my-bazel-app/angular.json (2412 bytes)
CREATE my-bazel-app/package.json (1415 bytes)
CREATE my-bazel-app/tsconfig.json (435 bytes)
CREATE my-bazel-app/tslint.json (2824 bytes)
CREATE my-bazel-app/.editorconfig (246 bytes)
CREATE my-bazel-app/.gitignore (576 bytes)
CREATE my-bazel-app/src/favicon.ico (5430 bytes)
CREATE my-bazel-app/src/index.html (377 bytes)
CREATE my-bazel-app/src/main.ts (372 bytes)
CREATE my-bazel-app/src/polyfills.ts (3571 bytes)
CREATE my-bazel-app/src/test.ts (642 bytes)
CREATE my-bazel-app/src/styles.css (80 bytes)
CREATE my-bazel-app/src/browserslist (388 bytes)
CREATE my-bazel-app/src/karma.conf.js (980 bytes)
CREATE my-bazel-app/src/tsconfig.app.json (166 bytes)
CREATE my-bazel-app/src/tsconfig.spec.json (256 bytes)
CREATE my-bazel-app/src/tslint.json (314 bytes)
CREATE my-bazel-app/src/assets/.gitkeep (0 bytes)
CREATE my-bazel-app/src/environments/environment.prod.ts (51 bytes)
CREATE my-bazel-app/src/environments/environment.ts (662 bytes)
CREATE my-bazel-app/src/app/app.module.ts (314 bytes)
CREATE my-bazel-app/src/app/app.component.css (0 bytes)
CREATE my-bazel-app/src/app/app.component.html (1120 bytes)
CREATE my-bazel-app/src/app/app.component.spec.ts (996 bytes)
CREATE my-bazel-app/src/app/app.component.ts (216 bytes)
CREATE my-bazel-app/e2e/protractor.conf.js (752 bytes)
CREATE my-bazel-app/e2e/tsconfig.e2e.json (213 bytes)
CREATE my-bazel-app/e2e/src/app.e2e-spec.ts (304 bytes)
CREATE my-bazel-app/e2e/src/app.po.ts (204 bytes)
CREATE my-bazel-app/yarn.lock (0 bytes)
CREATE my-bazel-app/BUILD.bazel (190 bytes)
CREATE my-bazel-app/WORKSPACE (2959 bytes)
CREATE my-bazel-app/.bazelignore (18 bytes)
CREATE my-bazel-app/.bazelrc (828 bytes)
CREATE my-bazel-app/e2e/BUILD.bazel (1230 bytes)
CREATE my-bazel-app/e2e/protractor.on-prepare.js (1101 bytes)
CREATE my-bazel-app/src/BUILD.bazel (2564 bytes)
CREATE my-bazel-app/src/initialize_testbed.ts (432 bytes)
CREATE my-bazel-app/src/main.dev.ts (185 bytes)
CREATE my-bazel-app/src/main.prod.ts (249 bytes)
Successfully initialized git.
そのままだとエラーが起きるのでWORKSPACEファイルのANGULAR_VERSIONを7.1.4にかえてng serve する
$ cd my-bazel-app
$ ng serve
ちなみに、xcodeが最新じゃないとか言われたので https://stackoverflow.com/questions/45276830/xcode-version-must-be-specified-to-use-an-apple-crosstool を参考にアップデートしたら動いた。
ng buildは動く気がしなかった。