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

help codesandbox auto-detect appropriate template #4

Open
brumm opened this issue Sep 11, 2018 · 0 comments
Open

help codesandbox auto-detect appropriate template #4

brumm opened this issue Sep 11, 2018 · 0 comments

Comments

@brumm
Copy link
Owner

brumm commented Sep 11, 2018

Currently, we're recursively gathering the active file's content and dependencies to build our { files, dependencies } structure. This works well for plain ES6 JavaScript, but not so much for more involved setups, like Svelte or Vue.

Codesandbox attempts to auto-detect an appropriate template by looking for { dependencies, devDependencies } in the /package.json entry in the files object.

We should search upwards from the selected file up to and including atom.project.getDirectories() for a package.json

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

Successfully merging a pull request may close this issue.

1 participant