rules_nodejs icon indicating copy to clipboard operation
rules_nodejs copied to clipboard

Add example using JavaScript

Open sberney opened this issue 2 years ago • 2 comments

🚀 feature request

Relevant Rules

All/any

Description

All of the examples/ are typescript as far as I can tell

Describe the solution you'd like

I would appreciate an example using JavaScript only, as I will not be using typescript at all.

Describe alternatives you've considered

I have searched for many examples, but none of them actually work when I try to use them. For example, even the create-react-app example here does not work for me unless I yarn add --dev @bazel/ibazel to it.

I have a very simple app that uses yarn to install one library. It then runs index.js. It doesn't have any transpilation. Using these examples, I can't see how to come up with a simple, understandable setup. I am new to bazel, but I have python working already.

sberney avatar Feb 07 '22 07:02 sberney

What would you like this example to do? JS example for web, node? Not sure why cra requires the install of ibazel again, it's listed as a devDependency https://github.com/bazelbuild/rules_nodejs/blob/stable/examples/create-react-app/package.json#L21

mattem avatar Feb 26 '22 14:02 mattem

This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!

github-actions[bot] avatar Aug 29 '22 03:08 github-actions[bot]

This issue was automatically closed because it went 30 days without any activity since it was labeled "Can Close?"

github-actions[bot] avatar Sep 28 '22 03:09 github-actions[bot]