Skip to content

Commit bd5a47f

Browse files
committed
initial
0 parents  commit bd5a47f

20 files changed

+6995
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = 0

.eslintrc.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root: true
2+
parserOptions:
3+
project: tsconfig.json
4+
sourceType: module
5+
env:
6+
node: true
7+
jest: true
8+
extends:
9+
- '@monkee/eslint-config/typescript'

.github/workflows/npm-publish.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
validate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
- run: npm i
19+
- run: npm run lint
20+
- run: npm run test
21+
22+
publish-npm:
23+
needs: validate
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org/
31+
- run: npm i
32+
- run: npm publish --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Idea
2+
.idea
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
12+
# Diagnostic reports (https://nodejs.org/api/report.html)
13+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
*.lcov
27+
28+
# Dependency directories
29+
node_modules/
30+
31+
# TypeScript cache
32+
*.tsbuildinfo
33+
34+
# Optional npm cache directory
35+
.npm
36+
37+
# Optional eslint cache
38+
.eslintcache
39+
40+
# Microbundle cache
41+
.rpt2_cache/
42+
.rts2_cache_cjs/
43+
.rts2_cache_es/
44+
.rts2_cache_umd/
45+
46+
# Optional REPL history
47+
.node_repl_history
48+
49+
# Output of 'npm pack'
50+
*.tgz
51+
52+
# Yarn Integrity file
53+
.yarn-integrity
54+
55+
# dotenv environment variables file
56+
.env.local
57+
58+
# parcel-bundler cache (https://parceljs.org/)
59+
.cache
60+
.parcel-cache
61+
62+
# Next.js build output
63+
.next
64+
out
65+
66+
# Nuxt.js build / generate output
67+
.nuxt
68+
dist
69+
70+
# Gatsby files
71+
.cache/
72+
73+
# vuepress build output
74+
.vuepress/dist
75+
76+
# Serverless directories
77+
.serverless/
78+
79+
# DynamoDB Local files
80+
.dynamodb/
81+
82+
# Stores VSCode versions used for testing VSCode extensions
83+
.vscode-test
84+
85+
# VSCode
86+
.vscode
87+
88+
# yarn v2
89+
.yarn/cache
90+
.yarn/unplugged
91+
.yarn/build-state.yml
92+
.yarn/install-state.gz
93+
.pnp.*
94+
95+
# Mac os
96+
.DS_Store
97+
98+
# Compiled code
99+
lib/
100+
dist/
101+
102+
# Env files
103+
.env.*.local

.prettierrc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
singleQuote: true
2+
semi: true
3+
trailingComma: all
4+
bracketSpacing: true
5+
arrowParens: always
6+
endOfLine: lf

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# @monkee/nestjs-http-client package
2+
3+
## Package update flow
4+
5+
Package publishing only available via CI jobs.
6+
7+
You must use '-beta' postfix for testing purposes. Otherwise CI job being failed. Bump version via npm
8+
9+
```bash
10+
npm version prerelease --preid beta
11+
```
12+
13+
Before merge changes into master branch you should remove 'beta' postfix
14+
15+
```bash
16+
npm version major | minor | patch
17+
```
18+
19+
Learn more <https://docs.npmjs.com/cli/v8/commands/npm-version>
20+

0 commit comments

Comments
 (0)