react-monocle icon indicating copy to clipboard operation
react-monocle copied to clipboard

UX - docs not clear, cryptic messages, too many CLI parameters(I suppose)

Open hex13 opened this issue 8 years ago • 0 comments

I wanted to try this package, but I didn't make through process of generating deps.

I think docs (both in readme and in CLI messages) are not clear what to do to make and run deps visualization.

lukasz@LitwaOnLine:~/atom-lupa😺:$ node_modules/.bin/monocle -b dist/bundle.js --directory=lib/ -j .js --entry=lib/atom-bindings/atom-main.js 
Starting to strip comments from bundle file...
Took 13.358 seconds to strip comments input bundle file
/Users/lukasz/atom-lupa/node_modules/react-monocle/bin/cmd.js:48
    if (files.length === 0) throw new Error('No files found (try specifying file path and extension)');
                            ^

Error: No files found (try specifying file path and extension)
    at glob (/Users/lukasz/atom-lupa/node_modules/react-monocle/bin/cmd.js:48:35)
    at f (/Users/lukasz/atom-lupa/node_modules/once/once.js:17:25)
    at Glob.<anonymous> (/Users/lukasz/atom-lupa/node_modules/glob/glob.js:147:7)
    at emitOne (events.js:96:13)
    at Glob.emit (events.js:188:7)
    at Glob._finish (/Users/lukasz/atom-lupa/node_modules/glob/glob.js:195:8)
    at done (/Users/lukasz/atom-lupa/node_modules/glob/glob.js:180:14)
    at Glob._processGlobStar2 (/Users/lukasz/atom-lupa/node_modules/glob/glob.js:632:12)
    at /Users/lukasz/atom-lupa/node_modules/glob/glob.js:621:10
    at RES (/Users/lukasz/atom-lupa/node_modules/inflight/inflight.js:23:14)

(I wanted to display dep graph of this repo: https://github.com/hex13/atom-lupa - this is Atom package which uses React components. Maybe I'm doing something wrong but like I said - docs/messages are not clear what I should do and why No files found (it doesn't write e.g. where monocle thought that it would find files)).

And - why do I have to precise all these parameters. What do they mean? It's not clear for me how monocle works (and what I should pass for it as input).

I think these Issues are somewhat related: https://github.com/team-gryff/react-monocle/issues/142 https://github.com/team-gryff/react-monocle/issues/141

hex13 avatar Jan 12 '17 07:01 hex13