Skip to content

Commit

Permalink
Remove yearly presets from repo, inline in standalone (#8274)
Browse files Browse the repository at this point in the history
These were already deprecated in v6, just didn't remove the folders?
  • Loading branch information
hzoo committed Jul 9, 2018
1 parent dd6da3b commit 10910a1
Show file tree
Hide file tree
Showing 603 changed files with 164 additions and 12,312 deletions.
@@ -1,3 +1 @@
class Test1 {

}
(() => 42)
@@ -1,3 +1 @@
class Test2 {

}
(() => 42)
@@ -1,9 +1,5 @@
"use strict";

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Test1 = function Test1() {
_classCallCheck(this, Test1);
};
(function () {
return 42;
});
@@ -1,9 +1,5 @@
"use strict";

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Test2 = function Test2() {
_classCallCheck(this, Test2);
};
(function () {
return 42;
});
@@ -1,3 +1 @@
class Test {

}
(() => 42)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1 @@
class Test {

}
(() => 42)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1 @@
class Test {

}
(() => 42)
@@ -1,9 +1,5 @@
"use strict";

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Test = function Test() {
_classCallCheck(this, Test);
};
(function () {
return 42;
});
@@ -1,3 +1 @@
class Test {

}
(() => 42)
@@ -1,9 +1,5 @@
"use strict";

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Test = function Test() {
_classCallCheck(this, Test);
};
(function () {
return 42;
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1 @@
class Test {

}
(() => 42)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1 @@
class Test {

}
(() => 42)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,3 +1 @@
class Test {

}
(() => 42)
@@ -1,12 +1,8 @@
"use strict";

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Test = function Test() {
_classCallCheck(this, Test);
};
(function () {
return 42;
});
"use strict";

arr.map(function (x) {
Expand Down
6 changes: 2 additions & 4 deletions packages/babel-cli/test/index.js
Expand Up @@ -14,12 +14,10 @@ const fileFilter = function(x) {
return x !== ".DS_Store";
};

const presetLocs = [
path.join(__dirname, "../../babel-preset-es2015"),
path.join(__dirname, "../../babel-preset-react"),
].join(",");
const presetLocs = [path.join(__dirname, "../../babel-preset-react")];

const pluginLocs = [
path.join(__dirname, "/../../babel-plugin-transform-arrow-functions"),
path.join(__dirname, "/../../babel-plugin-transform-strict-mode"),
path.join(__dirname, "/../../babel-plugin-transform-modules-commonjs"),
].join(",");
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-core/test/api.js
Expand Up @@ -180,7 +180,7 @@ describe("api", function() {

it("options merge backwards", function() {
return transformAsync("", {
presets: [__dirname + "/../../babel-preset-es2015"],
presets: [__dirname + "/../../babel-preset-env"],
plugins: [__dirname + "/../../babel-plugin-syntax-jsx"],
}).then(function(result) {
expect(result.options.plugins[0].manipulateOptions.toString()).toEqual(
Expand Down Expand Up @@ -259,8 +259,8 @@ describe("api", function() {
};
},

// ES2015 preset
require(__dirname + "/../../babel-preset-es2015"),
// env preset
require(__dirname + "/../../babel-preset-env"),

// Third preset for Flow.
function() {
Expand Down
@@ -1,4 +1,4 @@
{
"plugins": ["transform-async-to-generator"],
"presets": ["es2015"]
"presets": ["env"]
}
Expand Up @@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

Expand Down
@@ -1,7 +1,7 @@
{
"compact": false,
"presets": [
"es2015",
"env",
["stage-2", { "decoratorsLegacy": true }]
]
}
@@ -1,4 +1,4 @@
{
"plugins": ["transform-async-to-generator"],
"presets": ["es2015"]
"presets": ["env"]
}
2 changes: 1 addition & 1 deletion packages/babel-node/test/index.js
Expand Up @@ -16,7 +16,7 @@ const fileFilter = function(x) {
};

const presetLocs = [
path.join(__dirname, "../../babel-preset-es2015"),
path.join(__dirname, "../../babel-preset-env"),
path.join(__dirname, "../../babel-preset-react"),
].join(",");

Expand Down
Expand Up @@ -3,7 +3,7 @@
"transform-async-to-generator",
"proposal-async-generator-functions"
],
"presets": ["es2015"],
"presets": ["env"],
"parserOpts": {
"allowReturnOutsideFunction": true
}
Expand Down
Expand Up @@ -4,7 +4,7 @@
"transform-async-to-generator",
"proposal-async-generator-functions"
],
"presets": ["es2015"],
"presets": ["env"],
"parserOpts": {
"allowReturnOutsideFunction": true
}
Expand Down
Expand Up @@ -4,7 +4,7 @@
"transform-async-to-generator",
"proposal-async-generator-functions"
],
"presets": ["es2015"],
"presets": ["env"],
"parserOpts": {
"allowReturnOutsideFunction": true
}
Expand Down
@@ -1,6 +1,6 @@
{
"presets": [
["stage-0", { "decoratorsLegacy": true, "pipelineProposal": "minimal" }],
"es2015"
"env"
]
}
Expand Up @@ -2,6 +2,6 @@
"plugins": ["external-helpers", ["proposal-class-properties", {"loose": true}]],
"presets": [
["stage-0", { "decoratorsLegacy": true, "pipelineProposal": "minimal" }],
"es2015"
"env"
]
}
Expand Up @@ -2,6 +2,6 @@
"plugins": ["external-helpers", "proposal-class-properties"],
"presets": [
["stage-0", { "decoratorsLegacy": true, "pipelineProposal": "minimal" }],
"es2015"
"env"
]
}
@@ -1,6 +1,6 @@
{
"presets": [
"es2015",
"env",
["stage-2", { "decoratorsLegacy": true }]
]
}
@@ -1,7 +1,5 @@
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
Expand All @@ -12,7 +10,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }

Expand Down
@@ -1,5 +1,5 @@
{
"presets": ["es2015"],
"presets": ["env"],
"plugins": [
["proposal-decorators", { "legacy": true }],
["proposal-class-properties", { "loose": true }]
Expand Down
@@ -1,5 +1,5 @@
{
"presets": ["es2015"],
"presets": ["env"],
"plugins": [
["proposal-decorators", { "legacy": true }],
["proposal-class-properties", { "loose": true }]
Expand Down
@@ -1,5 +1,5 @@
{
"presets": ["es2015"],
"presets": ["env"],
"plugins": [
["proposal-decorators", { "legacy": true }],
["proposal-class-properties", { "loose": true }]
Expand Down
@@ -1,5 +1,5 @@
{
"presets": ["es2015"],
"presets": ["env"],
"plugins": [
["proposal-decorators", { "legacy": true }],
["proposal-class-properties", { "loose": true }]
Expand Down

0 comments on commit 10910a1

Please sign in to comment.