{"_id":"@atom/babel7-transpiler","_rev":"3-0d1fcaa20ba4898fb3455d574d0d9633","name":"@atom/babel7-transpiler","dist-tags":{"latest":"1.0.0-1"},"versions":{"1.0.0-0":{"name":"@atom/babel7-transpiler","version":"1.0.0-0","description":"A transpiler for Atom packages that processes code with Babel 7","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/atom/atom-babel7-transpiler.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["atom","babel","transpile","transpiler"],"license":"MIT","dependencies":{"@babel/core":"7.x"},"gitHead":"8221246d772408204b55744589a95a0cda5fe589","bugs":{"url":"https://github.com/atom/atom-babel7-transpiler/issues"},"homepage":"https://github.com/atom/atom-babel7-transpiler#readme","_id":"@atom/babel7-transpiler@1.0.0-0","_nodeVersion":"8.9.3","_npmVersion":"6.8.0","dist":{"integrity":"sha512-S7RX2BSUNAvIG1P6073wDa8J8204rdIbRQQ4jotO/V6tJUHMcMn+O3NQpav8ApABnxBulG/bhhpNLpbltU1PRg==","shasum":"4251f469bd5104d403af27a4846a9574e5c032bc","tarball":"https://registry.npmjs.org/@atom/babel7-transpiler/-/babel7-transpiler-1.0.0-0.tgz","fileCount":3,"unpackedSize":5720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdCReCRA9TVsSAnZWagAAkmwP+gNn9YKanbo0FCtJQZPx\nuKMbZKtdwiBBfPANmVFDeTBK4Eg0M1sEGu7rktNFM2jriCXVpS9x2pvnTTuu\nUEZyDjq2sCxBkaDVfhn/s2ouCJwkBFKBc+DBKzLjap5xM1zdCreGgSmuLpkQ\nYr3HmR1a8PCwo0Xwjl9PYaVcpRg4HALP9ro0pDrwcMqSY+Enu0L0Lw+2QtK/\n/u7TiMIWw8QabmgVj/+KYoHziTvdrM0SF+nvE4s2ipq+gft7U2P9Kp5gdUhw\neHtGs6yAqrfsfoQRDl/CUO3PKnMiA9lkImrSn93U+kwzwI+72BNlaidomzFy\nQttbOIuIIu0U3kKg8j6EBFZdNLWunaPga8JXp60ur9Yas37RS4PHda91bwuZ\neVzHDC4qidDtdCOYBmR+RIJ/c75I+XSCi2/DWGLATl9wdH02sNeWgZirVWrm\nG74fYF5S4pmYMtYBhJI/8V4NqgX90FMuLsswIzeE8i7wuTuEXvwdwaHrcGp2\nyIZGDfP4CzYhGQGNlp7wAxICxjtBXIT5fEYeBeQfyDoyXrP71X9crvNYKfnY\nQsVVD8H0ynJK2mvJIcPDMsQKWvcIY1BZgUjEmyHf5ki97Nnc09LTJkwvbvdV\nkGNfjIi5Cr07xAlp2XFT+d662FQVVx/oN45E4Xr1fBFXpg85x9XLjXvBZxJ8\nfV+j\r\n=MRdO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1POBX1bCa1Rl+kGtm3jx3YfuQLqGtMNyXPgynXjejagIgR0QiIzOo2v2QK3G8mIKLq1J1vd5m4s0zVtFAHw+x8RI="}]},"maintainers":[{"name":"daviwil","email":"daviwil@github.com"},{"name":"binarymuse","email":"michelle@michelletilley.net"},{"name":"kuychaco","email":"kuychaco@gmail.com"},{"name":"atom-team","email":"atom@github.com"},{"name":"smashwilson","email":"smashwilson@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"},{"name":"maxbrunsfeld","email":"maxbrunsfeld@gmail.com"},{"name":"simurai","email":"sim@simurai.com"},{"name":"iolsen","email":"ian.olsen@gmail.com"},{"name":"as-cii","email":"as-cii@github.com"},{"name":"jasonrudolph","email":"jason@jasonrudolph.com"},{"name":"lee-dohm","email":"lee@lee-dohm.com"},{"name":"donokuda","email":"helloyesthisisdon@gmail.com"}],"_npmUser":{"name":"smashwilson","email":"smashwilson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel7-transpiler_1.0.0-0_1551115357341_0.3183539446389705"},"_hasShrinkwrap":false},"1.0.0-1":{"name":"@atom/babel7-transpiler","version":"1.0.0-1","description":"A transpiler for Atom packages that processes code with Babel 7","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/atom/atom-babel7-transpiler.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["atom","babel","transpile","transpiler"],"license":"MIT","dependencies":{"@babel/core":"7.x"},"gitHead":"48828747f4db21b82a949358966d3c3a628a7e10","bugs":{"url":"https://github.com/atom/atom-babel7-transpiler/issues"},"homepage":"https://github.com/atom/atom-babel7-transpiler#readme","_id":"@atom/babel7-transpiler@1.0.0-1","_nodeVersion":"8.9.3","_npmVersion":"6.8.0","dist":{"integrity":"sha512-9M11+CLgifczOlh/j7R9VyOx7YVMeAPexAnxQJAhjqeg4XYgmFoAdBGIyZNuDq5nK4XWi3E11mJgdkF+u6gy2w==","shasum":"784e39419bb5f2e27e64f27074a1c393c89677bc","tarball":"https://registry.npmjs.org/@atom/babel7-transpiler/-/babel7-transpiler-1.0.0-1.tgz","fileCount":3,"unpackedSize":5733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdEimCRA9TVsSAnZWagAAr0wQAIvBYGXCK/hhWIyCHsFe\nEdLtkJOg72snRF+JXRQRNrCux4v9OJDK3h8re/3UUv7efsxTtERfIELNJHw1\niT81x+ceB75AujdXdZ5ZiA9jwPTXoYrDUTkXuJy3BLJRw83l0w2HsZaObtra\nX1EHiCFSc7CfyZ3rVZCEpqEXbiwtDsFtZWbqp3l9fJZGvPSh+Z+0jpbThRBg\n15s3hbO6I2ndUCHWYu+REn3QD3g38DWxazrjeFl50CvdpCRgUY9I+bLXMeml\n3jFEQ32xCGwah5T4eBMxdwnebTuafA2gO6n/o+BcbqsorqwHOx4qRW0shKBK\n0ym+hkgdKf+m00pPVloPHPNPggB9ZOTio4U1JEBB1zDpKdgZObSC5A5+Oyor\nttY7dD5A+f9AlkPdu1F7Y5lVlovm3Eq55nQiW7KmbkZpTWrllyw/cnNwK82F\nZN4YdnqsFYDXpkHoeQOjuy08vdPEayGDMZNaa5owUnySaUrDR05FhLv7XIta\nLArHZCnY96t7KQToL5mugfGlFz/638W8MycSWjIfoDhLoOU7ihDAO9lr8cQ7\nVRVOjFs+38nMk4b9wt5/s9V2w7llVuvtN64eGebYcUEr9FzWnR0MPnnba5Ri\ncUXgNWwGtVBQx/oCp3jiSKPDhVA29d8ll8pkUivReLuksDaODLrZ+0wqTAxa\nM2Hr\r\n=ykB/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzy1ZNMLZvAX1kMTOh9YitHOvsWSRnDXotFdqroVOqFAIgcEG6JNVXKMNFkFGdlGNuwYs1HxTk/LxafD6/7Y74vOA="}]},"maintainers":[{"name":"as-cii","email":"as-cii@github.com"},{"name":"atom-team","email":"atom@github.com"},{"name":"binarymuse","email":"michelle@michelletilley.net"},{"name":"daviwil","email":"daviwil@github.com"},{"name":"donokuda","email":"helloyesthisisdon@gmail.com"},{"name":"iolsen","email":"ian.olsen@gmail.com"},{"name":"jasonrudolph","email":"jason@jasonrudolph.com"},{"name":"kuychaco","email":"kuychaco@gmail.com"},{"name":"lee-dohm","email":"lee@lee-dohm.com"},{"name":"maxbrunsfeld","email":"maxbrunsfeld@gmail.com"},{"name":"nathansobo","email":"nathan@github.com"},{"name":"simurai","email":"sim@simurai.com"},{"name":"smashwilson","email":"smashwilson@gmail.com"}],"_npmUser":{"name":"smashwilson","email":"smashwilson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel7-transpiler_1.0.0-1_1551124645540_0.7497383276993006"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-25T17:22:37.211Z","1.0.0-0":"2019-02-25T17:22:37.455Z","modified":"2022-04-04T16:14:25.640Z","1.0.0-1":"2019-02-25T19:57:25.694Z"},"maintainers":[{"email":"mazen.elkashef@gmail.com","name":"kashef"},{"email":"daviwil@github.com","name":"daviwil"},{"email":"michelle@michelletilley.net","name":"binarymuse"},{"email":"kuychaco@gmail.com","name":"kuychaco"},{"email":"atom@github.com","name":"atom-team"},{"email":"smashwilson@gmail.com","name":"smashwilson"},{"email":"nathan@github.com","name":"nathansobo"},{"email":"maxbrunsfeld@gmail.com","name":"maxbrunsfeld"},{"email":"sim@simurai.com","name":"simurai"},{"email":"ian.olsen@gmail.com","name":"iolsen"},{"email":"as-cii@github.com","name":"as-cii"},{"email":"jason@jasonrudolph.com","name":"jasonrudolph"},{"email":"lee@lee-dohm.com","name":"lee-dohm"},{"email":"helloyesthisisdon@gmail.com","name":"donokuda"}],"description":"A transpiler for Atom packages that processes code with Babel 7","homepage":"https://github.com/atom/atom-babel7-transpiler#readme","keywords":["atom","babel","transpile","transpiler"],"repository":{"type":"git","url":"git+https://github.com/atom/atom-babel7-transpiler.git"},"bugs":{"url":"https://github.com/atom/atom-babel7-transpiler/issues"},"license":"MIT","readme":"# atom-babel7-transpiler\n\nThis project implements an Atom package transpiler that transpiles your package's files with Babel 7.\n\n## Usage\n\n1. Install the package\n2. Add an `atomTranspilers` entry to your `package.json`\n3. Install Babel presets and plugins, and configure Babel as you wish\n\nIn detail:\n\n**1.** First, install the package from the npm registry:\n\n    npm install --save @atom/babel7-transpiler\n\n**2.** Next, modify your `package.json` to include a reference to the transpiler for any files you want Babel to process as described in the Atom Flight Manual. For example, to process every file ending in `.js` in your package, you could use:\n\n```javascript\n{\n  ...\n  \"atomTranspilers\": [\n    {\n      \"glob\": \"**/*.js\",\n      \"transpiler\": \"@atom/babel7-transpiler\"\n    }\n  ]\n}\n```\n\n**3.** Finally, install Babel and all the presets and plugins you want to use as normal. For a simple example, if you wanted to use the ES2015 and React presets, you might run:\n\n    npm install --save babel-preset-env babel-preset-react\n\nand then create a [`.babelrc` file](http://babeljs.io/docs/usage/babelrc/) to configure Babel to use them:\n\n```json\n{\n  \"presets\": [\"env\", \"react\"]\n}\n```\n\nYou may also specify options in your `package.json` inside the optional `options` object; the subkey `babel`, if it exists, will be passed [as options to `babel.transformSync`](https://babeljs.io/docs/en/babel-core#transformsync). Note that if you don't want Babel to search up the directory hierarchy for a `.babelrc` file, you need to add the `\"babelrc\": false` option to the settings. Otherwise Babel may mistakenly use a user's `.babelrc` from elsewhere on the filesystem when trying to build your package.\n\n```javascript\n{\n  // ...\n  \"atomTranspilers\": [\n    {\n      \"glob\": \"**/*.js\",\n      \"transpiler\": \"@atom/babel7-transpiler\",\n      \"options\": {\n        \"babel\": {\n          \"presets\": [\"es2015\", \"react\"],\n          \"babelrc\": false\n        }\n      }\n    }\n  ]\n}\n```\n\n### Options\n\nYou may specify the following options as values of the `options` object in your `package.json`:\n\n|Option|Default|Description|\n|--:|---|---|\n|`setBabelEnv`|`false`, `true` or a string|Sets the `BABEL_ENV` environment variable. When `true`, sets it to `\"development\"` when `atom.inDevMode()` or `atom.inSpecMode()` is true and `\"production\"` otherwise. When given as a string, uses the value of the environment variable of that name instead. The feature returns `BABEL_ENV` to its prior value after transpilation finishes.|\n|`babel`|`{}`|Options to pass as the second argument to `babel.transform` (the same options you can put in a `.babelrc`).|\n|`cacheKeyFiles`|`[]`|An array of files to include when determining whether or not to use the cache. For example, to force a recompile anytime your `.babelrc` changes, add `.babelrc` to this array.|\n\n## Other Details\n\n### Source Maps\n\nTo enable source maps within Atom, set the Babel `sourceMaps` option to `\"inline\"` in your Babel configuration.\n\n### Babel Environment\n\nBabel supports [an option called `env`](https://babeljs.io/docs/usage/babelrc/#env-option) that allows you to configure Babel on a per-environment basis. The Babel environment is controlled via an environment variable called `BABEL_ENV`; this module automatically sets the environment variable to `\"development\"` if Atom is in dev mode (`atom.inDevMode()` returns `true`) and `\"production\"` otherwise.\n","readmeFilename":"README.md"}