Skip to content

Commit

Permalink
IntelliJ and VSCode runners for Babel (#5756)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian committed Nov 23, 2021
1 parent 0bcd225 commit aff6ff6
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 33 deletions.
20 changes: 5 additions & 15 deletions .vscode/launch.json
Expand Up @@ -29,16 +29,12 @@
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"cwd": "${workspaceRoot}/packages/firestore",
"args": [
"--require", "ts-node/register/type-check",
"--require", "babel-register.js",
"--require", "index.node.ts",
"--timeout", "5000",
"test/{,!(browser|integration)/**/}*.test.ts",
"--exit"
],
"env": {
"TS_NODE_CACHE": "NO",
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}"
},
"sourceMaps": true,
"protocol": "inspector"
},
Expand All @@ -49,17 +45,15 @@
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"cwd": "${workspaceRoot}/packages/firestore",
"args": [
"--require", "ts-node/register/type-check",
"--require", "babel-register.js",
"--require", "index.node.ts",
"--require", "test/util/node_persistence.ts",
"--timeout", "5000",
"test/{,!(browser|integration)/**/}*.test.ts",
"--exit"
],
"env": {
"USE_MOCK_PERSISTENCE": "YES",
"TS_NODE_CACHE": "NO",
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}"
"USE_MOCK_PERSISTENCE": "YES"
},
"sourceMaps": true,
"protocol": "inspector"
Expand All @@ -71,15 +65,13 @@
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"cwd": "${workspaceRoot}/packages/firestore",
"args": [
"--require", "ts-node/register/type-check",
"--require", "babel-register.js",
"--require", "index.node.ts",
"--timeout", "5000",
"test/{,!(browser|unit)/**/}*.test.ts",
"--exit"
],
"env": {
"TS_NODE_CACHE": "NO",
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}",
"FIRESTORE_EMULATOR_PORT" : "8080",
"FIRESTORE_EMULATOR_PROJECT_ID" : "test-emulator"
},
Expand All @@ -93,7 +85,7 @@
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"cwd": "${workspaceRoot}/packages/firestore",
"args": [
"--require", "ts-node/register/type-check",
"--require", "babel-register.js",
"--require", "index.node.ts",
"--require", "test/util/node_persistence.ts",
"--timeout", "5000",
Expand All @@ -102,8 +94,6 @@
],
"env": {
"USE_MOCK_PERSISTENCE": "YES",
"TS_NODE_CACHE": "NO",
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}",
"FIRESTORE_EMULATOR_PORT" : "8080",
"FIRESTORE_EMULATOR_PROJECT_ID" : "test-emulator"
},
Expand Down

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.

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.

5 changes: 1 addition & 4 deletions packages/firestore/.idea/runConfigurations/Unit_Tests.xml

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.

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

2 changes: 1 addition & 1 deletion packages/firestore/babel.config.json
Expand Up @@ -4,4 +4,4 @@
["@babel/preset-env", {"targets": {"node": "10"}, "modules": "cjs"}]
],
"plugins": ["babel-plugin-transform-import-meta"]
}
}

0 comments on commit aff6ff6

Please sign in to comment.