This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
36 lines (36 loc) · 2.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "@bazel/javascript",
"description": "Build JavaScript with Bazel",
"version": "0.11.5",
"keywords": [
"javascript",
"bazel"
],
"homepage": "https://github.com/bazelbuild/rules_nodejs",
"license": "Apache-2.0",
"devDependencies": {
"clang-format": "1.2.2",
"husky": "^0.14.3",
"shelljs": "^0.8.2"
},
"scripts": {
"//examples-program": "Run bazel from within the folder containing the WORKSPACE so that the WORKSPACE files is tested.",
"examples-program": "cd examples/program && bazel run @nodejs//:yarn && bazel test --test_output=errors :all",
"//examples-packages": "Run bazel from within the folder containing the WORKSPACE so that the WORKSPACE files is tested.",
"examples-packages": "cd examples/packages && bazel run @nodejs//:yarn && bazel test --test_output=errors :all",
"//internal-e2e-node_loader_no_preserve_symlinks": "Run bazel from within the folder containing the WORKSPACE so that the WORKSPACE files is tested & its preserve-symlinks value is used.",
"internal-e2e-node_loader_no_preserve_symlinks": "cd internal/e2e/node_loader_no_preserve_symlinks && bazel run @nodejs//:yarn && bazel test ... && bazel test @node_resolve_dep//:test",
"//internal-e2e-node_loader_preserve_symlinks": "Run bazel from within the folder containing the WORKSPACE so that the WORKSPACE files is tested & its preserve-symlinks value is used.",
"internal-e2e-node_loader_preserve_symlinks": "cd internal/e2e/node_loader_preserve_symlinks && bazel run @nodejs//:yarn && bazel test ... && bazel test @node_resolve_dep//:test",
"test": "yarn internal-e2e-node_loader_no_preserve_symlinks && yarn internal-e2e-node_loader_preserve_symlinks && yarn examples-packages && yarn examples-program",
"prebuildifier": "bazel build --noshow_progress @com_github_bazelbuild_buildtools//buildifier",
"buildifier": "find . -type f \\( -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs $(bazel info bazel-bin)/external/com_github_bazelbuild_buildtools/buildifier/*/buildifier",
"preskylint": "bazel build --noshow_progress @io_bazel//src/tools/skylark/java/com/google/devtools/skylark/skylint:Skylint",
"skylint": "find . -type f -name \"*.bzl\" ! -path \"*/node_modules/*\" | xargs $(bazel info bazel-bin)/external/io_bazel/src/tools/skylark/java/com/google/devtools/skylark/skylint/Skylint",
"format": "git-clang-format",
"format-all": "clang-format --glob='{internal/**/,examples/**/}*.{js,ts}' -i",
"precommit": "check-clang-format \"yarn format\"",
"skydoc": "bazel build --symlink_prefix=bazel- //docs && unzip -o -d docs bazel-bin/docs/docs-skydoc.zip",
"version": "node ./on-version.js && git stage package.bzl"
}
}