You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1558001
Browse filesBrowse the repository at this point in the historyBrowse files
1. Since Bazel manages a copy of the node_modules, we don't want it to discover configuration in your locally installed copy. Create a file `.bazelignore` in the root of your repo containing this line:
80
-
81
-
```
82
-
node_modules
83
-
```
84
-
85
-
1. Create a file `BUILD.bazel` in the root of your repo, next to the `package.json` file. It can be empty for now.
86
-
87
-
1. In your `package.json`, find the `"scripts"` section, or create one.
88
-
89
-
```json
90
-
"scripts": {
91
-
"build": "bazel build //...",
92
-
"test": "ibazel test //..."
93
-
}
94
-
```
25
+
```sh
26
+
$ npm init @bazel
27
+
```
95
28
96
-
1. Test that you can do an initial build. It will report that no targets were found yet.
29
+
or if you prefer yarn,
97
30
98
-
```sh
99
-
$ yarn build
100
-
```
31
+
```sh
32
+
$ yarn create @bazel
33
+
```
101
34
102
-
or
35
+
> These commands are equivalent to `npx run @bazel/create` which downloads the latest version of the `@bazel/create` package from npm and runs the program contained.
103
36
104
-
```sh
105
-
$ npm run build
106
-
```
37
+
See the output of the tool for command-line options and next steps.
0 commit comments