taon 19.0.12 → 19.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +176 -175
  2. package/bin/start.js +279 -279
  3. package/bin/taon +6 -6
  4. package/bin/taon-debug +5 -5
  5. package/bin/taon-debug-brk +5 -5
  6. package/browser/README.md +24 -24
  7. package/browser/fesm2022/taon.mjs +12 -12
  8. package/browser/fesm2022/taon.mjs.map +1 -1
  9. package/browser/package.json +1 -1
  10. package/cli.js.map +1 -1
  11. package/client/README.md +24 -24
  12. package/client/fesm2022/taon.mjs +12 -12
  13. package/client/fesm2022/taon.mjs.map +1 -1
  14. package/client/package.json +1 -1
  15. package/index.js.map +1 -1
  16. package/lib/base-classes/base-abstract-entity.js.map +1 -1
  17. package/lib/base-classes/base-angular-service.js.map +1 -1
  18. package/lib/base-classes/base-class.js.map +1 -1
  19. package/lib/base-classes/base-context.js.map +1 -1
  20. package/lib/base-classes/base-controller.js.map +1 -1
  21. package/lib/base-classes/base-crud-controller.js.map +1 -1
  22. package/lib/base-classes/base-custom-repository.js.map +1 -1
  23. package/lib/base-classes/base-entity.js.map +1 -1
  24. package/lib/base-classes/base-injector.js.map +1 -1
  25. package/lib/base-classes/base-migration.js.map +1 -1
  26. package/lib/base-classes/base-provider.js.map +1 -1
  27. package/lib/base-classes/base-repository.js.map +1 -1
  28. package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
  29. package/lib/base-classes/base.js.map +1 -1
  30. package/lib/build-info._auto-generated_.d.ts +1 -1
  31. package/lib/build-info._auto-generated_.js +1 -1
  32. package/lib/build-info._auto-generated_.js.map +1 -1
  33. package/lib/constants.js.map +1 -1
  34. package/lib/context-db-migrations.js.map +1 -1
  35. package/lib/create-context.js.map +1 -1
  36. package/lib/decorators/classes/controller-decorator.js.map +1 -1
  37. package/lib/decorators/classes/entity-decorator.js.map +1 -1
  38. package/lib/decorators/classes/migration-decorator.js.map +1 -1
  39. package/lib/decorators/classes/provider-decorator.js.map +1 -1
  40. package/lib/decorators/classes/repository-decorator.js.map +1 -1
  41. package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
  42. package/lib/decorators/http/http-decorators.js.map +1 -1
  43. package/lib/decorators/http/http-methods-decorators.js.map +1 -1
  44. package/lib/decorators/http/http-params-decorators.js.map +1 -1
  45. package/lib/dependency-injection/di-container.js.map +1 -1
  46. package/lib/endpoint-context.js.map +1 -1
  47. package/lib/entity-process.js.map +1 -1
  48. package/lib/env.js.map +1 -1
  49. package/lib/formly/formly-group-wrapper-component.js.map +1 -1
  50. package/lib/formly/formly-repeat-component.js.map +1 -1
  51. package/lib/formly/formly.models.js.map +1 -1
  52. package/lib/formly/fromly.js.map +1 -1
  53. package/lib/formly/type-from-entity.js.map +1 -1
  54. package/lib/get-response-value.js.map +1 -1
  55. package/lib/helpers/class-helpers.js.map +1 -1
  56. package/lib/helpers/taon-helpers.js.map +1 -1
  57. package/lib/index._auto-generated_.js.map +1 -1
  58. package/lib/index.js.map +1 -1
  59. package/lib/inject.js.map +1 -1
  60. package/lib/models.js.map +1 -1
  61. package/lib/orm.js.map +1 -1
  62. package/lib/realtime/realtime-client.js.map +1 -1
  63. package/lib/realtime/realtime-core.js.map +1 -1
  64. package/lib/realtime/realtime-server.js.map +1 -1
  65. package/lib/realtime/realtime-strategy/index.js.map +1 -1
  66. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
  67. package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
  68. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
  69. package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
  70. package/lib/realtime/realtime-subs-manager.js.map +1 -1
  71. package/lib/realtime/realtime.models.js.map +1 -1
  72. package/lib/storage.js.map +1 -1
  73. package/lib/symbols.js.map +1 -1
  74. package/lib/ui/directives/index.js +2 -2
  75. package/lib/ui/directives/index.js.map +1 -1
  76. package/lib/ui/directives/view-mode.js.map +1 -1
  77. package/lib/ui/index.js +2 -2
  78. package/lib/ui/index.js.map +1 -1
  79. package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
  80. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -1
  81. package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
  82. package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -1
  83. package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
  84. package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -1
  85. package/lib/ui/taon-notifications/index.js.map +1 -1
  86. package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
  87. package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -1
  88. package/lib/ui/taon-progress-bar/index.js +2 -2
  89. package/lib/ui/taon-progress-bar/index.js.map +1 -1
  90. package/lib/ui/taon-session-passcode/index.js +2 -2
  91. package/lib/ui/taon-session-passcode/index.js.map +1 -1
  92. package/lib/ui/taon-table/index.js +2 -2
  93. package/lib/ui/taon-table/index.js.map +1 -1
  94. package/lib/ui/taon.models.js.map +1 -1
  95. package/lib/validators.js.map +1 -1
  96. package/migrations/index.js.map +1 -1
  97. package/migrations/migrations_index._auto-generated_.js.map +1 -1
  98. package/old-app .js.map +1 -1
  99. package/package.json +1 -1
  100. package/playground.js.map +1 -1
  101. package/tmp-environment.json +6 -4
  102. package/websql/README.md +24 -24
  103. package/websql/fesm2022/taon.mjs +12 -12
  104. package/websql/fesm2022/taon.mjs.map +1 -1
  105. package/websql/package.json +1 -1
  106. package/lib/base-classes/base-repository copy.d.ts +0 -255
  107. package/lib/base-classes/base-repository copy.js +0 -653
  108. package/lib/base-classes/base-repository copy.js.map +0 -1
package/README.md CHANGED
@@ -1,175 +1,176 @@
1
- <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
-
3
- <!-- cspell: disable-next-line -->
4
- TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
-
6
-
7
- ( BETA VERSION - MAJOR REFACTOR IN PROGRESS )
8
-
9
- **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
10
-
11
- \+
12
- [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
13
-
14
- \+
15
- [Angular](https://angular.io/) libraries and PWA-s
16
-
17
- \+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
18
- - [sql.js](https://sql.js.org) - NodeJs Server Mode <br>
19
- - [sql.js](https://sql.js.org) - WEBSQL Server Mode (backend in browser) <br>
20
- - [mysql](https://www.mysql.com/) - Mysql Server Mode (inside docker) <br>
21
-
22
- \+
23
- [NodeJS](https://nodejs.org/en/) backends
24
-
25
- \+
26
- [Electron](https://www.electronjs.org/) desktop apps
27
-
28
- \+
29
- [Ionic](https://www.electronjs.org/) mobile apps
30
-
31
- \+
32
- [Visual Studio Code](https://www.electronjs.org/) plugins
33
-
34
- \+ Documentation:<br>
35
- - [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
36
- - [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation <br>
37
- - [Compodoc](https://compodoc.app/) docs from comments <br>
38
-
39
- backend/frontend **[*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript)** apps/libs.
40
-
41
- **[READ DOCUMENTATION](https://taon.dev/#/docs)**
42
-
43
- ### Initial requirements of taon
44
- 1. Git (gitbash [https://gitforwindows.org](https://gitforwindows.org) on windows)
45
-
46
- 2. Increased watchers limit (only on linux):
47
- ```bash
48
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
49
- ```
50
- 3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
51
- and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
52
-
53
- Windwos/Linux
54
- ```bash
55
- pip3 install mkdocs
56
- pip3 install mkdocs-material --user
57
- ```
58
- MacOs
59
- ```bash
60
- brew install mkdocs
61
- brew install mkdocs-material
62
- ```
63
-
64
- ## Supported OS-es:
65
- - Win10, Win11 (gitbash)
66
- - MacOS
67
- - Linux
68
-
69
-
70
- ## Required version of NodeJS
71
- - Windows 10/11 (gitbash): >= v18
72
- - MacOS: >= v18
73
- - Linux: >= v18
74
-
75
-
76
- ## How to install taon
77
- ```
78
- npm i -g taon
79
- ```
80
-
81
-
82
- ## How to uninstall taon from local machine
83
- Taon stores a big global container (in ~/.taon) for npm packages <br>
84
- that are being shared across all taon projects.
85
-
86
- ```bash
87
- npm uninstall -g taon
88
- rm -rf ~/.taon # taon local packages repository
89
- ```
90
-
91
-
92
- ## Projects that are part of taon.dev:
93
- - taon https://github.com/darekf77/taon
94
- + framework library
95
- - tnp https://github.com/darekf77/tnp
96
- + main cli / code structuring tool
97
- - taon-core https://github.com/darekf77/tnp-core
98
- + essential/core helpers for all projects
99
- - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
100
- + helpers for OOP class names based
101
- - taon-config https://github.com/darekf77/tnp-config
102
- + config/models for general purpose
103
- - taon-cli https://github.com/darekf77/tnp-cli
104
- + helpers/abstraction for global cli tools NodeJS based
105
- - taon-helpers https://github.com/darekf77/tnp-helpers
106
- + extended core helpers
107
- - taon-json https://github.com/darekf77/json10
108
- + handle JSON in better way
109
- - taon-logger https://github.com/darekf77/ng2-logger
110
- + logging in isomorphic apps
111
- - taon-typeorm https://github.com/darekf77/taon-typeorm
112
- + TypeOrm fork
113
- - taon-type-sql https://github.com/darekf77/taon-type-sql
114
- + strongly type sql
115
- - taon-rest https://github.com/darekf77/ng2-rest
116
- + easy rest api
117
- - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
118
- + abstraction for incremental builders NodeJS based
119
- - taon-storage https://github.com/darekf77/taon-storage
120
- + ts decorators based storage solution
121
- - taon-walk-object https://github.com/darekf77/lodash-walk-object
122
- + iterate over deep properties in object
123
-
124
-
125
-
126
- ## Global npm dependencies installed with taon
127
- Installation happens when you first time use taon
128
- ```jsonc
129
- [
130
- // tool for minifying js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
131
- { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
132
- // zip extractor.. no needed anymore (WILL EB REMOVED SOON FROM GLOBAL DEPS)
133
- { name: 'extract-zip', version: '1.6.7' },
134
- // copy catalogs (WILL EB REMOVED SOON FROM GLOBAL DEPS)
135
- { name: 'cpr' },
136
- // check version of your nodejs
137
- { name: 'check-node-version' },
138
- // alternative not npx ( it wil not download package from npm if is not installed )
139
- { name: 'npm-run', version: '4.1.2' },
140
- //handy for removing files
141
- { name: 'rimraf', version: '3.0.2' },
142
- //handy for recreating catalogs
143
- { name: 'mkdirp' },
144
- // rename files in build (WILL EB REMOVED SOON FROM GLOBAL DEPS)
145
- { name: 'renamer', version: '2.0.1' },
146
- // run/watch node server (WILL EB REMOVED SOON FROM GLOBAL DEPS)
147
- { name: 'nodemon' },
148
- // check circural deps (WILL EB REMOVED SOON FROM GLOBAL DEPS)
149
- { name: 'madge' },
150
- // package manager
151
- { name: 'yarn' },
152
- // https server with --base-href
153
- { name: 'taon-http-server' },
154
- // code formatter
155
- { name: 'prettier' },
156
- // process killer
157
- { name: 'fkill', installName: 'fkill-cli' },
158
- // for unit tests runner (WILL EB REMOVED SOON FROM GLOBAL DEPS)
159
- { name: 'mocha' },
160
- // for unit tests runner
161
- { name: 'jest' },
162
- // run ts code directly
163
- { name: 'ts-node' },
164
- // oficial vsce package striped out from some restrictions
165
- { name: 'taon-vsce' },
166
- // analyze you final bundle (WILL EB REMOVED SOON FROM GLOBAL DEPS)
167
- { name: 'webpack-bundle-analyzer' },
168
- // strip types from TypeScript
169
- { name: 'babel', installName: 'babel-cli' },
170
- // create js bundle that are not human readable (WILL EB REMOVED SOON FROM GLOBAL DEPS)
171
- { name: 'javascript-obfuscator', version: '4' },
172
- // minify js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
173
- { name: 'uglifyjs', installName: 'uglify-js' },
174
- ]
175
- ```
1
+ <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
+
3
+ <!-- cspell: disable-next-line -->
4
+ TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
+
6
+
7
+ ( BETA VERSION - MAJOR REFACTOR IN PROGRESS )
8
+
9
+ **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
10
+
11
+ \+
12
+ [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
13
+
14
+ \+
15
+ [Angular](https://angular.io/) libraries and PWA-s
16
+
17
+ \+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
18
+ - [sql.js](https://sql.js.org) - NodeJs Server Mode <br>
19
+ - [sql.js](https://sql.js.org) - WEBSQL Server Mode (backend in browser) <br>
20
+ - [mysql](https://www.mysql.com/) - Mysql Server Mode (inside docker) <br>
21
+
22
+ \+
23
+ [NodeJS](https://nodejs.org/en/) backends
24
+
25
+ \+
26
+ [Electron](https://www.electronjs.org/) desktop apps
27
+
28
+ \+
29
+ [Ionic](https://www.electronjs.org/) mobile apps
30
+
31
+ \+
32
+ [Visual Studio Code](https://www.electronjs.org/) plugins
33
+
34
+ \+ Documentation:<br>
35
+ - [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
36
+ - [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation <br>
37
+ - [Compodoc](https://compodoc.app/) docs from comments <br>
38
+
39
+ backend/frontend **[*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript)** apps/libs.
40
+
41
+ **[READ DOCUMENTATION](https://taon.dev/#/docs)**
42
+
43
+ ### Initial requirements of taon
44
+ 1. Installed git
45
+ (on windows only supported [gitbash](https://gitforwindows.org) or [new powershell pwsh](https://github.com/PowerShell/PowerShell))
46
+
47
+ 2. Increased watchers limit (only on linux):
48
+ ```bash
49
+ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
50
+ ```
51
+ 3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
52
+ and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
53
+
54
+ Windwos/Linux
55
+ ```bash
56
+ pip3 install mkdocs
57
+ pip3 install mkdocs-material --user
58
+ ```
59
+ MacOs
60
+ ```bash
61
+ brew install mkdocs
62
+ brew install mkdocs-material
63
+ ```
64
+
65
+ ## Supported OS-es:
66
+ - Win10, Win11 (gitbash)
67
+ - MacOS
68
+ - Linux
69
+
70
+
71
+ ## Required version of NodeJS
72
+ - Windows 10/11 (gitbash,pwsh): >= v18
73
+ - MacOS: >= v18
74
+ - Linux: >= v18
75
+
76
+
77
+ ## How to install taon
78
+ ```
79
+ npm i -g taon
80
+ ```
81
+
82
+
83
+ ## How to uninstall taon from local machine
84
+ Taon stores a big global container (in ~/.taon) for npm packages <br>
85
+ that are being shared across all taon projects.
86
+
87
+ ```bash
88
+ npm uninstall -g taon
89
+ rm -rf ~/.taon # taon local packages repository
90
+ ```
91
+
92
+
93
+ ## Projects that are part of taon.dev:
94
+ - taon https://github.com/darekf77/taon
95
+ + framework library
96
+ - tnp https://github.com/darekf77/tnp
97
+ + main cli / code structuring tool
98
+ - taon-core https://github.com/darekf77/tnp-core
99
+ + essential/core helpers for all projects
100
+ - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
101
+ + helpers for OOP class names based
102
+ - taon-config https://github.com/darekf77/tnp-config
103
+ + config/models for general purpose
104
+ - taon-cli https://github.com/darekf77/tnp-cli
105
+ + helpers/abstraction for global cli tools NodeJS based
106
+ - taon-helpers https://github.com/darekf77/tnp-helpers
107
+ + extended core helpers
108
+ - taon-json https://github.com/darekf77/json10
109
+ + handle JSON in better way
110
+ - taon-logger https://github.com/darekf77/ng2-logger
111
+ + logging in isomorphic apps
112
+ - taon-typeorm https://github.com/darekf77/taon-typeorm
113
+ + TypeOrm fork
114
+ - taon-type-sql https://github.com/darekf77/taon-type-sql
115
+ + strongly type sql
116
+ - taon-rest https://github.com/darekf77/ng2-rest
117
+ + easy rest api
118
+ - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
119
+ + abstraction for incremental builders NodeJS based
120
+ - taon-storage https://github.com/darekf77/taon-storage
121
+ + ts decorators based storage solution
122
+ - taon-walk-object https://github.com/darekf77/lodash-walk-object
123
+ + iterate over deep properties in object
124
+
125
+
126
+
127
+ ## Global npm dependencies installed with taon
128
+ Installation happens when you first time use taon
129
+ ```jsonc
130
+ [
131
+ // tool for minifying js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
132
+ { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
133
+ // zip extractor.. no needed anymore (WILL EB REMOVED SOON FROM GLOBAL DEPS)
134
+ { name: 'extract-zip', version: '1.6.7' },
135
+ // copy catalogs (WILL EB REMOVED SOON FROM GLOBAL DEPS)
136
+ { name: 'cpr' },
137
+ // check version of your nodejs
138
+ { name: 'check-node-version' },
139
+ // alternative not npx ( it wil not download package from npm if is not installed )
140
+ { name: 'npm-run', version: '4.1.2' },
141
+ //handy for removing files
142
+ { name: 'rimraf', version: '3.0.2' },
143
+ //handy for recreating catalogs
144
+ { name: 'mkdirp' },
145
+ // rename files in build (WILL EB REMOVED SOON FROM GLOBAL DEPS)
146
+ { name: 'renamer', version: '2.0.1' },
147
+ // run/watch node server (WILL EB REMOVED SOON FROM GLOBAL DEPS)
148
+ { name: 'nodemon' },
149
+ // check circural deps (WILL EB REMOVED SOON FROM GLOBAL DEPS)
150
+ { name: 'madge' },
151
+ // package manager
152
+ { name: 'yarn' },
153
+ // https server with --base-href
154
+ { name: 'taon-http-server' },
155
+ // code formatter
156
+ { name: 'prettier' },
157
+ // process killer
158
+ { name: 'fkill', installName: 'fkill-cli' },
159
+ // for unit tests runner (WILL EB REMOVED SOON FROM GLOBAL DEPS)
160
+ { name: 'mocha' },
161
+ // for unit tests runner
162
+ { name: 'jest' },
163
+ // run ts code directly
164
+ { name: 'ts-node' },
165
+ // oficial vsce package striped out from some restrictions
166
+ { name: 'taon-vsce' },
167
+ // analyze you final bundle (WILL EB REMOVED SOON FROM GLOBAL DEPS)
168
+ { name: 'webpack-bundle-analyzer' },
169
+ // strip types from TypeScript
170
+ { name: 'babel', installName: 'babel-cli' },
171
+ // create js bundle that are not human readable (WILL EB REMOVED SOON FROM GLOBAL DEPS)
172
+ { name: 'javascript-obfuscator', version: '4' },
173
+ // minify js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
174
+ { name: 'uglifyjs', installName: 'uglify-js' },
175
+ ]
176
+ ```