microsoft / microsoft/pxt

Configuration for project directory structure

Open
#4,515 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

Configuration for projects/ folder with pxt serve

Problem: pxt serve only searches for projects in the projects/ folder and subdirectories no more two layers deep

I'd like the ability to choose how to organize my local project structure.

Possible solutions:
Argument to add directories for pxt serve to target.
Increase the maximum depth of the pxt serve project scan (2 is just too limiting)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pxt serve entry point and the code that scans the projects/ folder and limits traversal to two directory levels. Compare the proposed directory argument with increasing the scan depth, then define which behavior should be supported and how existing projects remain compatible. Done means pxt serve discovers projects according to the chosen structure, with tests covering the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.