Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
move api, collections, sync and utils to ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmeier committed Mar 15, 2024
1 parent be7ae74 commit 17138af
Show file tree
Hide file tree
Showing 24 changed files with 560 additions and 606 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/docs
/docs
/dist
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/package-lock.json
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
## Fire Js
This contains various helpers and types.

## Unstable
the graphql module is unstable.

## Usage
### Usage
```json
{
"dependencies": {
"fire": "npm:fire-lib-js@^0.2"
}
}
```
```

### Unstable
the graphql module is unstable.

### Time
consider using luxon instead of this time implementation.

### Deprecated
the entire **data** folder is deprecated either use zod or something like that or just use `Object.assign` and typescript.
25 changes: 23 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@
"scripts": {
"test": "vitest",
"check": "prettier -c .",
"lint": "eslint ./src"
"lint": "eslint ./src",
"build": "tsc",
"watch": "tsc -w"
},
"repository": {
"type": "git",
"url": "https://github.com/fire-lib/fire-js.git"
},
"license": "MIT or Apache-2.0",
"exports": {
"./api/Api": "./src/api/Api.js",
"./api/ApiError": "./src/api/ApiError.js",
"./api/Stream": "./src/api/Stream.js",
"./collections/SlotArray": "./src/collections/SlotArray.js",
"./api/Api": "./dist/api/Api.js",
"./api/ApiError": "./dist/api/ApiError.js",
"./api/Stream": "./dist/api/Stream.js",
"./collections/SlotArray": "./dist/collections/SlotArray.js",
"./data/Data": "./src/data/Data.js",
"./data/MapType": "./src/data/MapType.js",
"./data/ParseType": "./src/data/ParseType.js",
Expand All @@ -26,20 +28,22 @@
"./dom/utils": "./src/dom/utils.js",
"./graphQl/GraphQl": "./src/graphQl/GraphQl.js",
"./graphQl/GraphQlError": "./src/graphQl/GraphQlError.js",
"./sync/Barrier": "./src/sync/Barrier.js",
"./sync/Listeners": "./src/sync/Listeners.js",
"./sync/NonConcurrent": "./src/sync/NonConcurrent.js",
"./sync/Barrier": "./dist/sync/Barrier.js",
"./sync/Listeners": "./dist/sync/Listeners.js",
"./sync/NonConcurrent": "./dist/sync/NonConcurrent.js",
"./time/Date": "./src/time/Date.js",
"./time/DateTime": "./src/time/DateTime.js",
"./time/DateTimeRange": "./src/time/DateTimeRange.js",
"./time/Duration": "./src/time/Duration.js",
"./time/localization": "./src/time/localization.js",
"./utils": "./src/utils/utils.js",
"./utils/colors": "./src/utils/colors.js"
"./utils": "./dist/utils/utils.js",
"./utils/colors": "./dist/utils/colors.js"
},
"devDependencies": {
"eslint": "^8.45.0",
"vitest": "^1.1.3",
"prettier": "^3.2.4"
"prettier": "^3.2.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
}
}
78 changes: 0 additions & 78 deletions src/api/Api.d.ts

This file was deleted.

Loading

0 comments on commit 17138af

Please sign in to comment.