@seeka-labs/cli-apps 3.5.5 → 3.5.7
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init-template/app/browser/package.json +1 -1
- package/dist/init-template/app/lib/package.json +1 -1
- package/dist/init-template/app/server-azurefunc/package.json +5 -4
- package/dist/init-template/app/server-azurefunc/scripts/build.mjs +62 -0
- package/dist/init-template/app/server-azurefunc/src/app/api/router.ts +1 -2
- package/dist/init-template/app/server-azurefunc/src/functions/ui.ts +0 -2
- package/dist/init-template/app/ui/package.json +1 -1
- package/dist/init-template/package.json +2 -1
- package/package.json +2 -2
- package/dist/init-template/app/server/dist/src/ui/build/assets/index-CnKYrwj-.js +0 -67737
- package/dist/init-template/app/server/dist/src/ui/build/favicon.ico +0 -0
- package/dist/init-template/app/server/dist/src/ui/build/index.html +0 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@example-org-name/example-app-name-server-azurefunc",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"description": "Seeka Azure Serverless function app example-app-name",
|
|
5
5
|
"author": "Seeka <administrator@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint",
|
|
14
14
|
"typecheck": "tsc --noEmit",
|
|
15
|
-
"build": "
|
|
16
|
-
"watch": "
|
|
15
|
+
"build": "node ./scripts/build.mjs",
|
|
16
|
+
"watch": "node ./scripts/build.mjs --watch",
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
|
-
"prestart": "yarn build",
|
|
18
|
+
"prestart": "echo 'pre starting' && yarn build",
|
|
19
19
|
"dev": "func start --port 7072",
|
|
20
20
|
"tunnel": "ngrok http 7072 --hostname=seeka-app-example-app-name-localdev.au.ngrok.io --region au --log=stdout --log-format=term",
|
|
21
21
|
"deploy": "func azure functionapp publish example-app-name --no-build --javascript",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@seeka-labs/sdk-apps-server-telemetry-logging": "../../../workspace:* || ^3",
|
|
47
47
|
"axios": "^1",
|
|
48
48
|
"jsonwebtoken": "^9",
|
|
49
|
+
"jwt-decode": "^4",
|
|
49
50
|
"lodash-es": "^4",
|
|
50
51
|
"memory-cache": "^0",
|
|
51
52
|
"openid-client": "^6",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
import { glob } from 'glob';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
|
|
9
|
+
// Check if watch mode is enabled
|
|
10
|
+
const isWatch = process.argv.includes('--watch');
|
|
11
|
+
|
|
12
|
+
// Find all function entry points
|
|
13
|
+
const functionFiles = glob.sync('src/functions/*.ts', { cwd: path.resolve(__dirname, '..') });
|
|
14
|
+
|
|
15
|
+
console.log(`${isWatch ? 'Watching' : 'Building'} Azure Functions with esbuild...`);
|
|
16
|
+
console.log('Entry points:', functionFiles);
|
|
17
|
+
|
|
18
|
+
const buildOptions = {
|
|
19
|
+
entryPoints: functionFiles,
|
|
20
|
+
bundle: true,
|
|
21
|
+
platform: 'node',
|
|
22
|
+
target: 'node22',
|
|
23
|
+
format: 'cjs',
|
|
24
|
+
outdir: 'dist',
|
|
25
|
+
outbase: '.',
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
external: [
|
|
28
|
+
// Azure Functions runtime
|
|
29
|
+
'@azure/functions',
|
|
30
|
+
// Native modules
|
|
31
|
+
'@azure/storage-queue',
|
|
32
|
+
'@redis/client',
|
|
33
|
+
'@redis/json',
|
|
34
|
+
'redis',
|
|
35
|
+
// OpenTelemetry - keep external as they're large
|
|
36
|
+
'@opentelemetry/*',
|
|
37
|
+
// Other large dependencies that work fine as external
|
|
38
|
+
'google-ads-api',
|
|
39
|
+
'google-auth-library',
|
|
40
|
+
'winston',
|
|
41
|
+
'undici',
|
|
42
|
+
'memory-cache',
|
|
43
|
+
'openid-client',
|
|
44
|
+
'jsonwebtoken',
|
|
45
|
+
'lodash-es',
|
|
46
|
+
'yup',
|
|
47
|
+
],
|
|
48
|
+
// @seeka-labs packages will be bundled (not in external list)
|
|
49
|
+
// This resolves the ESM/CJS interop issues
|
|
50
|
+
mainFields: ['module', 'main'],
|
|
51
|
+
conditions: ['import', 'require', 'node'],
|
|
52
|
+
logLevel: 'info',
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
if (isWatch) {
|
|
56
|
+
const context = await esbuild.context(buildOptions);
|
|
57
|
+
await context.watch();
|
|
58
|
+
console.log('Watching for changes...');
|
|
59
|
+
} else {
|
|
60
|
+
await esbuild.build(buildOptions);
|
|
61
|
+
console.log('Build completed successfully!');
|
|
62
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {ExampleAppAppInstallContext
|
|
1
|
+
import {ExampleAppAppInstallContext} from "@example-org-name/example-app-name-lib";
|
|
2
2
|
import {getInstallationSettings} from "./routes/getInstallationSettings";
|
|
3
3
|
import {setInstallationSettings} from "./routes/setInstallationSettings";
|
|
4
|
-
import { SeekaAppInstallContext } from "@seeka-labs/sdk-apps-core";
|
|
5
4
|
import { Logger } from "winston";
|
|
6
5
|
import { AppUiHttpRequestResponse, HttpMethod } from "@seeka-labs/sdk-apps-server-host";
|
|
7
6
|
import {HttpRequest, InvocationContext} from "@azure/functions";
|
|
@@ -2,10 +2,8 @@ import {app, HttpRequest, HttpResponseInit, InvocationContext} from '@azure/func
|
|
|
2
2
|
import '../app/logging'
|
|
3
3
|
import {
|
|
4
4
|
ExampleAppAppInstallContext,
|
|
5
|
-
ExampleAppAppInstallState,
|
|
6
5
|
ExampleAppAppUiClientInitState
|
|
7
6
|
} from "@example-org-name/example-app-name-lib";
|
|
8
|
-
import { SeekaAppInstallContext } from "@seeka-labs/sdk-apps-core";
|
|
9
7
|
|
|
10
8
|
import { generateAppUiHttpRequestResponse, HttpMethod} from '@seeka-labs/sdk-apps-server-host';
|
|
11
9
|
import {Logger} from "winston";
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"git:push": "git add -A && git commit -m \"v$(node -p \"require('./package.json').version\")\" && git tag -a v$(node -p \"require('./package.json').version\") -m \"v$(node -p \"require('./package.json').version\")\"",
|
|
35
35
|
"clean": "yarn workspaces foreach --all -pt --include '@example-org-name/example-app-name-*' run clean",
|
|
36
36
|
"clean:all": "rimraf ./app/**/node_modules",
|
|
37
|
-
"dev:kill": "taskkill /f /t /im node.exe"
|
|
37
|
+
"dev:kill:windows": "taskkill /f /t /im node.exe",
|
|
38
|
+
"dev:kill:linux": "pkill -f \"node .*$(pwd)\""
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"concurrently": "^9",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeka-labs/cli-apps",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"description": "Seeka - Apps CLI",
|
|
5
5
|
"author": "SEEKA <platform@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"ts-jest": "^29",
|
|
60
60
|
"typescript": "^5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b1b8743820bee040287359116b714300cd5d315b"
|
|
63
63
|
}
|