Skip to content

Commit a9a54ca

Browse files
committed
websocket client for nest
0 parents  commit a9a54ca

32 files changed

+7902
-0
lines changed

.circleci/config.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/2.0/configuration-reference
3+
version: 2.1
4+
5+
orbs:
6+
# The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize
7+
# Orbs reduce the amount of configuration required for common tasks.
8+
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node
9+
node: circleci/node@4.1
10+
coveralls: coveralls/coveralls@1.0.6
11+
12+
jobs:
13+
test:
14+
parameters:
15+
node-version:
16+
type: string
17+
docker:
18+
- image: circleci/node:<< parameters.node-version >>
19+
resource_class: small
20+
steps:
21+
- checkout
22+
- restore_cache:
23+
# See the configuration reference documentation for more details on using restore_cache and save_cache steps
24+
# https://circleci.com/docs/2.0/configuration-reference/?section=reference#save_cache
25+
keys:
26+
- node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}}
27+
- run:
28+
name: install packages
29+
command: npm ci
30+
- save_cache:
31+
key: node-deps-v1-{{ .Branch }}-{{checksum "package-lock.json"}}
32+
paths:
33+
- ~/.npm
34+
- run:
35+
name: Run Lint
36+
command: npm run lint:ci
37+
- run:
38+
name: Run Tests
39+
command: npm run test:cov
40+
- run:
41+
name: Run Build
42+
command: npm run build
43+
- coveralls/upload:
44+
path_to_lcov: coverage/lcov.info
45+
verbose: true
46+
47+
workflows:
48+
test-workflow:
49+
jobs:
50+
- test:
51+
matrix:
52+
parameters:
53+
node-version: ['16.4', '14.17', '12.22']

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
root: true,
13+
env: {
14+
node: true,
15+
jest: true,
16+
},
17+
ignorePatterns: ['.eslintrc.js'],
18+
rules: {
19+
'@typescript-eslint/interface-name-prefix': 'off',
20+
'@typescript-eslint/explicit-function-return-type': 'off',
21+
'@typescript-eslint/explicit-module-boundary-types': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
},
24+
};

.github/ISSUE_TEMPLATE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!--
2+
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
3+
4+
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
5+
-->
6+
7+
## I'm submitting a...
8+
<!--
9+
Please search GitHub for a similar issue or PR before submitting.
10+
Check one of the following options with "x" -->
11+
<pre><code>
12+
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
13+
[ ] Bug report
14+
[ ] Feature request
15+
[ ] Documentation issue or request
16+
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
17+
</code></pre>
18+
19+
## Current behavior
20+
<!-- Describe how the issue manifests. -->
21+
22+
23+
## Expected behavior
24+
<!-- Describe what the desired behavior would be. -->
25+
26+
27+
## Minimal reproduction of the problem with instructions
28+
<!-- Please share a repo, a gist, or step-by-step instructions. -->
29+
30+
## What is the motivation / use case for changing the behavior?
31+
<!-- Describe the motivation or the concrete use case. -->
32+
33+
## Environment
34+
35+
<pre><code>
36+
Nest version: X.Y.Z
37+
Nest WebSocket: X.Y.Z
38+
<!-- Check whether this is still an issue in the most recent Nest version -->
39+
40+
For Tooling issues:
41+
- Node version: XX <!-- run `node --version` -->
42+
- Platform: <!-- Mac, Linux, Windows -->
43+
- Server: <!-- Express, Fastify -->
44+
45+
Others:
46+
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
47+
</code></pre>

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## PR Checklist
2+
Please check if your PR fulfills the following requirements:
3+
4+
- [ ] The commit message follows our guidelines: [CONTRIBUTING.md](https://github.com/blockcoders/nestjs-websocket/blob/master/CONTRIBUTING.md)
5+
- [ ] Tests for the changes have been added (for bug fixes / features)
6+
- [ ] Docs have been added / updated (for bug fixes / features)
7+
8+
## PR Type
9+
What kind of change does this PR introduce?
10+
11+
<!-- Please check the one that applies to this PR using "x". -->
12+
- [ ] Bugfix
13+
- [ ] Feature
14+
- [ ] Code style update (formatting, local variables)
15+
- [ ] Refactoring (no functional changes, no api changes)
16+
- [ ] Build related changes
17+
- [ ] CI related changes
18+
- [ ] Other... Please describe:
19+
20+
## What is the current behavior?
21+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
22+
23+
Issue Number: N/A
24+
25+
## What is the new behavior?
26+
<!-- Please describe how the issue was solved. -->
27+
28+
29+
## Does this PR introduce a breaking change?
30+
31+
- [ ] Yes
32+
- [ ] No
33+
34+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
35+
36+
## Other information
37+
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->

.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
106+
# compiled output
107+
/dist
108+
/node_modules
109+
110+
# OS
111+
.DS_Store
112+
113+
# Tests
114+
/coverage
115+
/.nyc_output
116+
117+
# IDEs and editors
118+
/.idea
119+
.project
120+
.classpath
121+
.c9/
122+
*.launch
123+
.settings/
124+
*.sublime-workspace
125+
126+
# IDE - VSCode
127+
.vscode/*
128+
!.vscode/settings.json
129+
!.vscode/tasks.json
130+
!.vscode/launch.json
131+
!.vscode/extensions.json

.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
__tests__/
2+
.github/
3+
coverage/
4+
*.tsbuildinfo
5+
*.js.map
6+
src/
7+
.eslintrc.js
8+
.gitignore
9+
.prettierrc
10+
.travis.yml
11+
nest-cli.json
12+
tsconfig.build.json
13+
tsconfig.json
14+
.circleci/

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock=true
2+
scripts-prepend-node-path=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14.17

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Changelog
2+
3+
## 0.1.0
4+
Published by **[jarcodallo](https://github.com/jarcodallo)** on **pending**

0 commit comments

Comments
 (0)