Skip to content

Commit

Permalink
v1 implementation
Browse files Browse the repository at this point in the history
Co-authored-by: Jye Cusch <[email protected]>
Co-authored-by: David Moore <[email protected]>
Co-authored-by: Ryan Cartwright <[email protected]>
  • Loading branch information
4 people committed Feb 19, 2024
1 parent 4e5aa13 commit 57fee72
Show file tree
Hide file tree
Showing 187 changed files with 32,226 additions and 48,508 deletions.
21 changes: 13 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
module.exports = {
parser: '@typescript-eslint/parser',
ignorePatterns: [
'src/gen/**/*.ts',
'src/**/*.test.ts',
],
ignorePatterns: ['src/gen/**/*.ts', 'src/**/*.test.ts'],
env: {
node: true,
},
plugins: [
"jsdoc",
],
plugins: ['jsdoc'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
Expand All @@ -20,6 +15,16 @@ module.exports = {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'jsdoc/tag-lines': 'off', // not documented on jsdoc plugin site, unsure how to correct.
"@typescript-eslint/no-unused-vars": ["error", { "args": "all", "argsIgnorePattern": "^_" }],
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'all', argsIgnorePattern: '^_' },
],
'no-warning-comments': [
'error',
{
terms: ['todo', 'fixme'],
location: 'anywhere',
},
],
},
};
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ typings/

lib/

contracts/
contracts/

nitric/**
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pathsToModuleNameMapper } from 'ts-jest';
import { pathsToModuleNameMapper } from 'ts-jest/utils';
import { compilerOptions } from './tsconfig.json';

module.exports = {
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@
"license:header:check": "license-check-and-add check -f ./licenseconfig.json",
"license:check": "licensee --production",
"download:contracts": "curl -L https://github.com/nitrictech/nitric/releases/download/${npm_package_nitric}/contracts.tgz -o contracts.tgz && tar xvzf contracts.tgz && rm contracts.tgz",
"download:contracts:local": "rm -r ./nitric && mkdir ./nitric && cp -r $NITRIC_CORE_HOME/nitric/proto ./nitric",
"gen:proto": "yarn run download:contracts && yarn run gen:sources",
"gen:sources": "mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./contracts ./contracts/**/*.proto ./contracts/proto/**/*/*.proto"
"gen:sources": "mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./ ./nitric/proto/**/*/*.proto"
},
"contributors": [
"Jye Cusch <[email protected]>",
"Tim Holm <[email protected]>",
"David Moore <[email protected]>"
],
"dependencies": {
"@grpc/grpc-js": "1.8.1",
"@grpc/grpc-js": "1.10.0",
"@nitric/grpc-error-status": "^0.0.2",
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.36.1",
"@opentelemetry/instrumentation": "^0.36.1",
"@opentelemetry/instrumentation-grpc": "^0.36.1",
"@opentelemetry/instrumentation-http": "^0.36.1",
"@opentelemetry/resources": "^1.10.1",
"@opentelemetry/sdk-trace-node": "^1.10.1",
"@opentelemetry/semantic-conventions": "^1.10.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.48.0",
"@opentelemetry/instrumentation": "^0.48.0",
"@opentelemetry/instrumentation-grpc": "^0.48.0",
"@opentelemetry/instrumentation-http": "^0.48.0",
"@opentelemetry/resources": "^1.21.0",
"@opentelemetry/sdk-trace-node": "^1.21.0",
"@opentelemetry/semantic-conventions": "^1.21.0",
"google-protobuf": "3.14.0",
"portfinder": "^1.0.32",
"tslib": "^2.1.0"
Expand All @@ -57,11 +58,12 @@
"devDependencies": {
"@types/google-protobuf": "^3.15.6",
"@types/jest": "^26.0.15",
"@types/node": "^20.11.17",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"codecov": "^3.8.3",
"eslint": "^7.24.0",
"eslint-plugin-jsdoc": "^40.1.0",
"eslint-plugin-jsdoc": "^46.9.1",
"glob-run": "^0.1.7",
"grpc-tools": "^1.11.3",
"husky": "^6.0.0",
Expand Down
82 changes: 0 additions & 82 deletions src/api/documents/v0/collection-group-ref.test.ts

This file was deleted.

114 changes: 0 additions & 114 deletions src/api/documents/v0/collection-group-ref.ts

This file was deleted.

85 changes: 0 additions & 85 deletions src/api/documents/v0/collection-ref.ts

This file was deleted.

Loading

0 comments on commit 57fee72

Please sign in to comment.