question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simple cli for "bundling without bs"?

See original GitHub issue

Every time I’m working on a (p)react PoC codebase, I wish there was a CLI that just allowed me to say CLItoolname entryfile outputfile and not bother with any of the webpack, babel, etc. cruft that is completely irrelevant to build a bog standard bit of “it uses ES6, it uses JSX, it needs to become something I can load in the browser”.

Would it make sense to offer a CLI tool with preact that achieves that? And if it needs to install babel, webpack, etc. as part of its dependency tree, that’s cool, but there is nothing about those things I should have to configure if I just want to compile the kind of code that the README.md shows.

(Note that this is drastically different from a “preact-start-project” or the like: I just need to write some quick PoC code, with a tool that’ll bundle that PoC code, so I’m not looking for full framework-based project bootstrappers)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
robertknightcommented, Jun 11, 2017

As noted above, the preact-cli project resolves this and it is now prominently mentioned in the project’s README.

1reaction
developitcommented, Jun 12, 2017

Yes - I updated the readme, and we could effect those changes on the website too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building without bundling: How to do more with less
Simple demos already work fine without bundling, but what about ... Serve is a popular, simple CLI that serves any directory on your...
Read more >
Sub-dependencies of bundle dependencies are going into ...
I've done some more investigation, and it seems that aurelia-cli is not doing dependency analysis on the specified main file.
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
To show how effective Rollup is, let's walk through the process of building an extremely simple project that uses Rollup to bundle JavaScript....
Read more >
Web Essentials, command line utility to bundle script files?
I'd like to start bundling our javascript files. I've found that it's really easy locally using the web essentials plugin, however I need...
Read more >
How to run and build webpack. Reference… | by Yang Nana
Basic Setup. First let's create a directory, initialize npm, install webpack locally, and install the webpack-cli (the tool used to run webpack ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found