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:
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
|
||||
Reference in New Issue
Block a user