1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00
Commit graph

34 commits

Author SHA1 Message Date
Chocobozzz
3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Florent
045224d5eb Allow continusously printing logs through tail and parse-log 2022-08-16 10:32:53 +02:00
Chocobozzz
5220859984
Fix log parser with multiple files 2022-07-12 16:23:06 +02:00
Chocobozzz
a91e9beb3f
Update server dependencies 2022-06-21 11:23:32 +02:00
Chocobozzz
f8360396ff
Stop using tsconfig register
Prefer to replace paths at compile time
2022-01-06 08:26:14 +01:00
Chocobozzz
15a7eafb89
Refactor video links builders 2021-07-26 15:04:37 +02:00
Chocobozzz
ed76401ecd
Add ms to parse log dates 2021-06-29 15:22:12 +02:00
Chocobozzz
8cc6120118
Upgrade server dependencies 2021-06-25 17:39:27 +02:00
Chocobozzz
8ebf2a5d5d
Refactor live manager 2021-06-17 08:47:03 +02:00
Chocobozzz
51f636ad0f
Display locale date time in parse log 2021-06-15 10:40:06 +02:00
Chocobozzz
452b3bea08
Introduce tags to the logger
That could help to filter unneeded logs and/or select particular
components
2021-03-24 18:18:40 +01:00
Chocobozzz
ba5a8d89bb
Update server dependencies 2021-02-03 09:45:08 +01:00
Chocobozzz
cb5c2abc99
Improve parse log with sql 2021-02-01 15:04:45 +01:00
Chocobozzz
1e743faafe
Disable sql prettifier by default
It adds too much lines, leading to difficulties when reading dev logs
2021-01-26 09:54:32 +01:00
Chocobozzz
2b6c55528d
Clearer error in parse log 2020-12-22 10:15:06 +01:00
Chocobozzz
e078371807 Parse log script can take files as args 2020-12-14 09:11:27 +01:00
Chocobozzz
f0af38e696 Fix lint 2020-07-31 11:32:04 +02:00
Chocobozzz
1b05d82d86
Add SQL query support in plugins 2020-04-09 11:00:30 +02:00
Chocobozzz
2aaa1a3fdc
Use typescript paths in cli scripts too 2019-10-21 17:13:22 +02:00
Chocobozzz
cda03765fe
Add ability to delete old remote views 2019-04-12 08:31:06 +02:00
Chocobozzz
74dc3bca2b
Don't expose constants directly in initializers/ 2019-04-11 14:26:41 +02:00
Chocobozzz
fd8710b897
Add logs endpoint 2019-04-10 16:38:32 +02:00
Rigel Kent
c9d5c64f98 replace fs by fs-extra to prevent EMFILE error 2018-08-27 16:03:57 +02:00
Chocobozzz
e20015d744
Fiw winston meta log 2018-07-30 11:34:34 +02:00
Chocobozzz
337ba64efc
Parse log script parse the last updated log 2018-07-16 14:38:11 +02:00
Chocobozzz
85b4d9c52e
Upgrade dependencies 2018-06-26 18:05:47 +02:00
Chocobozzz
3aa5cea8fe
Upgrade dependencies 2018-06-19 10:45:33 +02:00
Chocobozzz
0647f472bc
Fix logging timestamp 2018-03-08 18:16:15 +01:00
Chocobozzz
94a5ff8a4a
Move job queue to redis
We'll use it as cache in the future.

/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
2018-01-25 18:41:17 +01:00
Chocobozzz
23e27dd535
Add ability to configure log level 2018-01-19 13:58:13 +01:00
Chocobozzz
c46edbc2f6
Fetch outbox to grab old activities tests 2017-11-27 19:40:53 +01:00
Chocobozzz
afffe98839
Speed up activity pub http requests 2017-11-27 19:40:52 +01:00
Chocobozzz
47e0652b4a
Optimize account creation 2017-11-27 19:40:52 +01:00
Chocobozzz
41dbdb8acf
Add script to parse log files 2017-11-27 19:40:52 +01:00