I’m trying to build a gatsby theme that uses gatsby-source-filesystem to source images. I have set up a yarn workspace for development, my folder structure looks like this. The yarn workspace is also set up correctly and the gatsby-theme-example is a dependency of it. yarn workspaces info correctly shows it in workspaceDependencies. Both workspaces have a gatsby-config.js file, the gatsby-theme-example
Tag: filesystems
Convert a directory structure in the filesystem to JSON with Node.js
I have a file structure like this: I would like to, using Javascript and Node.js, listen to this root directory and all sub directories and create a JSON which mirrors this directory structure, each node contains type, name, path, and children: Here’s a coffeescript JSON: how to get this json data format in django views?(python) Answer Here’s a sketch. Error