{"name":"codesandboxer-fs","version":"1.0.2","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":"^1.0.2","meow":"^5.0.0","pkg-dir":"^2.0.0","resolve":"^1.7.1"},"bin":{"codesandboxer":"./src/cli.js"},"scripts":{"build":"echo done"},"devDependencies":{"react-node-resolver":"^1.0.1"},"repository":{"type":"git","url":"git+https://github.com/codesandbox/codesandboxer.git"},"bugs":{"url":"https://github.com/codesandbox/codesandboxer/issues"},"homepage":"https://github.com/codesandbox/codesandboxer#readme","_id":"codesandboxer-fs@1.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"integrity":"sha512-CKABpqykAEckvchs9RHd09Fs+oRqhrrNHKETuwRF7f39DFovqcAKt7y6WWxe//jF4SuygXzh+Wl3p55fauxZFA==","shasum":"1cd6c7e9875afe6b514fd4fc3fb84b991ca32f9e","tarball":"http://registry-npm.ywwl.com/codesandboxer-fs/download/codesandboxer-fs-1.0.2.tgz","fileCount":15,"unpackedSize":21038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLALzCRA9TVsSAnZWagAAngIP/iFW9ptKck7bsyL4ToMO\nbarg66l7TwP3UD8voJ2Sylqnl9y4drHFbLLvbsH3fK6m8X4ZN5UEwY50BQFH\n5F2WTK1mHKNo++ijyIszK8XiqieCvlGQJ0uko6oY36jlxCa5MRNirQ+MucLH\nMZtw1YN7wMEKkZCloAW+Zb47Cb1jhowxdJTrXqzlKsOjOp9bwYpWEC7OnxHe\nfK/3QTjKQPHjPcBcZtQwJOBQizqMbnfLVIbzkd9X15cOF2r68GQUaaxjEOdJ\naDZUNQqqU+YkOvLHR/yRQn3NKte+8VEN8IKwoqWdECfBuYWWjj0Y9BCEc+0e\nr9+bwkIXhvS8ZMlqwMEue2TsWSqRVRviSMbGZ789fZDxtN1dyFsWoke8UQBG\n3hbxapeoHoDYkCJjZHXnSAj12xQqotqQeB7d2gTyHEX6pdDI4dLZHCROnL4T\nK4fjsVU0N++rL9wiiNmR1enbO4XkAZ1lx2Sn2I2uOr2skMtavtgobkwMHAfT\nxEnAj4DBhpYXSPrZ2gq36cPvWC3giVcaSeZby+nRJhoIv85HJTAAw8ZQzmB7\nRbqvLX85vUgAYUX2tbzzsKfyDMId8KhqxNf9rPzzIbDBQS3tnAmxvCpUBPgz\n1leLqjEAdcrv9TOWJhCQc/F1m6Lv7Bb+aEfCkhrCCLlazyaGVd3IkOiX8mOV\n5f/c\r\n=s+pc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwGY7gGd4dcUJuknSiRvmkT9W+QsNJQy1WdMgZn4bXTgIgHEADxFz2DsDJqHQgDRDT1Xb0W9OiDVzh8jozTmfKoYA="}],"size":7051,"noattachment":false,"key":"/codesandboxer-fs/-/codesandboxer-fs-1.0.2.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer-fs_1.0.2_1563165427096_0.6045098580760413"},"_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":1563165427188,"_cnpm_publish_time":1563165427188,"dist-tags":{"latest":"1.0.3"}}