Skip to content

Commit

Permalink
refa: refactor to monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 21, 2023
1 parent 5f4681d commit f48da67
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 48 deletions.
56 changes: 23 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,37 @@
{
"name": "@cordisjs/logger",
"description": "Logger plugin for cordis",
"version": "0.1.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib",
"src"
"name": "@root/std",
"private": true,
"version": "1.0.0",
"workspaces": [
"external/*",
"packages/*"
],
"author": "Shigma <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/cordisjs/logger.git",
"directory": "packages/core"
},
"bugs": {
"url": "https://github.com/cordisjs/logger/issues"
},
"homepage": "https://github.com/cordisjs/logger",
"keywords": [
"cordis",
"logger",
"service",
"plugin"
],
"scripts": {
"build": "tsc -b",
"lint": "eslint --cache"
"bump": "yarn yakumo version",
"dep": "yarn yakumo upgrade",
"pub": "yarn yakumo publish",
"lint": "eslint --cache",
"test": "yarn yakumo test -r esbuild-register",
"test:text": "shx rm -rf coverage && c8 -r text yarn test",
"test:json": "shx rm -rf coverage && c8 -r json yarn test",
"test:html": "shx rm -rf coverage && c8 -r html yarn test"
},
"devDependencies": {
"@cordisjs/eslint-config": "^1.0.4",
"@types/chai": "^4.3.11",
"@types/node": "^20.10.2",
"cordis": "^3.4.0",
"c8": "^7.14.0",
"chai": "^4.3.10",
"esbuild": "^0.18.20",
"esbuild-register": "^3.5.0",
"eslint": "^8.55.0",
"typescript": "^5.3.2"
},
"peerDependencies": {
"cordis": "^3.4.0"
},
"dependencies": {
"reggol": "^1.6.3"
"shx": "^0.3.4",
"typescript": "^5.3.2",
"yakumo": "^1.0.0-alpha.7",
"yakumo-esbuild": "^1.0.0-alpha.2",
"yakumo-publish-sync": "^1.0.0-alpha.1",
"yakumo-tsc": "^1.0.0-alpha.2"
}
}
38 changes: 38 additions & 0 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "@cordisjs/logger",
"description": "Logger plugin for cordis",
"version": "0.1.2",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"files": [
"lib",
"src"
],
"author": "Shigma <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/cordisjs/std.git",
"directory": "packages/logger"
},
"bugs": {
"url": "https://github.com/cordisjs/std/issues"
},
"homepage": "https://github.com/cordisjs/std",
"keywords": [
"cordis",
"logger",
"service",
"plugin"
],
"devDependencies": {
"cordis": "^3.4.0"
},
"peerDependencies": {
"cordis": "^3.4.0"
},
"dependencies": {
"reggol": "^1.6.3"
}
}
1 change: 1 addition & 0 deletions packages/logger/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @cordisjs/logger
File renamed without changes.
12 changes: 12 additions & 0 deletions packages/logger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"strict": true,
"noImplicitAny": false,
},
"include": [
"src",
],
}
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# @cordisjs/logger
# @cordisjs/std

Standard library for Cordis.
13 changes: 13 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2022",
"module": "commonjs",
"declaration": true,
"composite": true,
"incremental": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strictBindCallApply": true,
},
}
20 changes: 6 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
{
"extends": "./tsconfig.base",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib",
"rootDir": "src",
"target": "es2022",
"module": "commonjs",
"strict": true,
"declaration": true,
"composite": true,
"incremental": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"paths": {
"@cordisjs/loader": ["packages/core/src"],
"@cordisjs/*": ["packages/*/src"],
},
},
"include": [
"src",
],
"files": [],
}

0 comments on commit f48da67

Please sign in to comment.