-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage.ts
47 lines (44 loc) · 1.08 KB
/
manage.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { execute, setup } from '@alexi/web';
import { AlexiWebApp } from '@alexi/web/app';
import { AlexiFirebaseApp } from '@alexi/firebase/app';
import { urlpatterns } from 'project/urls.ts';
import { MyApp } from 'myapp/app.ts';
async function main() {
await setup({
ROOT_URLCONF: urlpatterns,
INSTALLED_APPS: [
//
MyApp,
AlexiFirebaseApp,
AlexiWebApp,
],
DATABASES: {
default: {
NAME: 'default',
ENGINE: null,
},
},
STATIC_ROOT: './static',
STATICFILES: [
'./src/myapp/static/myapp/index.ts',
'./src/myapp/static/myapp/templates/myapp/counter.ts',
'./src/myapp/static/myapp/templates/myapp/assets.ts',
],
FIREBASE: {
ENTRY_POINTS: [
'./project/functions/main.ts',
],
OUTFILE: './project/functions/main.js',
EXTERNAL: [
'firebase-admin',
'firebase-admin/app',
'firebase-admin/auth',
'firebase-admin/firestore',
'firebase-admin/storage',
'firebase-functions',
],
},
});
await execute();
}
main();