This file contains hidden or 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
After creating your app just going to terminal | |
Clicking next to the plus button and opening javascript debug terminal | |
Then simply calling your app's running script, for me npm run start:dev |
This file contains hidden or 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
{ | |
"name": "@barisbll/dummy-lib", | |
"version": "1.0.2", | |
"description": "A dummy library to make a library deployment example", | |
"main": "index.js", | |
"module": "dist/index.mjs", | |
"types": "dist/index.d.ts", | |
"files": [ | |
"/dist" | |
], |
This file contains hidden or 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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: {} #reset | |
jobs: | |
release: | |
# IMPORTANT: prevent this action from running on forks |
This file contains hidden or 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
name: 'CI' | |
on: | |
pull_request: | |
branches: | |
- '**' | |
- '!main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or 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
{ | |
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | |
"changelog": "@changesets/cli/changelog", | |
"commit": false, | |
"fixed": [], | |
"linked": [], | |
"access": "public", | |
"baseBranch": "main", | |
"updateInternalDependencies": "patch", | |
"ignore": [] |
This file contains hidden or 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
{ | |
"name": "@barisbll/dummy-lib", // We have to name every library uniquely | |
"version": "1.0.0", | |
"description": "A dummy library to make a library deployment example", | |
"main": "index.js", | |
"module": "dist/index.mjs", | |
"types": "dist/index.d.ts", | |
"files": [ | |
"/dist" | |
], |
This file contains hidden or 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
/** | |
* @description | |
* @param {number} n | |
* @returns {boolean} | |
* @example | |
* isOdd(1) // true | |
* isOdd(2) // false | |
* */ | |
export const isOdd = (n: number) => n % 2 === 1; |
This file contains hidden or 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
import * as amqp from 'amqplib'; | |
import { Observable, Observer } from 'rxjs'; | |
interface RpcRequest { | |
correlationId: string; | |
resolve: (response: any) => void; | |
reject: (error: Error) => void; | |
} | |
class RabbitMQRpcClient { |
This file contains hidden or 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
{ | |
// First build your application exp: npm run build | |
// Then run the index.js on debug mode exp: node --inspect ./dist/index.js | |
// For a running server on kubernetes after the ssh connection you can send a signal to process to open the debug mode | |
// exp: https://medium.com/hackernoon/debugging-node-without-restarting-processes-bd5d5c98f200 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", |
This file contains hidden or 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
#!/usr/bin/env sh | |
. "$(dirname -- "$0")/_/husky.sh" | |
npm test && npm run lint |
NewerOlder