Join Slack
Powered by
Whats the best way to produce a js (or better TS) ...
# javascript
w
willyrs
05/06/2021, 5:59 AM
Whats the best way to produce a js (or better TS) library to be used in a react project? Right now I'm building for browser and then copy the generated .js to my react project and if feels like an hack
b
Big Chungus
05/06/2021, 7:05 AM
Github.com/mpetuska/npm-publish
Big Chungus
05/06/2021, 10:31 AM
You don't even have to publish it anywhere. Just use generated pack gradle task to get a tarball that you can then npm install from
w
willyrs
05/06/2021, 10:34 AM
Thanks! I'll try it asap
3
Views
Open in Slack
Previous
Next