project-explorer icon indicating copy to clipboard operation
project-explorer copied to clipboard

Proposal: eliminating ./base-directory-tree

Open oliverturner opened this issue 7 years ago • 4 comments

First, thank you for making this: it has so much potential to help people get a better understanding of how projects & libraries work. It's also beautifully designed and executed.

My question: since we're installing pexx globally, could the global lib not also contain the necessary infrastructure for rendering the UI?

  • Current: running pexx my-project saves an entire instance of Project Explorer per directory
  • Proposed:
    1. Running pexx my-project saves what is now saved as ./my-project/base-directory-tree/src/store.js as a single JSON file named ./my-project/.pexxrc;
    2. Running pexx my-project (or simply pexx within it) detects the existence of .pexxrc and serves a production build of a Vue app that reads .pexxrc and renders the same interface as now.

It's quite possible I'm missing context: feel free to dismiss if so!

oliverturner avatar Sep 10 '18 19:09 oliverturner

Hi Oliver! 👋

That's a great idea! Hm. Let me think of the best way to add this. I have a couple of other lower hanging fruit to tackle first but I think this is a brilliant suggestion, thanks for making it! PRs also welcome.

sdras avatar Sep 10 '18 20:09 sdras

(closed by accident! sorry!)

sdras avatar Sep 10 '18 20:09 sdras

Completely understood. It's absolutely worth taking the time to think things through, because a major consideration is keeping things flexible enough to make ongoing development easy. An unfortunate choice of structure for .pexxrc could make future features hard to add.

Glad you like the idea: will have a play with some ideas and get back to you :)

oliverturner avatar Sep 10 '18 20:09 oliverturner

Sounds great, thanks!

sdras avatar Sep 11 '18 21:09 sdras