<filename>internal/defaults.bzl<gh_stars>1-10
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"Defaults for rules_typescript repository not meant to be used downstream"

load(
    "@build_bazel_rules_typescript//:defs.bzl",
    _karma_web_test = "karma_web_test",
    _karma_web_test_suite = "karma_web_test_suite",
    _ts_library = "ts_library",
    _ts_web_test = "ts_web_test",
    _ts_web_test_suite = "ts_web_test_suite",
)

# We can't use the defaults for ts_library compiler and ts_web_test_suite karma
# internally because the defaults are .js dependencies on the npm packages that are
# published and internally we are building the things themselves to publish to npm
INTERNAL_TS_LIBRARY_COMPILER = "@build_bazel_rules_typescript//internal:tsc_wrapped_bin"
INTERNAL_KARMA_BIN = "@build_bazel_rules_typescript//internal/karma:karma_bin"

def karma_web_test(karma = INTERNAL_KARMA_BIN, **kwargs):
    _karma_web_test(karma = karma, **kwargs)

def karma_web_test_suite(karma = INTERNAL_KARMA_BIN, **kwargs):
    _karma_web_test_suite(karma = karma, **kwargs)

def ts_library(compiler = INTERNAL_TS_LIBRARY_COMPILER, **kwargs):
    _ts_library(compiler = compiler, **kwargs)

def ts_web_test(karma = INTERNAL_KARMA_BIN, **kwargs):
    _ts_web_test(karma = karma, **kwargs)

def ts_web_test_suite(karma = INTERNAL_KARMA_BIN, **kwargs):
    _ts_web_test_suite(karma = karma, **kwargs)

<filename>internal/defaults.bzl<gh_stars>1-10
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"Defaults for rules_typescript repository not meant to be used downstream"

load(
    "@build_bazel_rules_typescript//:defs.bzl",
    _karma_web_test = "karma_web_test",
    _karma_web_test_suite = "karma_web_test_suite",
    _ts_library = "ts_library",
    _ts_web_test = "ts_web_test",
    _ts_web_test_suite = "ts_web_test_suite",
)

# We can't use the defaults for ts_library compiler and ts_web_test_suite karma
# internally because the defaults are .js dependencies on the npm packages that are
# published and internally we are building the things themselves to publish to npm
INTERNAL_TS_LIBRARY_COMPILER = "@build_bazel_rules_typescript//internal:tsc_wrapped_bin"
INTERNAL_KARMA_BIN = "@build_bazel_rules_typescript//internal/karma:karma_bin"

def karma_web_test(karma = INTERNAL_KARMA_BIN, **kwargs):
    _karma_web_test(karma = karma, **kwargs)

def karma_web_test_suite(karma = INTERNAL_KARMA_BIN, **kwargs):
    _karma_web_test_suite(karma = karma, **kwargs)

def ts_library(compiler = INTERNAL_TS_LIBRARY_COMPILER, **kwargs):
    _ts_library(compiler = compiler, **kwargs)

def ts_web_test(karma = INTERNAL_KARMA_BIN, **kwargs):
    _ts_web_test(karma = karma, **kwargs)

def ts_web_test_suite(karma = INTERNAL_KARMA_BIN, **kwargs):
    _ts_web_test_suite(karma = karma, **kwargs)

# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #    http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # We can't use the defaults for ts_library compiler and ts_web_test_suite karma # internally because the defaults are .js dependencies on the npm packages that are # published and internally we are building the things themselves to publish to npm