{"name":"codesandboxer-fs","version":"0.4.0","description":"Deploy local files to codesandbox, using an example file as an entry point","main":"index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandboxer":"^0.6.0","pkg-dir":"^2.0.0","resolve":"^1.7.1","meow":"^5.0.0"},"bin":{"codesandboxer":"./src/cli.js"},"scripts":{"build":"echo done"},"devDependencies":{"react-node-resolver":"^1.0.1"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer-fs@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"integrity":"sha512-BQWRAoks1CzkJCFjJBIzoDP/jefLXKqqSB/0e/H+EL9kOzzabm4lT/iZwmuIfM1oxUGC8TM2ETNA+m44Yw9sOg==","shasum":"710039c9f7753830de58803293e5907678ecd2a1","tarball":"http://registry-npm.ywwl.com/codesandboxer-fs/download/codesandboxer-fs-0.4.0.tgz","fileCount":19,"unpackedSize":43013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtwpVCRA9TVsSAnZWagAAGY4P/j+TOd96l/hO2hy8H9Lq\nq3ngz05OfGZpqnfh1TNrZcfnkv98aVzX8LVFW5CQzHw5E39PSSnIq2dK2D7W\nY0/YFZUa3mDXs9EQgg0mOWrq6YpEsYxnkAzdCjfkMLxbyJ7nO/ToFttSoOtB\nuBgIuia50FWOQHGD4suHAlHZeVv2xPYs8Zzy53rXwixknYpenUDLCNuS+rh3\ne/Nh4MXNEYOqs8Z0pIrr5JkKoFFY1MdddSguYhfIgTuUyxCe0FS1W+5ltSXn\nikCENm1MmvdWTm4f9hW9flKLdb5JKondAlTA5xo7OFUhowD/iUtz8aQ117iR\nElaDULhMV+eA/g91vZReNqN5kN4jRSg7EQnQHZ80gF+MZH30SLHr6snAu6x6\nVPjEGa3k/XtmnMoHzuWSnbd7amt+kSzkYrMHwbl3Anp2+CbucSZjP3hPFcVK\n0NHmA35uLmldBPgfy2WanxGROFlu1I5ulxXIEavdBB4kENtN0rqTAA3dJpwN\nQds4u+Q2Gu62X8obffOf/UuUHrQBFaNIVLLbkKrSE+A+qukx7N+dt5lLxeKD\nqigd8fmZu+x59MG5LJFw2b6P5qdZiy0PF6DqwEetiE1WFbVMf+mVQMIrJx68\nJ4yn66Yi74RIugH7e9lgpCr/gd9Epv2KywBpfca4bUtVvJi0M6qvEK+ni9tc\nU9jx\r\n=zU+m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSXwJB4+8S++Zb0iX5MZzIAe6lv8OjDM1KxG6/ZXLH3gIhAL/MTRiEHKro7zzBUaPC+iHIffJFcR5+IiK5Ennn/pnV"}],"size":10077,"noattachment":false,"key":"/codesandboxer-fs/-/codesandboxer-fs-0.4.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer-fs_0.4.0_1538722388310_0.7476614161664528"},"_hasShrinkwrap":false,"readme":"# codesandboxer-fs\n\nDeploy a single javascript file to codesandbox as a react entry point, bundling up other files you need, as well as the relevant dependencies, using `codesandboxer`'s default package under the hood to bundle files.\n\n## Installation\n\n```\n$ yarn global add codesandboxer-fs\n```\n\nor\n\n```\n$ npm i -g codesandboxer-fs\n```\n\n## Base Usage\n\n```\n$ codesandboxer some/file/path.js\n```\n\nThis will take this file, upload it and its dependent files to codesandbox, and assume that the file passed in is a renderable react component. It will also bundle any needed dependencies from your `package.json`\n\nThe response will look something like\n\n```json\n{\n  \"sandboxId\": \"481nzy3v84\",\n  \"sandboxUrl\": \"https://codesandbox.io/s/481nzy3v84?module=/example\"\n}\n```\n\nwhich will be printed to your console.\n\n`codesandboxer-fs` uses the context of the package the target file is from, bases its available npm dependencies on that file's `package.json`, and will not include files imported from places outside this scope.\n\nIf you point at a file with an extension that is not '.js', that file type will be loaded using our '.js' logic. This is to allow extensions such as '.jsx'.\n\n## Flags\n\n* `--dry -d` - this flag bundles the files, and prints them to the console, as well as the list of files to be sent to codesandbox.\n\n* `--name -n` - this flag names the created sandbox, making the base link more informative when shared.\n\n* allowedExtensions - this flag provides additional extensions that will be accepted. Note that the extension type of your target file is automatically added. The format is `.jsx,.ts`, a comma separated list of file types.\n\n* `--template -t` - a string of what template to use in sending files to codesandbox. Current officially supported templates are `react` and `react-typescript`.\n\n## Why use this instead of the codesandbox cli?\n\nThe codesandbox CLI is intended to upload an entire create-react-app project, and as such is not designed to cherry-pick a file. Codesandboxer's goal is fundamentally different, in that it wants to focus on a single component, such as an example. Codesandboxer is going to be more useful if you want to share proposed changes to a component within an existing project with someone, while codesandbox will be better for uploading and looking at an entire website.\n","publish_time":1538722388433,"_cnpm_publish_time":1538722388433,"dist-tags":{"latest":"1.0.3"}}