pax_global_header00006660000000000000000000000064127650204050014513gustar00rootroot0000000000000052 comment=77de3ddaccb2fb0e578a5ae298a6cb1a7a69d31b babel-preset-es2015-loose-8.0.0/000077500000000000000000000000001276502040500161215ustar00rootroot00000000000000babel-preset-es2015-loose-8.0.0/.gitignore000066400000000000000000000010161276502040500201070ustar00rootroot00000000000000# Logs logs *.log # Runtime data pids *.pid *.seed # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt # node-waf configuration .lock-wscript # Compiled binary addons (http://nodejs.org/api/addons.html) build/Release # Dependency directory # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git node_modules babel-preset-es2015-loose-8.0.0/.npmignore000077500000000000000000000000261276502040500201210ustar00rootroot00000000000000src test node_modules babel-preset-es2015-loose-8.0.0/CHANGELOG.md000066400000000000000000000022261276502040500177340ustar00rootroot00000000000000# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning][semver]. ## [7.0.0] - 2016-01-12 ### Changed - Moved to a major release because of the introduction of [modify-babel-preset], which requires the installation of [babel-preset-es2015] in order to modify it. ## 6.2.1 - 2016-01-12 [YANKED] ### Added - Added some explanation to the README about installing babel-preset-es2015. ## 6.2.0 - 2016-01-12 [YANKED] ### Changed - Moved to [modify-babel-preset], introducing a new peerDependency on babel-preset-es2015. (This should have been a major release.) ## [6.1.4] - 2015-12-23 ### Fixed - Corrected the way that the 'loose' option is passed. Before, it wasn't being correctly activated. ## 6.1.3 - 2015-11-08 - Forked from [babel-preset-es2015] [babel-preset-es2015]: https://www.npmjs.com/package/babel-preset-es2015 [modify-babel-preset]: https://github.com/developit/modify-babel-preset [semver]: http://semver.org/ [7.0.0]: https://github.com/bkonkle/babel-preset-es2015-loose/releases/tag/v7.0.0 [6.1.4]: https://github.com/bkonkle/babel-preset-es2015-loose/releases/tag/v6.1.4 babel-preset-es2015-loose-8.0.0/LICENSE000066400000000000000000000020711276502040500171260ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2015 Brandon Konkle Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. babel-preset-es2015-loose-8.0.0/README.md000077500000000000000000000032471276502040500174110ustar00rootroot00000000000000# babel-preset-es2015-loose >## Deprecation warning >This project is deprecated for users of Babel v6.13+. It will still be maintained for users of earlier Babel versions. 👍 >The preset that this project is based on, [babel-preset-es2015](https://github.com/babel/babel/tree/master/packages/babel-preset-es2015), now supports setting the "loose" option directly. After updating to `babel-preset-es2015` v6.13.0 or higher, you can remove `'es2015-loose'` from your list of presets and instead use the `'es2015` preset this way: >```{ presets: [ ["es2015", {"loose": true}] ] }``` Babel preset that uses [modify-babel-preset] to modify [babel-preset-es2015] and enable [loose mode] where available. ## Install Install both this preset, and the core 'babel-preset-es2015' that it modifies: ```sh $ npm install --save-dev babel-preset-es2015-loose babel-preset-es2015 ``` Why do you need to install both? The idea is that `babel-preset-es2015-loose` will always be up to date because it will always use the version of `babel-preset-2015` that you have installed. If you don't want to update to the latest Babel release - you don't have to. Just pin `babel-preset-2015` to the version you need. ## Usage ### Via `.babelrc` (Recommended) **.babelrc** ```json { "presets": ["es2015-loose"] } ``` ### Via CLI ```sh $ babel script.js --presets es2015-loose ``` ### Via Node API ```javascript require("babel-core").transform("code", { presets: ["es2015-loose"] }) ``` [babel-preset-es2015]: https://www.npmjs.com/package/babel-preset-es2015 [loose mode]: http://www.2ality.com/2015/12/babel6-loose-mode.html [modify-babel-preset]: https://github.com/developit/modify-babel-preset babel-preset-es2015-loose-8.0.0/index.js000077500000000000000000000006451276502040500175760ustar00rootroot00000000000000var modify = require('modify-babel-preset'); var LOOSE = {loose: true}; module.exports = modify('es2015', { 'transform-es2015-template-literals': LOOSE, 'transform-es2015-classes': LOOSE, 'transform-es2015-computed-properties': LOOSE, 'transform-es2015-for-of': LOOSE, 'transform-es2015-spread': LOOSE, 'transform-es2015-destructuring': LOOSE, 'transform-es2015-modules-commonjs': LOOSE }); babel-preset-es2015-loose-8.0.0/package.json000066400000000000000000000013011276502040500204020ustar00rootroot00000000000000{ "name": "babel-preset-es2015-loose", "version": "8.0.0", "description": "Babel preset for all es2015 plugins, with loose mode enabled where available.", "authors": [ "Brandon Konkle ", "Jason Miller " ], "homepage": "https://babeljs.io/", "license": "MIT", "repository": "https://github.com/bkonkle/babel-preset-es2015-loose", "main": "index.js", "scripts": { "test": "node ./test | tap-spec" }, "dependencies": { "modify-babel-preset": "^3.1.0" }, "peerDependencies": { "babel-preset-es2015": "*" }, "devDependencies": { "babel-preset-es2015": "~6.9.0", "tap-spec": "^4.1.1", "tape": "^4.6.0" } } babel-preset-es2015-loose-8.0.0/test/000077500000000000000000000000001276502040500171005ustar00rootroot00000000000000babel-preset-es2015-loose-8.0.0/test/index.js000066400000000000000000000016631276502040500205530ustar00rootroot00000000000000var test = require('tape') var es2015 = require('babel-preset-es2015') var es2015Loose = require('../index') var LOOSE = {loose: true} var PREFIX = 'transform-es2015-' var SHOULD_BE_LOOSE = [ PREFIX + 'template-literals', PREFIX + 'classes', PREFIX + 'computed-properties', PREFIX + 'for-of', PREFIX + 'spread', PREFIX + 'destructuring', PREFIX + 'modules-commonjs' ] function getPluginEntry(name) { var plugin = require('babel-plugin-' + name) for (var loosePlugin of es2015Loose.plugins) { if (loosePlugin === plugin || loosePlugin[0] === plugin) { return loosePlugin } } return false } SHOULD_BE_LOOSE.forEach(function(name) { test(name, function(t) { t.plan(3) var entry = getPluginEntry(name) t.ok(entry, 'Entry for ' + name + ' should exist') t.ok(Array.isArray(entry), 'Entry for ' + name + ' should be an Array') t.deepEqual(entry[1], LOOSE, 'Entry for ' + name + ' should specify {loose:true}') }) });