Commit Graph

31 Commits (c4a5ec0a97330c8f4b52dfecb9276ad83e595bad)

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
Chocobozzz 053ed7f5e6
Update code contributors 2023-07-26 09:49:53 +02:00
Chocobozzz f8360396ff
Stop using tsconfig register
Prefer to replace paths at compile time
2022-01-06 08:26:14 +01:00
Chocobozzz bf54587a3e
shared/ typescript types dir server-commands 2021-12-17 09:29:23 +01:00
Chocobozzz 8f2608e9a9
Update credits 2021-11-12 11:28:04 +01:00
Chocobozzz 50bb71bade
Update contributor list 2021-08-26 10:01:42 +02:00
Chocobozzz 329619b345
Introduce CLI command 2021-07-20 15:27:16 +02:00
Chocobozzz 5351a0584f
Replace local menu icon 2021-05-28 14:56:42 +02:00
Chocobozzz 5ac593b7f7
Update credits 2021-02-24 13:59:41 +01:00
Chocobozzz e3234c3b4c
Fix credit script link 2021-02-24 13:56:04 +01:00
Chocobozzz 113d4a3f73
Only link to crowdfunding pages in credits 2020-12-14 16:08:15 +01:00
Chocobozzz 12394e7e4b
Update contributors 2020-12-02 16:14:56 +01:00
Rigel Kent 488a80fbc0
fix lint for credits generation 2020-11-22 14:17:32 +01:00
Rigel Kent 63703d8cee
move crowdfunding information to CREDITS.md
moving that information to properly group contributions and crediting
in preparation of the v3 crowdfunding end
2020-11-21 17:51:07 +01:00
Chocobozzz 241c1a558c
Fix icon names 2020-08-07 14:55:55 +02:00
Chocobozzz f0af38e696 Fix lint 2020-07-31 11:32:04 +02:00
Kim 345b4a22a8
Update my-account sub-menus icons (#2977)
* Update user sub-menus icons

* Update admin sub-menu icons

* Add solendp to credits

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-07-23 14:42:06 +02:00
Rigel Kent bfbc596643 update scripts/generate-code-contributors.ts 2020-07-01 17:03:48 +02:00
Chocobozzz b6e0e6a31b
Update credits 2020-02-28 14:01:13 +01:00
Chocobozzz 30ff193a60
Update code contributors 2020-02-11 15:18:25 +01:00
Chocobozzz c4a1811ea8
Use lower instead of ilike to login users 2020-01-09 14:00:34 +01:00
Chocobozzz 41ee83423c
Rebuild credits
Had to update the script now we use weblate
2020-01-09 12:00:47 +01:00
Chocobozzz 41eac41b05
Fix typings 2019-11-05 09:21:04 +01:00
Chocobozzz ebd316d142
Fix duplicated in CREDITS 2019-11-05 08:56:27 +01:00
Chocobozzz 2aaa1a3fdc
Use typescript paths in cli scripts too 2019-10-21 17:13:22 +02:00
Chocobozzz 1eb23e12f7
Add contributors in about peertube page 2019-09-05 15:40:09 +02:00
Chocobozzz 19041ac885
Update credits 2019-05-13 10:03:57 +02:00
Chocobozzz 4c280004ce Use a single file instead of segments for HLS 2019-02-11 09:13:02 +01:00
Chocobozzz 93f85e90ff
Update credits 2019-01-10 12:07:34 +01:00
Rigel Kent c9d5c64f98 replace fs by fs-extra to prevent EMFILE error 2018-08-27 16:03:57 +02:00
Chocobozzz 92d83c6a78
Fix git credits 2018-06-22 17:08:44 +02:00