Skip to content

CLI usage instructions unclear #116

@mattiagiuffrida-st

Description

@mattiagiuffrida-st

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions