versions bump

This commit is contained in:
Danya H 2024-10-28 13:20:51 +00:00
parent d3d75b338d
commit de33fe4763
6 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@entityseven/create-rage-fw", "name": "@entityseven/create-rage-fw",
"version": "0.1.0", "version": "0.1.1",
"bin": { "bin": {
"rage-fw": "dist/index.js" "rage-fw": "dist/index.js"
}, },

View File

@ -2,7 +2,7 @@
To make you life easier while using RageFW we created a basic CLI. At the moment automation we have only works via [pnpm](https://pnpm.io/) To make you life easier while using RageFW we created a basic CLI. At the moment automation we have only works via [pnpm](https://pnpm.io/)
``pnpm create rage-fw@latest`` ``pnpm create @entityseven/rage-fw@latest``
## TL;DR ## TL;DR
- ``Initialize new project`` - create new template project - ``Initialize new project`` - create new template project

View File

@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"publish": "pnpm build && lerna publish --force-publish", "publish": "lerna publish --force-publish",
"build": "lerna run build", "build": "lerna run build",
"lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/", "lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/",

View File

@ -1,7 +1,2 @@
packages: packages:
- "server"
- "client"
- "cef"
- "rpc" - "rpc"
- "cli"
- "shared-types"

View File

@ -1,5 +1,5 @@
{ {
"name": "rage-fw-rpc", "name": "@entityseven/rage-fw-rpc",
"description": "Rage FW RPC", "description": "Rage FW RPC",
"version": "0.2.5", "version": "0.2.5",
"scripts": { "scripts": {

View File

@ -14,12 +14,17 @@ yarn add rage-fw-rpc
Import installed package and initialize rpc: Import installed package and initialize rpc:
```ts ```ts
// lib/rpc.js // lib/rpc.js
import { Rpc } from 'rage-fw-rpc' import { Rpc } from 'rage-fw-rpc'
export const rpc = new Rpc(/* options */) export const rpc = new Rpc(/* options */)
``` ```
# Motivation
The idea was to create an extensible package, with various features to simplify the development process and provide as much comfort as possible. It should also be using similar architecture as the framework it was specially built for
Inspired by usage of [rage-rpc](https://github.com/micaww/rage-rpc)
# Features # Features
- Type-safe events via [TS generics](https://www.typescriptlang.org/docs/handbook/2/generics.html), avoiding type wrappers - Type-safe events via [TS generics](https://www.typescriptlang.org/docs/handbook/2/generics.html), avoiding type wrappers
- Built-in logging options for each environment - Built-in logging options for each environment
@ -28,7 +33,7 @@ Import installed package and initialize rpc:
- Actual human-readable errors - Actual human-readable errors
# Docs # Docs
*Extended version with details coming soon* ## [Extended version available here](https://git.entityseven.com/entityseven/rage-framework/wiki/RPC%400.2.5)
## register ## register
Registers a callback function for a specified event Registers a callback function for a specified event