{"name":"codesandboxer-fs","version":"0.0.3","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.2.3"},"bin":{"codesandboxer":"cli.js"},"devDependencies":{"react-node-resolver":"^1.0.1"},"repository":{"type":"git","url":"git+https://github.com/Noviny/react-codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/react-codesandboxer/issues"},"homepage":"https://github.com/Noviny/react-codesandboxer#readme","_id":"codesandboxer-fs@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"integrity":"sha512-qbwFM9VLD780OFqYSRh4e8uo91iAOgtPMhEDPv5l/mfjiBAIBtg3AhR8U4Y3LcH8S+C+j33t4O43btwIzbtjKQ==","shasum":"ff839c37a351fa07f852bd58ea73deecda18c384","tarball":"http://registry-npm.ywwl.com/codesandboxer-fs/download/codesandboxer-fs-0.0.3.tgz","fileCount":5,"unpackedSize":9547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+TTxCRA9TVsSAnZWagAAB3MP/2Ea4MES1zphb9j5O+q6\nF2D0nbHTC2HD1HvgdGWJ24pGXSq7CVLnZrgnJDYFiff2Yw85upbCv9/urpLl\n7lQRMTaTv2hjxr+ps/h3Kku0nWvl1Ewn8uwC8LMd6WcmLBLCpVKJR3+Cp0ZD\nNgEorpnOoT4HCa760CThGxkoN5iNhL84Shq0wDONq6MsIppCJbfvolNLtL/L\nd51J0mPdyAmDIBadmQXzwXprRu5ecyyRyGj5PRr0h2UBptzejGklzDGJOeEa\n0F34dnTLYsK9PPHGWOgGqCPB/tV3BsHkCLJZzL4+Txc79MgprOrnJKI/n5or\nW+AgV1c8d53Wc3ZlKqlpNUDI6Zw0xJDmzfX6yIqY0WBdPMjONHKMRfL1NDbc\nWeBjC8wM/1aunJbbYGo8+8Fb/xXRY1Z79gisu5GJlFiXuGeCZUxtA/xTEcMl\nfjgjOcTcElKsXcGZ0ZpT9WYyqi0aUWd1Tvn23CfHigLgnRDc6fO2BkKB5sjV\nSJJS5UTgOTmIixn3SM1tLs5kq4cMGadW6ZcpkgWlWjzb5FsEo2NUMMfjOANY\nDQQPS5EaiLNTkbPboAIEWdvE/41hYmsZfRyJXhaCTqPNQ6jf50BEEaf3E+Fe\n2V4V1bdYptcsgnD6cj9bQpckW29C5ASUMnTNXxDyfw9e3RwcftO9q4ubANgd\nzUv9\r\n=wZoo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID354DesMa0aVTGfryye++NHIuqwxcjS3K5YjfU0IUyvAiEAigd0CPFD+vpm7Vfnr9aGqUdvECD8vEdncD5jUhO6FTU="}],"size":3616,"noattachment":false,"key":"/codesandboxer-fs/-/codesandboxer-fs-0.0.3.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer-fs_0.0.3_1526281456031_0.24545207658859347"},"_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":1526281456140,"_cnpm_publish_time":1526281456140,"dist-tags":{"latest":"1.0.3"}}