brumm / brumm/atom-codesandbox

help codesandbox auto-detect appropriate template

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
54
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.