-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a95da63
Showing
15 changed files
with
3,146 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
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,28 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"babel-plugin-transform-typescript-metadata", | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
["@babel/plugin-transform-class-properties", { "loose": true }], | ||
[ | ||
"module-resolver", | ||
{ | ||
"alias": { | ||
"@demmorou/logger": "../logger/dist", | ||
"@demmorou/errors": "../errors/dist" | ||
} | ||
} | ||
] | ||
], | ||
"ignore": ["**/*.spec.ts", "*.md", "*.json", "node_modules"] | ||
} |
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,38 @@ | ||
{ | ||
"name": "@demmorou/core", | ||
"version": "1.0.0", | ||
"author": "Deusimar (@demmorou)", | ||
"description": "Personal libs for geral use", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.t", | ||
"license": "MIT", | ||
"scripts": { | ||
"logger": "pnpm --filter ./packages/logger", | ||
"errors": "pnpm --filter ./packages/errors", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"monorepo", | ||
"pnpm", | ||
"logger" | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.24.1", | ||
"@babel/core": "^7.24.4", | ||
"@babel/node": "^7.23.9", | ||
"@babel/plugin-transform-class-properties": "^7.24.1", | ||
"@babel/plugin-proposal-decorators": "^7.24.1", | ||
"@babel/plugin-transform-typescript": "^7.24.4", | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"babel-plugin-module-resolver": "^5.0.0", | ||
"babel-plugin-transform-typescript-metadata": "^0.3.2", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"name": "@demmorou/errors", | ||
"version": "1.0.0", | ||
"author": "Deusimar (@demmorou)", | ||
"description": "Errors", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.t", | ||
"license": "MIT", | ||
"scripts": { | ||
"build:types": "tsc --emitDeclarationOnly --outDir dist", | ||
"build": "rimraf dist && npm run build:types && npm run build:js", | ||
"build:js": "babel src --root-mode upward --out-dir dist --extensions .ts --no-comments", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"rimraf": "^5.0.5" | ||
} | ||
} |
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,3 @@ | ||
import { logThis } from '@demmorou/logger'; | ||
|
||
logThis('a') |
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,20 @@ | ||
{ | ||
"extends": "../../tsconfig.build.json", | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "./dist", | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@demmorou/logger": ["../logger/src"], | ||
"@nestjs/logger/*": ["../logger/src/*"] | ||
} | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../logger/tsconfig.build.json" | ||
} | ||
], | ||
"include": ["./src/**/*.ts"] | ||
} |
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,6 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
|
||
"compilerOptions": { | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"name": "@demmorou/logger", | ||
"version": "1.0.0", | ||
"author": "Deusimar (@demmorou)", | ||
"description": "Personal libs for geral use", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.t", | ||
"license": "MIT", | ||
"scripts": { | ||
"build:types": "tsc --emitDeclarationOnly --outDir dist", | ||
"build": "rimraf dist && npm run build:types && npm run build:js", | ||
"build:js": "babel src --root-mode upward --out-dir dist --extensions .ts --no-comments", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"rimraf": "^5.0.5" | ||
} | ||
} |
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,3 @@ | ||
export function logThis(a: string) { | ||
console.log("Logging", { a }); | ||
} |
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,14 @@ | ||
{ | ||
"extends": "../../tsconfig.build.json", | ||
|
||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "./dist", | ||
"rootDir": "./src", | ||
"baseUrl": "./src" | ||
}, | ||
|
||
"include": ["./src/**/*.ts"], | ||
} |
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,6 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
|
||
"compilerOptions": { | ||
} | ||
} |
Oops, something went wrong.