taon-storage 21.0.44 → 21.0.46
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/taon-storage-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser-prod/fesm2022/taon-storage-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +6 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +6 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +6 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +6 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +6 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +6 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/taon-stor.test.d.ts +1 -1
- package/lib-esm/app.d.ts +0 -2
- package/lib-esm/app.electron.d.ts +0 -2
- package/lib-esm/app.electron.js +1 -82
- package/lib-esm/app.electron.js.map +1 -1
- package/lib-esm/app.hosts.d.ts +0 -95
- package/lib-esm/app.hosts.js +1 -156
- package/lib-esm/app.hosts.js.map +1 -1
- package/lib-esm/app.js +1 -120
- package/lib-esm/app.js.map +1 -1
- package/lib-esm/app.vscode.d.ts +0 -9
- package/lib-esm/app.vscode.js +1 -30
- package/lib-esm/app.vscode.js.map +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib-esm/lib/env/env.angular-node-app.js +3 -0
- package/lib-esm/lib/env/env.angular-node-app.js.map +1 -1
- package/lib-esm/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib-esm/lib/env/env.docs-webapp.js +3 -0
- package/lib-esm/lib/env/env.docs-webapp.js.map +1 -1
- package/lib-esm/lib/env/env.electron-app.d.ts +1 -0
- package/lib-esm/lib/env/env.electron-app.js +3 -0
- package/lib-esm/lib/env/env.electron-app.js.map +1 -1
- package/lib-esm/lib/env/env.mobile-app.d.ts +1 -0
- package/lib-esm/lib/env/env.mobile-app.js +3 -0
- package/lib-esm/lib/env/env.mobile-app.js.map +1 -1
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +3 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib-esm/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib-esm/lib/env/env.vscode-plugin.js +3 -0
- package/lib-esm/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/env/env.angular-node-app.d.ts +1 -0
- package/lib-prod/env/env.angular-node-app.js +3 -0
- package/lib-prod/env/env.angular-node-app.js.map +1 -1
- package/lib-prod/env/env.docs-webapp.d.ts +1 -0
- package/lib-prod/env/env.docs-webapp.js +3 -0
- package/lib-prod/env/env.docs-webapp.js.map +1 -1
- package/lib-prod/env/env.electron-app.d.ts +1 -0
- package/lib-prod/env/env.electron-app.js +3 -0
- package/lib-prod/env/env.electron-app.js.map +1 -1
- package/lib-prod/env/env.mobile-app.d.ts +1 -0
- package/lib-prod/env/env.mobile-app.js +3 -0
- package/lib-prod/env/env.mobile-app.js.map +1 -1
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +3 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib-prod/env/env.vscode-plugin.d.ts +1 -0
- package/lib-prod/env/env.vscode-plugin.js +3 -0
- package/lib-prod/env/env.vscode-plugin.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/taon-stor.js.map +1 -1
- package/package.json +1 -1
- package/websql/fesm2022/taon-storage-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql-prod/fesm2022/taon-storage-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/lib/taon-stor.test.js +0 -45
- package/lib/taon-stor.test.js.map +0 -1
- package/lib-esm/app.cloudflare.d.ts +0 -0
- package/lib-esm/app.cloudflare.js +0 -4
- package/lib-esm/app.cloudflare.js.map +0 -1
- package/lib-esm/lib/taon-stor.test.d.ts +0 -1
- package/lib-esm/lib/taon-stor.test.js +0 -43
- package/lib-esm/lib/taon-stor.test.js.map +0 -1
- package/lib-prod/taon-stor.test.d.ts +0 -1
- package/lib-prod/taon-stor.test.js +0 -43
- package/lib-prod/taon-stor.test.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB = exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER = exports.ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER = exports.ENV_VSCODE_PLUGIN_IS_CI_PROCESS = exports.ENV_VSCODE_PLUGIN_RECURSIVE_ACTION = exports.ENV_VSCODE_PLUGIN_PURPOSE = exports.ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK = exports.ENV_VSCODE_PLUGIN_RELEASE_USE_LOCAL_RELEASE_BRANCH = exports.ENV_VSCODE_PLUGIN_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES = void 0;
|
|
3
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH = exports.ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP = exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME = exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG = exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE = exports.ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL = exports.ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY = exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER = exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE = exports.ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS = exports.ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY = exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND = exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER = exports.ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE = exports.ENV_VSCODE_PLUGIN_BUILD_WATCH = exports.ENV_VSCODE_PLUGIN_BUILD_BASE_HREF = exports.ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH = exports.ENV_VSCODE_PLUGIN_BUILD_PROD = exports.ENV_VSCODE_PLUGIN_BUILD_WEBSQL = exports.ENV_VSCODE_PLUGIN_BUILD_SSR = exports.ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_NAME = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER = exports.ENV_VSCODE_PLUGIN_INIT_STRUCT = exports.ENV_VSCODE_PLUGIN_INIT_BRANDING = exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP = exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED = exports.ENV_VSCODE_PLUGIN_CONTAINER_START = exports.ENV_VSCODE_PLUGIN_CONTAINER_END = exports.ENV_VSCODE_PLUGIN_CONTAINER_ONLY = exports.ENV_VSCODE_PLUGIN_FINISH_CALLBACK = exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = void 0;
|
|
4
|
+
exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB = exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER = exports.ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER = exports.ENV_VSCODE_PLUGIN_IS_CI_PROCESS = exports.ENV_VSCODE_PLUGIN_RECURSIVE_ACTION = exports.ENV_VSCODE_PLUGIN_PURPOSE = exports.ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK = exports.ENV_VSCODE_PLUGIN_RELEASE_USE_LOCAL_RELEASE_BRANCH = exports.ENV_VSCODE_PLUGIN_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION = void 0;
|
|
5
5
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6
|
+
const lib_1 = require("tnp-core/lib");
|
|
6
7
|
// website.domain
|
|
7
8
|
exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = 'taon-storage.example.domain.com';
|
|
8
9
|
// website.title
|
|
@@ -11,6 +12,9 @@ exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = 'Taon Storage';
|
|
|
11
12
|
exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = 'vscode-plugin';
|
|
12
13
|
// release.envName
|
|
13
14
|
exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = '__';
|
|
15
|
+
// finishCallback
|
|
16
|
+
const ENV_VSCODE_PLUGIN_FINISH_CALLBACK = () => (0, lib_1.decodeEnv)({});
|
|
17
|
+
exports.ENV_VSCODE_PLUGIN_FINISH_CALLBACK = ENV_VSCODE_PLUGIN_FINISH_CALLBACK;
|
|
14
18
|
// container.only
|
|
15
19
|
exports.ENV_VSCODE_PLUGIN_CONTAINER_ONLY = undefined;
|
|
16
20
|
// container.end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.vscode-plugin.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,yCAAyC;AACzC,iBAAiB;AACJ,QAAA,gCAAgC,GAAG,iCAAiC,CAAC;AAClF,gBAAgB;AACH,QAAA,+BAA+B,GAAG,cAAc,CAAC;AAC9D,yBAAyB;AACZ,QAAA,yCAAyC,GAAG,eAAe,CAAC;AACzE,kBAAkB;AACL,QAAA,kCAAkC,GAAG,IAAI,CAAC;AACvD,iBAAiB;AACJ,QAAA,gCAAgC,GAAG,SAAS,CAAC;AAC1D,gBAAgB;AACH,QAAA,+BAA+B,GAAG,SAAS,CAAC;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C;AACnB,QAAA,iDAAiD,GAAG,SAAS,CAAC;AAC3E,iDAAiD;AACpC,QAAA,uEAAuE,GAAG,SAAS,CAAC;AACjG,gCAAgC;AACnB,QAAA,kDAAkD,GAAG,SAAS,CAAC;AAC5E,+BAA+B;AAClB,QAAA,kDAAkD,GAAG,SAAS,CAAC;AAC5E,gCAAgC;AACnB,QAAA,mDAAmD,GAAG,SAAS,CAAC;AAC7E,+BAA+B;AAClB,QAAA,kDAAkD,GAAG,SAAS,CAAC;AAC5E,qBAAqB;AACR,QAAA,sCAAsC,GAAG,SAAS,CAAC;AAChE,oBAAoB;AACP,QAAA,oCAAoC,GAAG,SAAS,CAAC;AAC9D,UAAU;AACG,QAAA,yBAAyB,GAAG,SAAS,CAAC;AACnD,kBAAkB;AACL,QAAA,kCAAkC,GAAG,SAAS,CAAC;AAC5D,cAAc;AACD,QAAA,+BAA+B,GAAG,SAAS,CAAC;AACzD,6BAA6B;AAChB,QAAA,6CAA6C,GAAG,SAAS,CAAC;AACvE,0BAA0B;AACb,QAAA,4CAA4C,GAAG,SAAS,CAAC;AACtE,0BAA0B;AACb,QAAA,4CAA4C,GAAG,SAAS,CAAC;AACtE,yCAAyC"}
|
package/lib/package.json
CHANGED
package/lib/taon-stor.test.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib-esm/app.d.ts
CHANGED
package/lib-esm/app.electron.js
CHANGED
|
@@ -1,83 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { path,
|
|
3
|
-
//#region @backend
|
|
4
|
-
fse
|
|
5
|
-
//#endregion
|
|
6
|
-
} from 'tnp-core/lib-esm';
|
|
7
|
-
//#region @backend
|
|
8
|
-
import { app, BrowserWindow, screen } from 'electron';
|
|
9
|
-
let win = null;
|
|
10
|
-
const args = process.argv.slice(1);
|
|
11
|
-
const serve = args.some(val => val === '--serve');
|
|
12
|
-
const websql = args.some(val => val === '--websql');
|
|
13
|
-
function createWindow() {
|
|
14
|
-
const size = screen.getPrimaryDisplay().workAreaSize;
|
|
15
|
-
// Create the browser window.
|
|
16
|
-
win = new BrowserWindow({
|
|
17
|
-
x: 0,
|
|
18
|
-
y: 0,
|
|
19
|
-
autoHideMenuBar: true,
|
|
20
|
-
width: size.width / 2,
|
|
21
|
-
height: size.height / 2,
|
|
22
|
-
webPreferences: {
|
|
23
|
-
nodeIntegration: true,
|
|
24
|
-
allowRunningInsecureContent: (serve),
|
|
25
|
-
contextIsolation: false,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
if (serve) {
|
|
29
|
-
const debug = require('electron-debug');
|
|
30
|
-
debug();
|
|
31
|
-
require('electron-reloader')(module);
|
|
32
|
-
win.loadURL('http://localhost:' + (websql ? CLIENT_DEV_WEBSQL_APP_PORT : CLIENT_DEV_NORMAL_APP_PORT));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
// Path when running electron executable
|
|
36
|
-
let pathIndex = './index.html';
|
|
37
|
-
if (fse.existsSync(path.join(__dirname, '../dist/index.html'))) {
|
|
38
|
-
// Path when running electron in local folder
|
|
39
|
-
pathIndex = '../dist/index.html';
|
|
40
|
-
}
|
|
41
|
-
const url = new URL(path.join('file:', __dirname, pathIndex));
|
|
42
|
-
win.loadURL(url.href);
|
|
43
|
-
}
|
|
44
|
-
// Emitted when the window is closed.
|
|
45
|
-
win.on('closed', () => {
|
|
46
|
-
// Dereference the window object, usually you would store window
|
|
47
|
-
// in an array if your app supports multi windows, this is the time
|
|
48
|
-
// when you should delete the corresponding element.
|
|
49
|
-
win = null;
|
|
50
|
-
});
|
|
51
|
-
return win;
|
|
52
|
-
}
|
|
53
|
-
async function startElectron() {
|
|
54
|
-
try {
|
|
55
|
-
// This method will be called when Electron has finished
|
|
56
|
-
// initialization and is ready to create browser windows.
|
|
57
|
-
// Some APIs can only be used after this event occurs.
|
|
58
|
-
// Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947
|
|
59
|
-
app.on('ready', () => setTimeout(createWindow, 400));
|
|
60
|
-
// Quit when all windows are closed.
|
|
61
|
-
app.on('window-all-closed', () => {
|
|
62
|
-
// On OS X it is common for applications and their menu bar
|
|
63
|
-
// to stay active until the user quits explicitly with Cmd + Q
|
|
64
|
-
if (process.platform !== 'darwin') {
|
|
65
|
-
app.quit();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
app.on('activate', () => {
|
|
69
|
-
// On OS X it's common to re-create a window in the app when the
|
|
70
|
-
// dock icon is clicked and there are no other windows open.
|
|
71
|
-
if (win === null) {
|
|
72
|
-
createWindow();
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
catch (e) {
|
|
77
|
-
// Catch Error
|
|
78
|
-
// throw e;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export default startElectron;
|
|
82
|
-
//#endregion
|
|
1
|
+
/* skipping app files for release build */
|
|
83
2
|
//# sourceMappingURL=app.electron.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.electron.js","sourceRoot":"","sources":[""],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.electron.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
package/lib-esm/app.hosts.d.ts
CHANGED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Your context backend port
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export declare const HOST_BACKEND_PORT_1: any;
|
|
6
|
-
/**
|
|
7
|
-
* Angular website url with normal/nodejs backend
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare const FRONTEND_NORMAL_APP_PORT_1: any;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT instead
|
|
13
|
-
*/
|
|
14
|
-
export declare const CLIENT_DEV_NORMAL_APP_PORT_1: any;
|
|
15
|
-
/**
|
|
16
|
-
* Angular website url with websql backend
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare const FRONTEND_WEBSQL_APP_PORT_1: any;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT instead
|
|
22
|
-
*/
|
|
23
|
-
export declare const CLIENT_DEV_WEBSQL_APP_PORT_1: any;
|
|
24
|
-
/**
|
|
25
|
-
* Electron/angular website url for electron app purpose (ipc backend)
|
|
26
|
-
*/
|
|
27
|
-
export declare const FRONTEND_NORMAL_ELECTRON_PORT_1 = 4228;
|
|
28
|
-
/**
|
|
29
|
-
* Backend url - use as "host" inside your context
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
export declare const HOST_URL_1: string;
|
|
33
|
-
/**
|
|
34
|
-
* Frontend host url - use as "frontendHost" inside your context
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
export declare const FRONTEND_HOST_URL_1: string;
|
|
38
|
-
/**
|
|
39
|
-
* Frontend electron host url - use in app.electron.ts with win.loadURL(FRONTEND_HOST_URL_ELECTRON);
|
|
40
|
-
*/
|
|
41
|
-
export declare const FRONTEND_HOST_URL_ELECTRON_1: string;
|
|
42
|
-
/**
|
|
43
|
-
* Your context backend port
|
|
44
|
-
* @deprecated use HOST_BACKEND_PORT_n instead
|
|
45
|
-
*/
|
|
46
|
-
export declare const HOST_BACKEND_PORT: any;
|
|
47
|
-
/**
|
|
48
|
-
* Angular website url with normal/nodejs backend
|
|
49
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT_n instead
|
|
50
|
-
*/
|
|
51
|
-
export declare const FRONTEND_NORMAL_APP_PORT: any;
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT instead
|
|
54
|
-
*/
|
|
55
|
-
export declare const CLIENT_DEV_NORMAL_APP_PORT: any;
|
|
56
|
-
/**
|
|
57
|
-
* Angular website url with websql backend
|
|
58
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT_n instead
|
|
59
|
-
*/
|
|
60
|
-
export declare const FRONTEND_WEBSQL_APP_PORT: any;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT instead
|
|
63
|
-
*/
|
|
64
|
-
export declare const CLIENT_DEV_WEBSQL_APP_PORT: any;
|
|
65
|
-
/**
|
|
66
|
-
* Electron/angular website url for electron app purpose (ipc backend)
|
|
67
|
-
*/
|
|
68
|
-
export declare const FRONTEND_NORMAL_ELECTRON_PORT = 4228;
|
|
69
|
-
/**
|
|
70
|
-
* Backend url - use as "host" inside your context
|
|
71
|
-
* @deprecated use HOST_URL_n instead
|
|
72
|
-
*/
|
|
73
|
-
export declare const HOST_URL: string;
|
|
74
|
-
/**
|
|
75
|
-
* Frontend host url - use as "frontendHost" inside your context
|
|
76
|
-
* @deprecated use FRONTEND_HOST_URL_n instead
|
|
77
|
-
*/
|
|
78
|
-
export declare const FRONTEND_HOST_URL: string;
|
|
79
|
-
/**
|
|
80
|
-
* Frontend electron host url - use in app.electron.ts with win.loadURL(FRONTEND_HOST_URL_ELECTRON);
|
|
81
|
-
*/
|
|
82
|
-
export declare const FRONTEND_HOST_URL_ELECTRON: string;
|
|
83
|
-
export declare const HOST_CONFIG: {
|
|
84
|
-
/** Relative file path for context */
|
|
85
|
-
/** Name of context (var, let, const variable) inside *.ts file. */
|
|
86
|
-
MainContext: {
|
|
87
|
-
activeContext: string;
|
|
88
|
-
contextName: string;
|
|
89
|
-
hostPortNumber: number;
|
|
90
|
-
host: string;
|
|
91
|
-
frontendHostPortNumber: number;
|
|
92
|
-
frontendHost: string;
|
|
93
|
-
appId: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
package/lib-esm/app.hosts.js
CHANGED
|
@@ -1,157 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APP_ID, BUILD_BASE_HREF } from './lib/build-info._auto-generated_';
|
|
3
|
-
let isWebSQLMode = false;
|
|
4
|
-
//#region @backend
|
|
5
|
-
isWebSQLMode = false;
|
|
6
|
-
//#endregion
|
|
7
|
-
/* */
|
|
8
|
-
/* */
|
|
9
|
-
const nodeENV = (() => {
|
|
10
|
-
let env;
|
|
11
|
-
//#region @backend
|
|
12
|
-
env = process.env || {};
|
|
13
|
-
//#endregion
|
|
14
|
-
return env || {};
|
|
15
|
-
})();
|
|
16
|
-
const windowENV = (() => {
|
|
17
|
-
let env;
|
|
18
|
-
/* */
|
|
19
|
-
/* */
|
|
20
|
-
return env || {};
|
|
21
|
-
})();
|
|
22
|
-
const argsENV = (() => {
|
|
23
|
-
let env;
|
|
24
|
-
//#region @backend
|
|
25
|
-
env = require('minimist')(process.argv);
|
|
26
|
-
//#endregion
|
|
27
|
-
return env || {};
|
|
28
|
-
})();
|
|
29
|
-
const transformURL = (url) => {
|
|
30
|
-
if (!url) {
|
|
31
|
-
return url;
|
|
32
|
-
}
|
|
33
|
-
//#region @backend
|
|
34
|
-
if (url.startsWith('http://') || url.startsWith('https://')) {
|
|
35
|
-
return url;
|
|
36
|
-
}
|
|
37
|
-
return 'http://' + url; // by default backend is http
|
|
38
|
-
//#endregion
|
|
39
|
-
/* */
|
|
40
|
-
/* */
|
|
41
|
-
/* */
|
|
42
|
-
/* */
|
|
43
|
-
/* */
|
|
44
|
-
};
|
|
45
|
-
const ACTIVE_CONTEXT = nodeENV['ACTIVE_CONTEXT'] || argsENV['ACTIVE_CONTEXT'] || windowENV['ACTIVE_CONTEXT'] || null;
|
|
46
|
-
/**
|
|
47
|
-
* Your context backend port
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export const HOST_BACKEND_PORT_1 = (nodeENV['HOST_BACKEND_PORT_1']) || (windowENV['HOST_BACKEND_PORT_1']) || (argsENV['HOST_BACKEND_PORT_1']) || 4107;
|
|
51
|
-
/**
|
|
52
|
-
* Angular website url with normal/nodejs backend
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export const FRONTEND_NORMAL_APP_PORT_1 = (nodeENV['FRONTEND_NORMAL_APP_PORT_1']) || (windowENV['FRONTEND_NORMAL_APP_PORT_1']) || (argsENV['FRONTEND_NORMAL_APP_PORT_1']) || 4226;
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT instead
|
|
58
|
-
*/
|
|
59
|
-
export const CLIENT_DEV_NORMAL_APP_PORT_1 = FRONTEND_NORMAL_APP_PORT_1;
|
|
60
|
-
/**
|
|
61
|
-
* Angular website url with websql backend
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
export const FRONTEND_WEBSQL_APP_PORT_1 = (nodeENV['FRONTEND_WEBSQL_APP_PORT_1']) || (windowENV['FRONTEND_WEBSQL_APP_PORT_1']) || (argsENV['FRONTEND_WEBSQL_APP_PORT_1']) || 4225;
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT instead
|
|
67
|
-
*/
|
|
68
|
-
export const CLIENT_DEV_WEBSQL_APP_PORT_1 = FRONTEND_WEBSQL_APP_PORT_1;
|
|
69
|
-
/**
|
|
70
|
-
* Electron/angular website url for electron app purpose (ipc backend)
|
|
71
|
-
*/
|
|
72
|
-
export const FRONTEND_NORMAL_ELECTRON_PORT_1 = 4228;
|
|
73
|
-
// electron websql not supported yet
|
|
74
|
-
// export const FRONTEND_WEBSQL_ELECTRON_PORT_1 = undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Backend url - use as "host" inside your context
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
export const HOST_URL_1 = transformURL(nodeENV['HOST_URL_1']) || transformURL(windowENV['HOST_URL_1']) || transformURL(argsENV['HOST_URL_1']) || ('http://localhost:' + HOST_BACKEND_PORT_1);
|
|
80
|
-
/**
|
|
81
|
-
* Frontend host url - use as "frontendHost" inside your context
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
export const FRONTEND_HOST_URL_1 = transformURL(nodeENV['FRONTEND_HOST_URL_1']) || transformURL(windowENV['FRONTEND_HOST_URL_1']) || transformURL(argsENV['FRONTEND_HOST_URL_1']) || ('http://localhost:' +
|
|
85
|
-
(isWebSQLMode ? FRONTEND_WEBSQL_APP_PORT_1 : FRONTEND_NORMAL_APP_PORT_1));
|
|
86
|
-
/**
|
|
87
|
-
* Frontend electron host url - use in app.electron.ts with win.loadURL(FRONTEND_HOST_URL_ELECTRON);
|
|
88
|
-
*/
|
|
89
|
-
export const FRONTEND_HOST_URL_ELECTRON_1 = 'http://localhost:' + FRONTEND_NORMAL_ELECTRON_PORT_1;
|
|
90
|
-
// electron websql not supported yet
|
|
91
|
-
// export const FRONTEND_HOST_URL_ELECTRON_1 =
|
|
92
|
-
// 'http://localhost:' +
|
|
93
|
-
// (isWebSQLMode ? FRONTEND_WEBSQL_ELECTRON_PORT_1 : FRONTEND_NORMAL_ELECTRON_PORT_1);
|
|
94
|
-
/**
|
|
95
|
-
* Your context backend port
|
|
96
|
-
* @deprecated use HOST_BACKEND_PORT_n instead
|
|
97
|
-
*/
|
|
98
|
-
export const HOST_BACKEND_PORT = (nodeENV['HOST_BACKEND_PORT']) || (windowENV['HOST_BACKEND_PORT']) || (argsENV['HOST_BACKEND_PORT']) || HOST_BACKEND_PORT_1;
|
|
99
|
-
/**
|
|
100
|
-
* Angular website url with normal/nodejs backend
|
|
101
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT_n instead
|
|
102
|
-
*/
|
|
103
|
-
export const FRONTEND_NORMAL_APP_PORT = (nodeENV['FRONTEND_NORMAL_APP_PORT']) || (windowENV['FRONTEND_NORMAL_APP_PORT']) || (argsENV['FRONTEND_NORMAL_APP_PORT']) || FRONTEND_NORMAL_APP_PORT_1;
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated use FRONTEND_NORMAL_APP_PORT instead
|
|
106
|
-
*/
|
|
107
|
-
export const CLIENT_DEV_NORMAL_APP_PORT = FRONTEND_NORMAL_APP_PORT;
|
|
108
|
-
/**
|
|
109
|
-
* Angular website url with websql backend
|
|
110
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT_n instead
|
|
111
|
-
*/
|
|
112
|
-
export const FRONTEND_WEBSQL_APP_PORT = (nodeENV['FRONTEND_WEBSQL_APP_PORT']) || (windowENV['FRONTEND_WEBSQL_APP_PORT']) || (argsENV['FRONTEND_WEBSQL_APP_PORT']) || FRONTEND_WEBSQL_APP_PORT_1;
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated use FRONTEND_WEBSQL_APP_PORT instead
|
|
115
|
-
*/
|
|
116
|
-
export const CLIENT_DEV_WEBSQL_APP_PORT = FRONTEND_WEBSQL_APP_PORT;
|
|
117
|
-
/**
|
|
118
|
-
* Electron/angular website url for electron app purpose (ipc backend)
|
|
119
|
-
*/
|
|
120
|
-
export const FRONTEND_NORMAL_ELECTRON_PORT = FRONTEND_NORMAL_ELECTRON_PORT_1;
|
|
121
|
-
// electron websql not supported yet
|
|
122
|
-
// export const FRONTEND_WEBSQL_ELECTRON_PORT = FRONTEND_WEBSQL_ELECTRON_PORT_1;
|
|
123
|
-
/**
|
|
124
|
-
* Backend url - use as "host" inside your context
|
|
125
|
-
* @deprecated use HOST_URL_n instead
|
|
126
|
-
*/
|
|
127
|
-
export const HOST_URL = transformURL(nodeENV['HOST_URL']) || transformURL(windowENV['HOST_URL']) || transformURL(argsENV['HOST_URL']) || ('http://localhost:' + HOST_BACKEND_PORT);
|
|
128
|
-
/**
|
|
129
|
-
* Frontend host url - use as "frontendHost" inside your context
|
|
130
|
-
* @deprecated use FRONTEND_HOST_URL_n instead
|
|
131
|
-
*/
|
|
132
|
-
export const FRONTEND_HOST_URL = transformURL(nodeENV['FRONTEND_HOST_URL']) || transformURL(windowENV['FRONTEND_HOST_URL']) || transformURL(argsENV['FRONTEND_HOST_URL']) || ('http://localhost:' +
|
|
133
|
-
(isWebSQLMode ? FRONTEND_WEBSQL_APP_PORT : FRONTEND_NORMAL_APP_PORT));
|
|
134
|
-
/**
|
|
135
|
-
* Frontend electron host url - use in app.electron.ts with win.loadURL(FRONTEND_HOST_URL_ELECTRON);
|
|
136
|
-
*/
|
|
137
|
-
export const FRONTEND_HOST_URL_ELECTRON = 'http://localhost:' + FRONTEND_NORMAL_ELECTRON_PORT;
|
|
138
|
-
// electron websql not supported yet
|
|
139
|
-
// export const FRONTEND_HOST_URL_ELECTRON =
|
|
140
|
-
// 'http://localhost:' +
|
|
141
|
-
// (isWebSQLMode ? FRONTEND_WEBSQL_ELECTRON_PORT : FRONTEND_NORMAL_ELECTRON_PORT);
|
|
142
|
-
export const HOST_CONFIG = {
|
|
143
|
-
/** Relative file path for context */
|
|
144
|
-
//'app.ts'
|
|
145
|
-
/** Name of context (var, let, const variable) inside *.ts file. */
|
|
146
|
-
'MainContext': {
|
|
147
|
-
activeContext: ACTIVE_CONTEXT,
|
|
148
|
-
contextName: 'MainContext',
|
|
149
|
-
hostPortNumber: Number(HOST_BACKEND_PORT_1),
|
|
150
|
-
host: HOST_URL_1 + BUILD_BASE_HREF,
|
|
151
|
-
frontendHostPortNumber: Number(FRONTEND_NORMAL_APP_PORT_1),
|
|
152
|
-
frontendHost: FRONTEND_HOST_URL_1 + BUILD_BASE_HREF,
|
|
153
|
-
appId: APP_ID,
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1
|
+
/* skipping app files for release build */
|
|
157
2
|
//# sourceMappingURL=app.hosts.js.map
|
package/lib-esm/app.hosts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.hosts.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.hosts.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
package/lib-esm/app.js
CHANGED
|
@@ -1,121 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//#region imports
|
|
3
|
-
import { Taon, TaonBaseContext } from 'taon/lib-esm';
|
|
4
|
-
import { HOST_BACKEND_PORT } from './app.hosts';
|
|
5
|
-
/* */
|
|
6
|
-
/* */
|
|
7
|
-
/* */
|
|
8
|
-
/* */
|
|
9
|
-
/* */
|
|
10
|
-
/* */
|
|
11
|
-
//#endregion
|
|
12
|
-
console.log('hello world');
|
|
13
|
-
console.log('Your server will start on port ' + HOST_BACKEND_PORT);
|
|
14
|
-
const host = 'http://localhost:' + HOST_BACKEND_PORT;
|
|
15
|
-
//#region taon-storage component
|
|
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
|
-
//#endregion
|
|
41
|
-
//#region taon-storage api service
|
|
42
|
-
/* */
|
|
43
|
-
/* */
|
|
44
|
-
/* */
|
|
45
|
-
/* */
|
|
46
|
-
/* */
|
|
47
|
-
/* */
|
|
48
|
-
/* */
|
|
49
|
-
/* */
|
|
50
|
-
/* */
|
|
51
|
-
/* */
|
|
52
|
-
/* */
|
|
53
|
-
/* */
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region taon-storage module
|
|
56
|
-
/* */
|
|
57
|
-
/* */
|
|
58
|
-
/* */
|
|
59
|
-
/* */
|
|
60
|
-
/* */
|
|
61
|
-
/* */
|
|
62
|
-
/* */
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region taon-storage entity
|
|
65
|
-
let User = class User extends Taon.Base.AbstractEntity {
|
|
66
|
-
//#region @websql
|
|
67
|
-
//#endregion
|
|
68
|
-
name;
|
|
69
|
-
};
|
|
70
|
-
__decorate([
|
|
71
|
-
Taon.Orm.Column.String()
|
|
72
|
-
//#endregion
|
|
73
|
-
,
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], User.prototype, "name", void 0);
|
|
76
|
-
User = __decorate([
|
|
77
|
-
Taon.Entity({ className: 'User' })
|
|
78
|
-
], User);
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region taon-storage controller
|
|
81
|
-
let UserController = class UserController extends Taon.Base.CrudController {
|
|
82
|
-
entityClassResolveFn = () => User;
|
|
83
|
-
//#region @websql
|
|
84
|
-
async initExampleDbData() {
|
|
85
|
-
const superAdmin = new User();
|
|
86
|
-
superAdmin.name = 'super-admin';
|
|
87
|
-
await this.db.save(superAdmin);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
UserController = __decorate([
|
|
91
|
-
Taon.Controller({ className: 'UserController' })
|
|
92
|
-
], UserController);
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region taon-storage context
|
|
95
|
-
var MainContext = Taon.createContext(() => ({
|
|
96
|
-
host,
|
|
97
|
-
contextName: 'MainContext',
|
|
98
|
-
contexts: { TaonBaseContext },
|
|
99
|
-
controllers: {
|
|
100
|
-
UserController,
|
|
101
|
-
// PUT FIREDEV CONTORLLERS HERE
|
|
102
|
-
},
|
|
103
|
-
entities: {
|
|
104
|
-
User,
|
|
105
|
-
// PUT FIREDEV ENTITIES HERE
|
|
106
|
-
},
|
|
107
|
-
database: true,
|
|
108
|
-
// disabledRealtime: true,
|
|
109
|
-
}));
|
|
110
|
-
//#endregion
|
|
111
|
-
async function start() {
|
|
112
|
-
await MainContext.initialize();
|
|
113
|
-
if (Taon.isBrowser) {
|
|
114
|
-
const users = (await MainContext.getClassInstance(UserController).getAll().received).body?.json;
|
|
115
|
-
console.log({
|
|
116
|
-
'users from backend': users,
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
export default start;
|
|
1
|
+
/* skipping app files for release build */
|
|
121
2
|
//# sourceMappingURL=app.js.map
|
package/lib-esm/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
package/lib-esm/app.vscode.d.ts
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CommandType } from 'tnp-helpers/lib-esm';
|
|
2
|
-
import type { ExtensionContext } from 'vscode';
|
|
3
|
-
export declare const commands: CommandType[];
|
|
4
|
-
export declare function activate(context: ExtensionContext): void;
|
|
5
|
-
export declare function deactivate(): void;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
commands: CommandType[];
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
package/lib-esm/app.vscode.js
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { executeCommand } from 'tnp-helpers/lib-esm';
|
|
3
|
-
const group = 'Taon Storage CLI essentials';
|
|
4
|
-
export const commands = [
|
|
5
|
-
{
|
|
6
|
-
title: 'hello world',
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
title: 'hey!',
|
|
10
|
-
},
|
|
11
|
-
].map(c => {
|
|
12
|
-
if (!c.command) {
|
|
13
|
-
c.command = `extension.${Utils.camelize(c.title)}`;
|
|
14
|
-
}
|
|
15
|
-
if (!c.group) {
|
|
16
|
-
c.group = group;
|
|
17
|
-
}
|
|
18
|
-
return c;
|
|
19
|
-
});
|
|
20
|
-
export function activate(context) {
|
|
21
|
-
for (let index = 0; index < commands.length; index++) {
|
|
22
|
-
const { title = '', command = '', exec = '', options, isDefaultBuildCommand, } = commands[index];
|
|
23
|
-
const sub = executeCommand(title, command, exec, options, isDefaultBuildCommand, context);
|
|
24
|
-
if (sub) {
|
|
25
|
-
context.subscriptions.push(sub);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export function deactivate() { }
|
|
30
|
-
export default { commands };
|
|
1
|
+
/* skipping app files for release build */
|
|
31
2
|
//# sourceMappingURL=app.vscode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.vscode.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"app.vscode.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,0CAA0C"}
|
|
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
22
22
|
/**
|
|
23
23
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
24
24
|
*/
|
|
25
|
-
export const CURRENT_PACKAGE_VERSION = '21.0.
|
|
25
|
+
export const CURRENT_PACKAGE_VERSION = '21.0.46';
|
|
26
26
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
27
27
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
|
@@ -2,6 +2,7 @@ export declare const ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN = "taon-storage.example
|
|
|
2
2
|
export declare const ENV_ANGULAR_NODE_APP_WEBSITE_TITLE = "Taon Storage";
|
|
3
3
|
export declare const ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT = "angular-node-app";
|
|
4
4
|
export declare const ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME = "__";
|
|
5
|
+
export declare const ENV_ANGULAR_NODE_APP_FINISH_CALLBACK: () => Promise<string>;
|
|
5
6
|
export declare const ENV_ANGULAR_NODE_APP_CONTAINER_ONLY: any;
|
|
6
7
|
export declare const ENV_ANGULAR_NODE_APP_CONTAINER_END: any;
|
|
7
8
|
export declare const ENV_ANGULAR_NODE_APP_CONTAINER_START: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
2
|
+
import { decodeEnv } from 'tnp-core/lib-esm';
|
|
2
3
|
// website.domain
|
|
3
4
|
export const ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN = 'taon-storage.example.domain.com';
|
|
4
5
|
// website.title
|
|
@@ -7,6 +8,8 @@ export const ENV_ANGULAR_NODE_APP_WEBSITE_TITLE = 'Taon Storage';
|
|
|
7
8
|
export const ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT = 'angular-node-app';
|
|
8
9
|
// release.envName
|
|
9
10
|
export const ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME = '__';
|
|
11
|
+
// finishCallback
|
|
12
|
+
export const ENV_ANGULAR_NODE_APP_FINISH_CALLBACK = () => decodeEnv({});
|
|
10
13
|
// container.only
|
|
11
14
|
export const ENV_ANGULAR_NODE_APP_CONTAINER_ONLY = undefined;
|
|
12
15
|
// container.end
|