Skip to content

Commit

Permalink
feat: new package for export all nanotron packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Sep 10, 2024
1 parent 7d8ea97 commit 1c065d2
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nanotron/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Alwatr Nanotron Api Server

Nanotron: Your Lightweight, High-Performance Micro/Nano Service Framework.
71 changes: 71 additions & 0 deletions packages/nanotron/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "@alwatr/nanotron",
"version": "0.0.0",
"description": "Elegant powerful nodejs server for nanoservice use cases, written in tiny TypeScript module.",
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
"keywords": [
"server",
"nanoservice",
"api",
"typescript",
"esm",
"alwatr"
],
"type": "module",
"main": "./dist/main.cjs",
"module": "./dist/main.mjs",
"types": "./dist/main.d.ts",
"exports": {
".": {
"types": "./dist/main.d.ts",
"import": "./dist/main.mjs",
"require": "./dist/main.cjs"
}
},
"license": "MIT",
"files": [
"**/*.{js,mjs,cjs,map,d.ts,html,md}",
"!demo/**/*"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Alwatr/nanotron",
"directory": "packages/nanotron"
},
"homepage": "https://github.com/Alwatr/nanotron#readme",
"bugs": {
"url": "https://github.com/Alwatr/nanotron/issues"
},
"prettier": "@alwatr/prettier-config",
"scripts": {
"b": "yarn run build",
"t": "yarn run test",
"w": "yarn run watch",
"c": "yarn run clean",
"cb": "yarn run clean && yarn run build",
"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
"build": "yarn run build:ts & yarn run build:es",
"build:es": "nano-build --preset=module",
"build:ts": "tsc --build",
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest",
"watch": "yarn run watch:ts & yarn run watch:es",
"watch:es": "yarn run build:es --watch",
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/nanotron-api-server": "workspace:^"
},
"devDependencies": {
"@alwatr/nano-build": "^1.3.8",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.2.0",
"@alwatr/type-helper": "^1.2.5",
"@types/node": "^22.5.4",
"jest": "^29.7.0",
"typescript": "^5.6.2"
}
}
1 change: 1 addition & 0 deletions packages/nanotron/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@alwatr/nanotron-api-server';
11 changes: 11 additions & 0 deletions packages/nanotron/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "@alwatr/tsconfig-base/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"emitDeclarationOnly": true,
"composite": true,
},
"include": ["src/**/*.ts"],
"references": [{"path": "../api-server"}],
}

0 comments on commit 1c065d2

Please sign in to comment.