Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI usage instructions unclear #116

Open
mattiagiuffrida-st opened this issue Aug 20, 2021 · 0 comments
Open

CLI usage instructions unclear #116

mattiagiuffrida-st opened this issue Aug 20, 2021 · 0 comments

Comments

@mattiagiuffrida-st
Copy link

I'm trying to use the CLI tool provided with this package, but with no luck.
With the JS API, I can run the following and get the result I want:

const sassGraph = require('sass-graph');
console.log(sassGraph.parseFile(
  'app/packs/entrypoints/publisher-profile.scss',
  {
    loadPaths: ['app/assets/stylesheets'],
  }
));

But I've been unable to replicate this successfully with the CLI tool.
I've tried the following:

  • sassgraph descendents app/packs/entrypoints/publisher-profile.scss
    • Error: Missing directory
  • sassgraph descendents -I app/assets/stylesheets app/packs/entrypoints/publisher-profile.scss
    • Error: Missing directory
  • sassgraph descendents -I app/assets/stylesheets app/assets/stylesheets/ app/packs/entrypoints/publisher-profile.scss
    • Error: Missing directory
  • sassgraph descendents app/assets/stylesheets/ app/packs/entrypoints/publisher-profile.scss
    • No output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant