diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create-import-video-file-job.ts | 3 | ||||
-rwxr-xr-x | scripts/create-transcoding-job.ts | 3 | ||||
-rw-r--r-- | scripts/danger/clean/cleaner.ts | 3 | ||||
-rwxr-xr-x | scripts/generate-code-contributors.ts | 3 | ||||
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 3 | ||||
-rwxr-xr-x | scripts/i18n/xliff2json.ts | 3 | ||||
-rw-r--r-- | scripts/optimize-old-videos.ts | 3 | ||||
-rwxr-xr-x | scripts/parse-log.ts | 3 | ||||
-rwxr-xr-x | scripts/plugin/install.ts | 3 | ||||
-rwxr-xr-x | scripts/plugin/uninstall.ts | 4 | ||||
-rwxr-xr-x | scripts/prune-storage.ts | 3 | ||||
-rwxr-xr-x | scripts/reset-password.ts | 3 | ||||
-rwxr-xr-x | scripts/update-host.ts | 3 |
13 files changed, 40 insertions, 0 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts index 2b636014a..204337d55 100644 --- a/scripts/create-import-video-file-job.ts +++ b/scripts/create-import-video-file-job.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as program from 'commander' | 4 | import * as program from 'commander' |
2 | import { resolve } from 'path' | 5 | import { resolve } from 'path' |
3 | import { VideoModel } from '../server/models/video/video' | 6 | import { VideoModel } from '../server/models/video/video' |
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 2eb872169..67a270a86 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as program from 'commander' | 4 | import * as program from 'commander' |
2 | import { VideoModel } from '../server/models/video/video' | 5 | import { VideoModel } from '../server/models/video/video' |
3 | import { initDatabaseModels } from '../server/initializers' | 6 | import { initDatabaseModels } from '../server/initializers' |
diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts index d575af283..ed35ef79f 100644 --- a/scripts/danger/clean/cleaner.ts +++ b/scripts/danger/clean/cleaner.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../../../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as Promise from 'bluebird' | 4 | import * as Promise from 'bluebird' |
2 | import * as rimraf from 'rimraf' | 5 | import * as rimraf from 'rimraf' |
3 | import { initDatabaseModels, sequelizeTypescript } from '../../../server/initializers' | 6 | import { initDatabaseModels, sequelizeTypescript } from '../../../server/initializers' |
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts index c745b1cb2..8493d3d0c 100755 --- a/scripts/generate-code-contributors.ts +++ b/scripts/generate-code-contributors.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import { doRequest } from '../server/helpers/requests' | 4 | import { doRequest } from '../server/helpers/requests' |
2 | import { readFileSync } from 'fs-extra' | 5 | import { readFileSync } from 'fs-extra' |
3 | 6 | ||
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts index 95897afa3..e946b8fd6 100755 --- a/scripts/i18n/create-custom-files.ts +++ b/scripts/i18n/create-custom-files.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as jsToXliff12 from 'xliff/jsToXliff12' | 4 | import * as jsToXliff12 from 'xliff/jsToXliff12' |
2 | import { writeFile } from 'fs-extra' | 5 | import { writeFile } from 'fs-extra' |
3 | import { join } from 'path' | 6 | import { join } from 'path' |
diff --git a/scripts/i18n/xliff2json.ts b/scripts/i18n/xliff2json.ts index 7e6de2893..68fc95f34 100755 --- a/scripts/i18n/xliff2json.ts +++ b/scripts/i18n/xliff2json.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as xliff12ToJs from 'xliff/xliff12ToJs' | 4 | import * as xliff12ToJs from 'xliff/xliff12ToJs' |
2 | import { readFileSync, unlink, writeFile } from 'fs-extra' | 5 | import { readFileSync, unlink, writeFile } from 'fs-extra' |
3 | import { join } from 'path' | 6 | import { join } from 'path' |
diff --git a/scripts/optimize-old-videos.ts b/scripts/optimize-old-videos.ts index 0b0e6037e..eb61ec43c 100644 --- a/scripts/optimize-old-videos.ts +++ b/scripts/optimize-old-videos.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants' | 4 | import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants' |
2 | import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils' | 5 | import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils' |
3 | import { getMaxBitrate } from '../shared/models/videos' | 6 | import { getMaxBitrate } from '../shared/models/videos' |
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index 83ad45b72..9e6653ca3 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as program from 'commander' | 4 | import * as program from 'commander' |
2 | import { createReadStream, readdir } from 'fs-extra' | 5 | import { createReadStream, readdir } from 'fs-extra' |
3 | import { join } from 'path' | 6 | import { join } from 'path' |
diff --git a/scripts/plugin/install.ts b/scripts/plugin/install.ts index 5d7fe4ba0..54738f50f 100755 --- a/scripts/plugin/install.ts +++ b/scripts/plugin/install.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import { initDatabaseModels } from '../../server/initializers/database' | 4 | import { initDatabaseModels } from '../../server/initializers/database' |
2 | import * as program from 'commander' | 5 | import * as program from 'commander' |
3 | import { PluginManager } from '../../server/lib/plugins/plugin-manager' | 6 | import { PluginManager } from '../../server/lib/plugins/plugin-manager' |
diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts index b5e1ddea2..c56f18466 100755 --- a/scripts/plugin/uninstall.ts +++ b/scripts/plugin/uninstall.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import { initDatabaseModels } from '../../server/initializers/database' | 4 | import { initDatabaseModels } from '../../server/initializers/database' |
2 | import * as program from 'commander' | 5 | import * as program from 'commander' |
3 | import { PluginManager } from '../../server/lib/plugins/plugin-manager' | 6 | import { PluginManager } from '../../server/lib/plugins/plugin-manager' |
@@ -19,6 +22,7 @@ run() | |||
19 | }) | 22 | }) |
20 | 23 | ||
21 | async function run () { | 24 | async function run () { |
25 | |||
22 | await initDatabaseModels(true) | 26 | await initDatabaseModels(true) |
23 | 27 | ||
24 | const toUninstall = program['npmName'] | 28 | const toUninstall = program['npmName'] |
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts index df4bdeebe..c8968013b 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as prompt from 'prompt' | 4 | import * as prompt from 'prompt' |
2 | import { join } from 'path' | 5 | import { join } from 'path' |
3 | import { CONFIG } from '../server/initializers/config' | 6 | import { CONFIG } from '../server/initializers/config' |
diff --git a/scripts/reset-password.ts b/scripts/reset-password.ts index 4a9037280..6126c3cd0 100755 --- a/scripts/reset-password.ts +++ b/scripts/reset-password.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import * as program from 'commander' | 4 | import * as program from 'commander' |
2 | import { initDatabaseModels } from '../server/initializers' | 5 | import { initDatabaseModels } from '../server/initializers' |
3 | import { UserModel } from '../server/models/account/user' | 6 | import { UserModel } from '../server/models/account/user' |
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 57919b998..a946d2e42 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
1 | import { WEBSERVER } from '../server/initializers/constants' | 4 | import { WEBSERVER } from '../server/initializers/constants' |
2 | import { ActorFollowModel } from '../server/models/activitypub/actor-follow' | 5 | import { ActorFollowModel } from '../server/models/activitypub/actor-follow' |
3 | import { VideoModel } from '../server/models/video/video' | 6 | import { VideoModel } from '../server/models/video/video' |