Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Disable sandboxing because it's too slow.
# https://github.com/bazelbuild/bazel/issues/2424
# TODO(alexeagle): do use the sandbox on CI
#build --spawn_strategy=standalone
build --spawn_strategy=standalone --strategy=TypeScriptCompile=worker

# Performance: avoid stat'ing input files
build --watchfs

# Do not generate the symbolic links bazel-*.
build --symlink_prefix=/
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2

defaults: &defaults
working_directory: ~/ng
docker:
- image: angular/ngcontainer

jobs:
lint:
<<: *defaults
steps:
- checkout
- restore_cache:
key: angular_devkit-{{ .Branch }}-{{ checksum "package-lock.json" }}

- run: npm install
- run: npm run lint

test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: angular_devkit-{{ .Branch }}-{{ checksum "package-lock.json" }}

- run: npm install
- run: npm run test

build:
<<: *defaults
steps:
- checkout
- restore_cache:
key: angular_devkit-{{ .Branch }}-{{ checksum "package-lock.json" }}

- run: bazel run @io_bazel_rules_typescript_node//:bin/npm install
- run: bazel build ...

- save_cache:
key: angular_devkit-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- "node_modules"


workflows:
version: 2
default_workflow:
jobs:
- lint
- build
- test
7 changes: 3 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "io_bazel_rules_typescript",
remote = "https://github.com/bazelbuild/rules_typescript.git",
tag = "0.0.2",
tag = "0.0.4",
)

load("@io_bazel_rules_typescript//:defs.bzl", "node_repositories", "yarn_install")
load("@io_bazel_rules_typescript//:defs.bzl", "node_repositories")

node_repositories()
yarn_install(package_json = "//:package.json")
node_repositories(package_json = "//:package.json")
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"ts-node": "^2.0.0",
"tslint": "^4.0.2",
"typescript": "~2.3.0"
},
"devDependencies": {
"protobufjs": "5.0.0"
}
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"outDir": "./dist",
"rootDir": ".",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"inlineSourceMap": true,
"sourceRoot": ".",
// Inline sources are necessary for out tests to show the proper sources, since we are using
// Inline sources are necessary for our tests to show the proper sources, since we are using
// Istanbul (not Constantinople) as well, and applying both source maps to get the original
// source in devtools.
"inlineSources": true,
Expand Down
Loading