Skip to content
This repository was archived by the owner on Dec 29, 2018. It is now read-only.
This repository was archived by the owner on Dec 29, 2018. It is now read-only.

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

Description

@hex13

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:
#142
#141

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions