Skip to content

Commit

Permalink
chore: Drop this test commit later
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Holzer committed Sep 17, 2020
1 parent a034f9b commit af46054
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package(default_visibility = ["//:__subpackages__"])

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary", "nodejs_test", "npm_package_bin")


# Allow any ts_library rules in this workspace to reference the config
exports_files(
[
Expand All @@ -12,3 +15,17 @@ exports_files(
],
visibility = ["//visibility:public"],
)

nodejs_binary(
name = "run",
entry_point = "test.js",
data = ["test.js", ".stylelintrc"],
templated_args = ["--nobazel_patch_module_resolver", "--config $(rootpath :.stylelintrc)"],
)

nodejs_test(
name = "test",
entry_point = "test.js",
data = ["test.js", ".stylelintrc"],
templated_args = ["--nobazel_patch_module_resolver", "--config $(rootpath :.stylelintrc)"],
)
13 changes: 13 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
console.log(`cwd: ${process.cwd()}`);

// const path = require('path');
// const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']);
// const args = process.argv.slice(2);

// console.log(`

// cwd: ${process.cwd()}
// Workspace Relative: ${runfiles.resolveWorkspaceRelative(args[1])}
// Relative: ${path.resolve(args[1])}

// `)

0 comments on commit af46054

Please sign in to comment.