|
| 1 | +# Copyright 2018 The Bazel Authors. All rights reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +workspace( |
| 16 | + name = "e2e_rollup", |
| 17 | + managed_directories = {"@npm": ["node_modules"]}, |
| 18 | +) |
| 19 | + |
| 20 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 21 | + |
| 22 | +http_archive( |
| 23 | + name = "build_bazel_rules_nodejs", |
| 24 | + sha256 = "da72ea53fa1cb8ab5ef7781ba06b97259b7d579a431ce480476266bc81bdf21d", |
| 25 | + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.36.2/rules_nodejs-0.36.2.tar.gz"], |
| 26 | +) |
| 27 | + |
| 28 | +load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install") |
| 29 | + |
| 30 | +yarn_install( |
| 31 | + name = "npm", |
| 32 | + package_json = "//:package.json", |
| 33 | + yarn_lock = "//:yarn.lock", |
| 34 | +) |
| 35 | + |
| 36 | +load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies") |
| 37 | + |
| 38 | +install_bazel_dependencies() |
0 commit comments