Begin transition of Babel to a more scalable architecture, async flow to allow for RPC and better build system for multiple packages
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
"slash": "^1.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"babel": "./bin/babel/index.js",
|
||||
"babel-node": "./bin/babel-node",
|
||||
"babel-external-helpers": "./bin/babel-external-helpers",
|
||||
"babel-plugin": "./bin/babel-plugin/index.js"
|
||||
"babel": "./lib/babel/index.js",
|
||||
"babel-node": "./lib/babel-node",
|
||||
"babel-external-helpers": "./lib/babel-external-helpers",
|
||||
"babel-plugin": "./lib/babel-plugin/index.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,6 @@ commander.option("-t, --output-type [type]", "Type of output (global|umd|var)",
|
||||
commander.usage("[options]");
|
||||
commander.parse(process.argv);
|
||||
|
||||
console.log(runtime(commander.whitelist, commander.outputType));
|
||||
util.ensureTemplates().then(function () {
|
||||
console.log(runtime(commander.whitelist, commander.outputType));
|
||||
});
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require("babel-core");
|
||||
|
||||
var moduleFormatters = require("babel-core/lib/babel/transformation/modules");
|
||||
var moduleFormatters = require("babel-core/lib/transformation/modules");
|
||||
var pathExists = require("path-exists");
|
||||
var commander = require("commander");
|
||||
var transform = require("babel-core").transform;
|
||||
@@ -35,7 +35,7 @@ exports.transform = function (filename, code, opts) {
|
||||
opts.ignore = null;
|
||||
opts.only = null;
|
||||
|
||||
var result = babel.transform(code, opts);
|
||||
var result = babel.__plsDontUseThis(code, opts);
|
||||
result.filename = filename;
|
||||
result.actual = code;
|
||||
return result;
|
||||
3
packages/babel-cli/test/.babelrc
Normal file
3
packages/babel-cli/test/.babelrc
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"breakConfig": true
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type global/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type global/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--whitelist", "nonexistent"]
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type global/stdout.txt
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type global/stdout.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(function (global) {
|
||||
var babelHelpers = global.babelHelpers = {};
|
||||
})(typeof global === "undefined" ? self : global);
|
||||
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type umd/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type umd/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--whitelist", "nonexistent", "--output-type", "umd"]
|
||||
}
|
||||
11
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type umd/stdout.txt
vendored
Normal file
11
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type umd/stdout.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
(function (root, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports"], factory);
|
||||
} else if (typeof exports === "object") {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory(root.babelHelpers = {});
|
||||
}
|
||||
})(this, function (global) {
|
||||
var babelHelpers = global;
|
||||
})
|
||||
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type var/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type var/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--whitelist", "nenexistent", "--output-type", "var"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type var/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel-external-helpers/--output-type var/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var babelHelpers = {};
|
||||
3
packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--whitelist", "slice,has-own"]
|
||||
}
|
||||
5
packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/stdout.txt
vendored
Normal file
5
packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/stdout.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
(function (global) {
|
||||
var babelHelpers = global.babelHelpers = {};
|
||||
babelHelpers.hasOwn = Object.prototype.hasOwnProperty;
|
||||
babelHelpers.slice = Array.prototype.slice;
|
||||
})(typeof global === "undefined" ? self : global);
|
||||
4
packages/babel-cli/test/fixtures/babel-node/--eval/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/--eval/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--eval", "console.log([1, 2, 3].map(x => x * x));"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel-node/--extensions/in-files/foo.bar
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel-node/--extensions/in-files/foo.bar
vendored
Normal file
@@ -0,0 +1 @@
|
||||
console.log([1, 2, 3].map(x => x * x));
|
||||
4
packages/babel-cli/test/fixtures/babel-node/--extensions/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/--extensions/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["foo", "--extensions", ".bar"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
4
packages/babel-cli/test/fixtures/babel-node/--print/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/--print/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--print", "--eval", "([1, 2, 3].map(x => x * x))"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
2
packages/babel-cli/test/fixtures/babel-node/directory/in-files/foo/index.js
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel-node/directory/in-files/foo/index.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
3
packages/babel-cli/test/fixtures/babel-node/directory/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-node/directory/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["foo"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel-node/directory/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel-node/directory/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
2
packages/babel-cli/test/fixtures/babel-node/filename/in-files/bar.js
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel-node/filename/in-files/bar.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
3
packages/babel-cli/test/fixtures/babel-node/filename/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-node/filename/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["bar"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel-node/filename/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel-node/filename/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
2
packages/babel-cli/test/fixtures/babel-node/require/in-files/bar2.js
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel-node/require/in-files/bar2.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
var bar = () => console.log("bar");
|
||||
bar();
|
||||
5
packages/babel-cli/test/fixtures/babel-node/require/in-files/foo2.js
vendored
Normal file
5
packages/babel-cli/test/fixtures/babel-node/require/in-files/foo2.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import "./bar2";
|
||||
import "./not_node_modules";
|
||||
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
10
packages/babel-cli/test/fixtures/babel-node/require/in-files/not_node_modules.jsx
vendored
Normal file
10
packages/babel-cli/test/fixtures/babel-node/require/in-files/not_node_modules.jsx
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
The purpose of this file is to test that the node_modules check in the require
|
||||
hook doesn't mistakenly exclude something like "not_node_modules". To pass, this
|
||||
file merely needs to be transpiled. The transpiled code won't, and doesn't need
|
||||
to, execute without error. It won't execute because React will be undefined.
|
||||
*/
|
||||
try {
|
||||
<Some jsx="element" />;
|
||||
}
|
||||
catch (e) {}
|
||||
3
packages/babel-cli/test/fixtures/babel-node/require/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel-node/require/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["foo2"]
|
||||
}
|
||||
2
packages/babel-cli/test/fixtures/babel-node/require/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel-node/require/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
bar
|
||||
foo
|
||||
3
packages/babel-cli/test/fixtures/babel/--blacklist/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--blacklist/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--blacklist", "es6.arrowFunctions"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/--blacklist/stdin.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--blacklist/stdin.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/--blacklist/stdout.txt
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--blacklist/stdout.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/bar/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/bar/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
0
packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/foo/foo.js
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/foo/foo.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--ignore", "src/foo/*"]
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore/out-files/lib/bar/index.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore/out-files/lib/bar/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
src/bar/index.js -> lib/bar/index.js
|
||||
1
packages/babel-cli/test/fixtures/babel/--only/in-files/src/bar/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only/in-files/src/bar/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
0
packages/babel-cli/test/fixtures/babel/--only/in-files/src/foo/index.js
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--only/in-files/src/foo/index.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--only", "src/bar/*"]
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel/--only/out-files/lib/bar/index.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only/out-files/lib/bar/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
src/bar/index.js -> lib/bar/index.js
|
||||
3
packages/babel-cli/test/fixtures/babel/--whitelist/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--whitelist/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--whitelist", "es6.arrowFunctions"]
|
||||
}
|
||||
2
packages/babel-cli/test/fixtures/babel/--whitelist/stdin.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/--whitelist/stdin.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
let MULTIPLER = 5;
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
4
packages/babel-cli/test/fixtures/babel/--whitelist/stdout.txt
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel/--whitelist/stdout.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
let MULTIPLER = 5;
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
3
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--source-maps", "--out-file", "test.js"]
|
||||
}
|
||||
7
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/out-files/test.js
vendored
Normal file
7
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/out-files/test.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=test.js.map
|
||||
1
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/out-files/test.js.map
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/out-files/test.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["stdin"],"names":[],"mappings":";;AAAA,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,CAAC;CAAA,CAAC,CAAC","file":"test.js","sourcesContent":["arr.map(x => x * x);"]}
|
||||
1
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/stdin.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/stdin.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * x);
|
||||
3
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--source-maps", "inline"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/stdin.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/stdin.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * x);
|
||||
7
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/stdout.txt
vendored
Normal file
7
packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/stdout.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFBLENBQUM7U0FBSSxDQUFDLEdBQUcsQ0FBQztDQUFBLENBQUMsQ0FBQyIsImZpbGUiOiJzdGRvdXQiLCJzb3VyY2VzQ29udGVudCI6WyJhcnIubWFwKHggPT4geCAqIHgpOyJdfQ==
|
||||
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--source-maps", "inline", "--out-dir", "lib"]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iYXIvYmFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7SUFBTSxJQUFJLFlBQUosSUFBSTt3QkFBSixJQUFJIiwiZmlsZSI6ImJhci5qcyIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIFRlc3Qge1xuXG59Il19
|
||||
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mb28uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQUEsQ0FBQztTQUFJLENBQUMsR0FBRyxVQUFVO0NBQUEsQ0FBQyxDQUFDIiwiZmlsZSI6ImZvby5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
||||
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/bar/bar.js -> lib/bar/bar.js
|
||||
src/foo.js -> lib/foo.js
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/bar/bar.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/bar/bar.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--source-maps", "--out-dir", "lib"]
|
||||
}
|
||||
8
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/bar/bar.js
vendored
Normal file
8
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/bar/bar.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
//# sourceMappingURL=bar.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/bar/bar.js"],"names":[],"mappings":";;;;IAAM,IAAI,YAAJ,IAAI;wBAAJ,IAAI","file":"bar.js","sourcesContent":["class Test {\n\n}"]}
|
||||
6
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/foo.js
vendored
Normal file
6
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/foo.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
//# sourceMappingURL=foo.js.map
|
||||
1
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/foo.js.map
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/out-files/lib/foo.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/foo.js"],"names":[],"mappings":";;AAAA,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,UAAU;CAAA,CAAC,CAAC","file":"foo.js","sourcesContent":["arr.map(x => x * MULTIPLIER);"]}
|
||||
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/bar/bar.js -> lib/bar/bar.js
|
||||
src/foo.js -> lib/foo.js
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/bar/bar.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/bar/bar.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib"]
|
||||
}
|
||||
7
packages/babel-cli/test/fixtures/babel/dir --out-dir/out-files/lib/bar/bar.js
vendored
Normal file
7
packages/babel-cli/test/fixtures/babel/dir --out-dir/out-files/lib/bar/bar.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
5
packages/babel-cli/test/fixtures/babel/dir --out-dir/out-files/lib/foo.js
vendored
Normal file
5
packages/babel-cli/test/fixtures/babel/dir --out-dir/out-files/lib/foo.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
2
packages/babel-cli/test/fixtures/babel/dir --out-dir/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/dir --out-dir/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/bar/bar.js -> lib/bar/bar.js
|
||||
src/foo.js -> lib/foo.js
|
||||
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/filename --out-file --source-maps inline/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filename --out-file --source-maps inline/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["script.js", "--source-maps", "inline", "--out-file", "script2.js"]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLEdBQUcsQ0FBQyxHQUFHLENBQUMsVUFBQSxDQUFDO1NBQUksQ0FBQyxHQUFHLFVBQVU7Q0FBQSxDQUFDLENBQUMiLCJmaWxlIjoic2NyaXB0Mi5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
||||
1
packages/babel-cli/test/fixtures/babel/filename --out-file/in-files/script.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/filename --out-file/in-files/script.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/filename --out-file/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filename --out-file/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["script.js", "--out-file", "script2.js"]
|
||||
}
|
||||
5
packages/babel-cli/test/fixtures/babel/filename --out-file/out-files/script2.js
vendored
Normal file
5
packages/babel-cli/test/fixtures/babel/filename --out-file/out-files/script2.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["script.js", "script2.js", "--source-maps", "inline", "--out-file", "script3.js"]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyIsInNjcmlwdDIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztJQUFNLElBQUksWUFBSixJQUFJO3dCQUFKLElBQUk7Ozs7O0FDQVYsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFBLENBQUM7U0FBSSxDQUFDLEdBQUcsVUFBVTtDQUFBLENBQUMsQ0FBQyIsImZpbGUiOiJzY3JpcHQzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiY2xhc3MgVGVzdCB7XG5cbn0iLCJhcnIubWFwKHggPT4geCAqIE1VTFRJUExJRVIpOyJdfQ==
|
||||
3
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/in-files/script.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/in-files/script.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["script.js", "script2.js", "--source-maps", "--out-file", "script3.js"]
|
||||
}
|
||||
14
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/out-files/script3.js
vendored
Normal file
14
packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/out-files/script3.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=script3.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["script.js","script2.js"],"names":[],"mappings":";;;;IAAM,IAAI,YAAJ,IAAI;wBAAJ,IAAI;;;;;ACAV,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,UAAU;CAAA,CAAC,CAAC","file":"script3.js","sourcesContent":["class Test {\n\n}","arr.map(x => x * MULTIPLIER);"]}
|
||||
3
packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script2.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script2.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/filenames --out-file/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/filenames --out-file/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["script.js", "script2.js", "--out-file", "script3.js"]
|
||||
}
|
||||
12
packages/babel-cli/test/fixtures/babel/filenames --out-file/out-files/script3.js
vendored
Normal file
12
packages/babel-cli/test/fixtures/babel/filenames --out-file/out-files/script3.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
4
packages/babel-cli/test/fixtures/babel/stdin --filename/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel/stdin --filename/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--filename", "test.js"],
|
||||
"stderrContains": true
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SyntaxError: test.js: Unexpected token (2:10)
|
||||
3
packages/babel-cli/test/fixtures/babel/stdin --filename/stdin.txt
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/stdin --filename/stdin.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
arr.map(function () {
|
||||
return $]!;
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user