-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(labs): ts_proto_library directly exports commonjs
Removes direct interoperability with ts_library Update to latest grpc-web protoc plugin
- Loading branch information
Showing
31 changed files
with
3,062 additions
and
3,324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"Shows how you might create a macro for the autogenerated Jest rule" | ||
|
||
load("@npm//jest-cli:index.bzl", _jest_test = "jest_test") | ||
|
||
def jest_test(name, srcs, deps, jest_config, **kwargs): | ||
"A macro around the autogenerated jest_test rule" | ||
templated_args = [ | ||
"--no-cache", | ||
"--no-watchman", | ||
"--ci", | ||
"--colors", | ||
] | ||
templated_args.extend(["--config", "$(rootpath %s)" % jest_config]) | ||
for src in srcs: | ||
templated_args.extend(["--runTestsByPath", "$(rootpath %s)" % src]) | ||
|
||
data = [jest_config] + srcs + deps | ||
_jest_test( | ||
name = name, | ||
data = data, | ||
templated_args = templated_args, | ||
**kwargs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
testEnvironment: 'node', | ||
// explicitly specify the path to babel.config.js relative to jest.config.js so | ||
// jest can find it even when jest.config.js is not in the root folder of the workspace | ||
transform: | ||
{ '^.+\\.[jt]sx?$': ['babel-jest', { configFile: path.resolve(__dirname, 'babel.config.js') }] }, | ||
testMatch: ['**/*.spec.js'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
{ | ||
"devDependencies": { | ||
"@bazel/concatjs": "^3.6.0", | ||
"@bazel/labs": "^3.6.0", | ||
"@bazel/protractor": "^3.6.0", | ||
"@bazel/rollup": "^3.6.0", | ||
"@bazel/terser": "^3.6.0", | ||
"@bazel/typescript": "^3.6.0", | ||
"@rollup/plugin-commonjs": "14.0.0", | ||
"@rollup/plugin-node-resolve": "8.4.0", | ||
"@babel/core": "^7.14.6", | ||
"@babel/preset-env": "^7.14.7", | ||
"@bazel/labs": "3.6.0", | ||
"@bazel/rollup": "3.6.0", | ||
"@bazel/terser": "3.6.0", | ||
"@bazel/typescript": "3.6.0", | ||
"@rollup/plugin-typescript": "^8.2.1", | ||
"@types/google-protobuf": "^3.15.2", | ||
"@types/jasmine": "2.8.2", | ||
"@types/jest": "^26.0.23", | ||
"@types/long": "^4.0.0", | ||
"@types/node": "11.11.1", | ||
"google-protobuf": "3.11.4", | ||
"grpc-web": "1.1.0", | ||
"http-server": "^0.11.1", | ||
"jasmine": "2.8.0", | ||
"karma": "~4.1.0", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-firefox-launcher": "1.1.0", | ||
"karma-jasmine": "2.0.1", | ||
"karma-requirejs": "1.1.0", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"long": "4.0.0", | ||
"protobufjs": "5.0.3", | ||
"protractor": "^5.4.2", | ||
"requirejs": "2.3.6", | ||
"rollup": "2.3.4", | ||
"terser": "4.3.1", | ||
"typescript": "^3.3.1" | ||
"@types/node": "^15.12.4", | ||
"babel-jest": "^27.0.5", | ||
"google-protobuf": "3.17.3", | ||
"grpc-web": "1.2.1", | ||
"jest": "^27.0.5", | ||
"jest-cli": "^27.0.5", | ||
"rollup": "2.52.2", | ||
"terser": "5.7.0", | ||
"typescript": "4.3.4" | ||
}, | ||
"scripts": { | ||
"test": "bazel test ..." | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
const commonjs = require('@rollup/plugin-commonjs'); | ||
const {nodeResolve} = require('@rollup/plugin-node-resolve'); | ||
// rollup.config.js | ||
import typescript from '@rollup/plugin-typescript'; | ||
|
||
module.exports = { | ||
plugins: [ | ||
nodeResolve(), | ||
commonjs(), | ||
], | ||
export default { | ||
plugins: [typescript({ allowJs: true })], | ||
}; |
Oops, something went wrong.