-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nanolib): add
nanolib
package to export the common packages
- Loading branch information
1 parent
cc1ea8b
commit 1610b1e
Showing
6 changed files
with
820 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
# Nanolib |
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,95 @@ | ||
{ | ||
"name": "@alwatr/nanolib", | ||
"version": "0.0.0", | ||
"description": "Necessary library for all ECMAScript (JavaScript/TypeScript) projects.", | ||
"author": "S. Ali Mihandoost <[email protected]>", | ||
"keywords": [ | ||
"fs", | ||
"file", | ||
"filesystem", | ||
"readFile", | ||
"writeFile", | ||
"readJson", | ||
"writeJson", | ||
"JSON", | ||
"async", | ||
"queue", | ||
"cross-platform", | ||
"ECMAScript", | ||
"typescript", | ||
"javascript", | ||
"node", | ||
"nodejs", | ||
"esm", | ||
"module", | ||
"utility", | ||
"util", | ||
"utils", | ||
"nanolib", | ||
"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": "AGPL-3.0-only", | ||
"files": [ | ||
"**/*.{js,mjs,cjs,map,d.ts,html,md}", | ||
"!demo/**/*" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Alwatr/nanolib", | ||
"directory": "packages/nanolib" | ||
}, | ||
"homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/nanolib#readme", | ||
"bugs": { | ||
"url": "https://github.com/Alwatr/nanolib/issues" | ||
}, | ||
"prettier": "@alwatr/prettier-config", | ||
"scripts": { | ||
"b": "yarn run build", | ||
"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", | ||
"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/async-queue": "workspace:^", | ||
"@alwatr/dedupe": "workspace:^", | ||
"@alwatr/deep-clone": "workspace:^", | ||
"@alwatr/delay": "workspace:^", | ||
"@alwatr/fetch": "workspace:^", | ||
"@alwatr/flat-string": "workspace:^", | ||
"@alwatr/flatomise": "workspace:^", | ||
"@alwatr/is-number": "workspace:^", | ||
"@alwatr/local-storage": "workspace:^", | ||
"@alwatr/logger": "workspace:^", | ||
"@alwatr/package-tracer": "workspace:^", | ||
"@alwatr/parse-duration": "workspace:^", | ||
"@alwatr/platform-info": "workspace:^", | ||
"@alwatr/render-state": "workspace:^" | ||
}, | ||
"devDependencies": { | ||
"@alwatr/nano-build": "workspace:^", | ||
"@alwatr/tsconfig-base": "workspace:^", | ||
"typescript": "^5.6.2" | ||
} | ||
} |
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,17 @@ | ||
export * from '@alwatr/async-queue'; | ||
export * from '@alwatr/dedupe'; | ||
export * from '@alwatr/deep-clone'; | ||
export * from '@alwatr/delay'; | ||
// export * from '@alwatr/exit-hook'; | ||
export * from '@alwatr/fetch'; | ||
export * from '@alwatr/flat-string'; | ||
export * from '@alwatr/flatomise'; | ||
export * from '@alwatr/is-number'; | ||
export * from '@alwatr/local-storage'; | ||
export * from '@alwatr/logger'; | ||
// export * from '@alwatr/node-fs'; | ||
export * from '@alwatr/package-tracer'; | ||
export * from '@alwatr/parse-duration'; | ||
export * from '@alwatr/platform-info'; | ||
export * from '@alwatr/render-state'; | ||
// export type * from '@alwatr/type-helper/types'; |
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,12 @@ | ||
{ | ||
"extends": "@alwatr/tsconfig-base/tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"emitDeclarationOnly": true, | ||
"composite": true, | ||
"types": ["@alwatr/nano-build"], | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"references": [], | ||
} |
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