Skip to content

Commit

Permalink
rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
darekf77 committed Aug 27, 2024
1 parent f33731d commit 27db88a
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 31 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<p style="text-align: center;"><img src="./__images/logo-header-bold.png" ></p>
<p style="text-align: center;"><img src="./__images/logo-header-bold-taon5.png" ></p>

TAON **T**ypescript **A**ngular **O**rm **N**ode )


( BETA VERSION - MAJOR REFACTOR IN PROGRESS )

**Firedev** 🔥🔥🔥 is a solution (**global cli tool** & **framework**) for
**Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework**) for

\+
[TypesSript](https://www.typescriptlang.org/)
Expand Down Expand Up @@ -34,7 +37,7 @@
<br>
<br>

### Initial requirements of firedev
### Initial requirements of taon
1. Installed git


Expand All @@ -49,8 +52,8 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
<br>
<br>

### Projects that are part of firedev:
- firedev https://github.com/darekf77/firedev
### Projects that are part of taon.dev:
- taon https://github.com/darekf77/taon
+ framework library
- tnp https://github.com/darekf77/tnp
+ main cli / code structuring tool
Expand Down
Binary file added __images/logo-header-bold-taon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"author": "Dariusz Filipiak",
"homepage": "https://github.com/darekf77/firedev#readme"
},
"name": "firedev",
"name": "taon",
"version": "18.0.9",
"description": "Isomorphic solution for backend and frontend",
"scripts": {},
Expand Down Expand Up @@ -375,4 +375,4 @@
"firedev-debug": "bin/firedev-debug",
"firedev-debug-brk": "bin/firedev-debug-brk"
}
}
}
2 changes: 1 addition & 1 deletion src/assets/shared/shared_folder_info.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.

Assets from this folder are being shipped with this npm package (firedev@18.0.9)
Assets from this folder are being shipped with this npm package (taon@18.0.9)
created from this project.

THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/base-classes/base-controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FiredevController } from '../decorators/classes/controller-decorator';
import { TaonController } from '../decorators/classes/controller-decorator';
import { BaseInjector } from './base-injector';

@FiredevController({ className: 'BaseController' })
@TaonController({ className: 'BaseController' })
export class BaseController extends BaseInjector {
/**
* init example data for db
Expand Down
4 changes: 2 additions & 2 deletions src/lib/base-classes/base-crud-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { MySqlQuerySource } from 'firedev-type-sql/src';
import { Models } from '../models';
import { Helpers, _ } from 'tnp-core/src';
import {
FiredevController,
TaonController,
FiredevControllerOptions,
} from '../decorators/classes/controller-decorator';
import { ClassHelpers } from '../helpers/class-helpers';
Expand All @@ -27,7 +27,7 @@ import { FiredevEntityOptions } from '../decorators/classes/entity-decorator';
/**
* Please override property entityClassFn with entity class.
*/
@FiredevController({ className: 'BaseCrudController' })
@TaonController({ className: 'BaseCrudController' })
export abstract class BaseCrudController<Entity> extends BaseController {
//#region fields
protected db?: BaseRepository<Entity>;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/base-classes/base-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import { Helpers } from 'tnp-core/src';
import { _ } from 'tnp-core/src';
import { ClassHelpers } from '../helpers/class-helpers';
import { MySqlQuerySource } from 'firedev-type-sql/src';
import { FiredevRepository } from '../decorators/classes/repository-decorator';
import { TaonRepository } from '../decorators/classes/repository-decorator';
import { BaseInjector } from './base-injector';
//#endregion

const INDEX_KEYS_NO_FOR_UPDATE = ['id'];

@FiredevRepository({ className: 'BaseRepository' })
@TaonRepository({ className: 'BaseRepository' })
export abstract class BaseRepository<
Entity extends { id?: any },
> extends BaseInjector {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/base-classes/base-subscriber-for-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
UpdateEvent,
} from 'firedev-typeorm/src';
import { BaseInjector } from './base-injector';
import { FiredevSubscriber } from '../decorators/classes/subscriber-decorator';
import { TaonSubscriber } from '../decorators/classes/subscriber-decorator';

@FiredevSubscriber({
@TaonSubscriber({
className: 'BaseSubscriberForEntity',
})
export abstract class BaseSubscriberForEntity<Entity = any>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/base-classes/base-subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
UpdateEvent,
} from 'firedev-typeorm/src';
import { BaseInjector } from './base-injector';
import { FiredevSubscriber } from '../decorators/classes/subscriber-decorator';
import { TaonSubscriber } from '../decorators/classes/subscriber-decorator';

@FiredevSubscriber({
@TaonSubscriber({
className: 'BaseSubscriber',
})
export abstract class BaseSubscriber<Entity = any> extends BaseInjector {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/decorators/classes/controller-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ClassHelpers } from '../../helpers/class-helpers';
import { Symbols } from '../../symbols';
import { Models } from '../../models';

export function FiredevController(options?: FiredevControllerOptions) {
export function TaonController(options?: FiredevControllerOptions) {
return function (constructor: Function) {
ClassHelpers.setName(constructor, options?.className);
Reflect.defineMetadata(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/decorators/classes/entity-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Models } from '../../models';
import { Entity as TypeormEntity, Tree } from 'firedev-typeorm/src';
//#endregion

export function FiredevEntity<T = any>(options?: FiredevEntityOptions<T>) {
export function TaonEntity<T = any>(options?: FiredevEntityOptions<T>) {
return function (constructor: Function) {
options = options || ({} as any);
options.uniqueKeyProp = options.uniqueKeyProp || ('id' as any);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/decorators/classes/provider-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ClassHelpers } from '../../helpers/class-helpers';
import { Symbols } from '../../symbols';
import { Models } from '../../models';

export function FiredevProvider<T = any>(options?: FiredevProviderOptions<T>) {
export function TaonProvider<T = any>(options?: FiredevProviderOptions<T>) {
return function (constructor: Function) {
Reflect.defineMetadata(
Symbols.metadata.options.provider,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/decorators/classes/repository-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'firedev-typeorm/src';
import { _ } from 'tnp-core/src';

export function FiredevRepository(options: FiredevRepositoryOptions) {
export function TaonRepository(options: FiredevRepositoryOptions) {
return function (constructor: Function) {
Reflect.defineMetadata(
Symbols.metadata.options.repository,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/decorators/classes/subscriber-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class FiredevSubscriberOptions<
allowedEvents?: (keyof T)[];
}

export function FiredevSubscriber(options: FiredevSubscriberOptions) {
export function TaonSubscriber(options: FiredevSubscriberOptions) {
return function <T extends { new (...args: any[]): {} }>(constructor: T) {
Reflect.defineMetadata(
Symbols.metadata.options.repository,
Expand Down
12 changes: 6 additions & 6 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export * from './constants';
export { ClassHelpers } from './helpers/class-helpers';
// TODO export all things

export namespace Firedev {
export namespace Taon {
export import Response = models.Models.Http.Response;
export import Http = http.Http;
export import Base = base.Base;
Expand All @@ -41,11 +41,11 @@ export namespace Firedev {
export const getResponseValue = getResponse.getResponseValue;

//#region class decorators
export import Controller = controllerDecorator.FiredevController;
export import Entity = entityDecorator.FiredevEntity;
export import Provider = providerDecorator.FiredevProvider;
export import Repository = repositoryDecorator.FiredevRepository;
export import Subscriber = subscriberDecorator.FiredevSubscriber;
export import Controller = controllerDecorator.TaonController;
export import Entity = entityDecorator.TaonEntity;
export import Provider = providerDecorator.TaonProvider;
export import Repository = repositoryDecorator.TaonRepository;
export import Subscriber = subscriberDecorator.TaonSubscriber;
//#endregion
//#region aliases to helpers
/**
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"strictNullChecks": false,
"rootDir": "./src",
"paths": {
"firedev": [
"taon": [
"./src/lib"
],
"firedev/*": [
"taon/*": [
"./src/lib/*"
]
}
Expand Down

0 comments on commit 27db88a

Please sign in to comment.