rollerwheel 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ ## rollerwheel
2
+
3
+ For creating clientside JavaScript bundles.
4
+
5
+ No config file necessary. Allows for mixing CommonJS and ESM in same file (primarily supporting CommonJS; your ESM mileage may vary).
6
+
7
+ Under the hood it is a convenience wrapper for an opinionated Rollup and Babel configuration that Just Works™
8
+
9
+
10
+ ### usage
11
+
12
+ *client.js*
13
+
14
+ #####
15
+ ```javascript
16
+ //some example deps
17
+ const { $j, $click, Grow } = require('html-template-utils')
18
+ import * as d3 from "d3"
19
+
20
+ console.log('hello world')
21
+
22
+ //your app code
23
+ ```
24
+
25
+ *from your terminal:*
26
+
27
+ ```bash
28
+ npm install rollerwheel
29
+ npx rollerwheel
30
+ #^ reads "client.js" and outputs browser-ready bundle to "client.bundle.js"
31
+
32
+ npx rollerwheel -w
33
+ #^ same but watches/re-bundles when client.js is edited
34
+
35
+ npx rollerwheel admin.js -w
36
+ #^ reads admin.js and outputs to "admin.bundle.js"
37
+
38
+ ```
39
+
40
+ If you have a dir called `static` in the same dir from which you call rollerwheel, the bundle will output to said static dir.
41
+