@webqit/webflo 0.20.33 → 0.20.35
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/package.json +9 -3
- package/src/index.js +7 -7
- package/src/{build-pi → webflo-build}/index.js +4 -4
- package/src/{config-pi → webflo-config}/deployment/Env.js +0 -4
- package/src/{config-pi → webflo-config}/deployment/Layout.js +0 -4
- package/src/{config-pi → webflo-config}/deployment/Origins.js +0 -4
- package/src/{config-pi → webflo-config}/deployment/Proxy.js +0 -4
- package/src/{config-pi → webflo-config}/deployment/index.js +0 -7
- package/src/{config-pi → webflo-config}/index.js +0 -7
- package/src/{config-pi → webflo-config}/static/Init.js +0 -4
- package/src/{config-pi → webflo-config}/static/Manifest.js +0 -4
- package/src/{config-pi → webflo-config}/static/Ssg.js +0 -4
- package/src/{config-pi → webflo-config}/static/index.js +0 -7
- package/src/{deployment-pi → webflo-deployment}/index.js +0 -7
- package/src/{deployment-pi → webflo-deployment}/origins/index.js +0 -13
- package/src/webflo-exports/ui/index.js +1 -0
- package/src/{init-pi → webflo-init}/index.js +1 -1
- package/src/{runtime-pi → webflo-runtime}/webflo-client/bootstrap.js +1 -1
- package/src/{runtime-pi → webflo-runtime}/webflo-client/webflo-elements.js +228 -115
- package/src/webflo-runtime/webflo-client/webflo-embedded.js +56 -0
- package/src/{runtime-pi → webflo-runtime}/webflo-server/WebfloServer.js +1 -1
- package/src/{runtime-pi → webflo-runtime}/webflo-server/bootstrap.js +1 -1
- package/src/{runtime-pi → webflo-runtime}/webflo-worker/bootstrap.js +1 -1
- package/src/{services-pi → webflo-services}/cert/http-auth-hook.js +1 -1
- package/test/browser/elements.src.build.js +1239 -0
- package/test/browser/elements.src.build.js.map +7 -0
- package/test/browser/elements.src.js +3 -0
- package/test/browser/index.html +419 -0
- package/src/runtime-pi/webflo-client/webflo-embedded.js +0 -54
- package/test/index.test.js +0 -26
- package/test/site/package.json +0 -9
- package/test/site/public/bundle.html +0 -6
- package/test/site/public/bundle.html.json +0 -4
- package/test/site/public/bundle.js +0 -2
- package/test/site/public/bundle.js.gz +0 -0
- package/test/site/public/bundle.webflo.js +0 -15
- package/test/site/public/bundle.webflo.js.gz +0 -0
- package/test/site/public/index.html +0 -30
- package/test/site/public/index1.html +0 -35
- package/test/site/public/page-2/bundle.html +0 -5
- package/test/site/public/page-2/bundle.html.json +0 -1
- package/test/site/public/page-2/bundle.js +0 -2
- package/test/site/public/page-2/bundle.js.gz +0 -0
- package/test/site/public/page-2/index.html +0 -46
- package/test/site/public/page-2/logo-130x130.png +0 -0
- package/test/site/public/page-2/main.html +0 -3
- package/test/site/public/page-3/logo-130x130.png +0 -0
- package/test/site/public/page-4/subpage/bundle.html.json +0 -1
- package/test/site/public/page-4/subpage/bundle.js +0 -2
- package/test/site/public/page-4/subpage/bundle.js.gz +0 -0
- package/test/site/public/page-4/subpage/index.html +0 -31
- package/test/site/public/sparoots.json +0 -5
- package/test/site/public/worker.js +0 -3
- package/test/site/public/worker.js.gz +0 -0
- package/test/site/server/index.js +0 -16
- /package/src/{build-pi → webflo-build}/esbuild-plugin-uselive-transform.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/Client.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/Server.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/client/Worker.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/client/index.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/index.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/server/Headers.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/server/Redirects.js +0 -0
- /package/src/{config-pi → webflo-config}/runtime/server/index.js +0 -0
- /package/src/{deployment-pi → webflo-deployment}/util.js +0 -0
- /package/{test/site/public/page-4/subpage/bundle.html → src/webflo-exports/index.js} +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/.gitignore +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/.webqit/webflo/client.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/.webqit/webflo/layout.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/app/handler.server.js +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/app/page.html +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/package.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/public/assets/app.css +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/public/index.html +0 -0
- /package/src/{init-pi → webflo-init}/templates/pwa/public/manifest.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/.gitignore +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/.webqit/webflo/client.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/.webqit/webflo/layout.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/app/handler.server.js +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/app/page.html +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/package.json +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/public/assets/app.css +0 -0
- /package/src/{init-pi → webflo-init}/templates/web/public/index.html +0 -0
- /package/src/{runtime-pi → webflo-runtime}/AppBootstrap.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/AppRuntime.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/index.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/ClientSideWorkport.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/DeviceCapabilities.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/WebfloClient.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/WebfloRootClientA.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/WebfloRootClientB.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/WebfloSubClient.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/index.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-client/webflo-devmode.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/ClientPortMixin.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/ClientRequestPort001.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/ClientRequestPort010.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/ClientRequestPort100.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/WebfloTenancy001.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-messaging/WebfloTenant001.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpCookies101.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpCookies110.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpEvent111.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpKeyvalInterface.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpSession001.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpSession110.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpThread111.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/HttpUser111.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/KeyvalsFactory001.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/KeyvalsFactory110.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/KeyvalsFactoryInterface.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-routing/WebfloRouter111.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-server/index.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-server/webflo-devmode.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-worker/WebfloWorker.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-worker/WorkerSideWorkport.js +0 -0
- /package/src/{runtime-pi → webflo-runtime}/webflo-worker/index.js +0 -0
- /package/src/{services-pi → webflo-services}/cert/http-cleanup-hook.js +0 -0
- /package/src/{services-pi → webflo-services}/cert/index.js +0 -0
- /package/src/{services-pi → webflo-services}/index.js +0 -0
- /package/src/{services-pi → webflo-services}/push/index.js +0 -0
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"vanila-javascript"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://webqit.io/tooling/webflo",
|
|
15
|
-
"version": "0.20.
|
|
15
|
+
"version": "0.20.35",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -22,10 +22,16 @@
|
|
|
22
22
|
"url": "https://github.com/webqit/webflo/issues"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
|
-
"main": "./src/index.js",
|
|
25
|
+
"main": "./src/webflo-exports/index.js",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": "./src/webflo-exports/index.js",
|
|
28
|
+
"./*": "./src/webflo-exports/*/index.js",
|
|
29
|
+
"./*.js": "./src/webflo-exports/*.js"
|
|
30
|
+
},
|
|
26
31
|
"scripts": {
|
|
27
32
|
"test": "echo \"Nothing to test yet\"",
|
|
28
33
|
"build": "echo \"Nothing to build yet\"",
|
|
34
|
+
"build:test": "esbuild test/browser/*.src.js --bundle --minify --sourcemap --outdir=test/browser --entry-names=[name].build",
|
|
29
35
|
"preversion": "npm run test",
|
|
30
36
|
"postversion": "git push && git push --tags",
|
|
31
37
|
"version:next": "npm version prerelease --preid=next",
|
|
@@ -51,7 +57,7 @@
|
|
|
51
57
|
"@webqit/util": "^0.8.11",
|
|
52
58
|
"chokidar": "^4.0.3",
|
|
53
59
|
"dotenv": "^16.4.7",
|
|
54
|
-
"esbuild": "^0.14.
|
|
60
|
+
"esbuild": "^0.14.54",
|
|
55
61
|
"fast-glob": "^3.3.3",
|
|
56
62
|
"idb": "^8.0.3",
|
|
57
63
|
"mime-types": "^2.1.33",
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as config from './config
|
|
2
|
-
import * as deployment from './deployment
|
|
3
|
-
import * as runtime from './runtime
|
|
4
|
-
import * as services from './services
|
|
5
|
-
import * as
|
|
6
|
-
import * as build from './build
|
|
1
|
+
import * as config from './webflo-config/index.js';
|
|
2
|
+
import * as deployment from './webflo-deployment/index.js';
|
|
3
|
+
import * as runtime from './webflo-runtime/index.js';
|
|
4
|
+
import * as services from './webflo-services/index.js';
|
|
5
|
+
import * as init from './webflo-init/index.js';
|
|
6
|
+
import * as build from './webflo-build/index.js';
|
|
7
7
|
|
|
8
8
|
export { CLIContext } from './CLIContext.js';
|
|
9
9
|
export {
|
|
@@ -11,6 +11,6 @@ export {
|
|
|
11
11
|
deployment,
|
|
12
12
|
runtime,
|
|
13
13
|
services,
|
|
14
|
-
|
|
14
|
+
init,
|
|
15
15
|
build,
|
|
16
16
|
}
|
|
@@ -8,9 +8,9 @@ import { _afterLast, _beforeLast } from '@webqit/util/str/index.js';
|
|
|
8
8
|
import { _isObject, _isArray } from '@webqit/util/js/index.js';
|
|
9
9
|
import { jsFile } from '@webqit/backpack/src/dotfile/index.js';
|
|
10
10
|
import { URLPatternPlus } from '@webqit/url-plus';
|
|
11
|
-
import { bootstrap as serverBootstrap } from '../runtime
|
|
12
|
-
import { bootstrap as clientBootstrap } from '../runtime
|
|
13
|
-
import { bootstrap as workerBootstrap } from '../runtime
|
|
11
|
+
import { bootstrap as serverBootstrap } from '../webflo-runtime/webflo-server/bootstrap.js';
|
|
12
|
+
import { bootstrap as clientBootstrap } from '../webflo-runtime/webflo-client/bootstrap.js';
|
|
13
|
+
import { bootstrap as workerBootstrap } from '../webflo-runtime/webflo-worker/bootstrap.js';
|
|
14
14
|
import { UseLiveTransform } from './esbuild-plugin-uselive-transform.js';
|
|
15
15
|
import { CLIContext } from '../CLIContext.js';
|
|
16
16
|
|
|
@@ -83,7 +83,7 @@ function declareRoutes({ $context, $source, bootstrap }) {
|
|
|
83
83
|
|
|
84
84
|
function writeImportWebflo($source, which) {
|
|
85
85
|
const importUrl = Url.fileURLToPath(import.meta.url);
|
|
86
|
-
const importPath = Path.join(Path.dirname(importUrl), `../runtime
|
|
86
|
+
const importPath = Path.join(Path.dirname(importUrl), `../webflo-runtime/webflo-${which}/index.js`);
|
|
87
87
|
$source.imports[importPath] = `{ start }`;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @imports
|
|
4
|
-
*/
|
|
5
1
|
import Fs from 'fs';
|
|
6
2
|
import Path from 'path';
|
|
7
3
|
import SimpleGit from 'simple-git';
|
|
@@ -11,16 +7,10 @@ import { _beforeLast } from '@webqit/util/str/index.js';
|
|
|
11
7
|
import { _isObject, _isNumeric } from '@webqit/util/js/index.js';
|
|
12
8
|
import Webhooks from '@octokit/webhooks';
|
|
13
9
|
|
|
14
|
-
/**
|
|
15
|
-
* @desc
|
|
16
|
-
*/
|
|
17
10
|
export const desc = {
|
|
18
11
|
deploy: 'Deploy project from a remote origin.',
|
|
19
12
|
};
|
|
20
13
|
|
|
21
|
-
/**
|
|
22
|
-
* @deploy
|
|
23
|
-
*/
|
|
24
14
|
export async function deploy(origin) {
|
|
25
15
|
const cx = this || {};
|
|
26
16
|
if (!cx.config.deployment?.Origins) {
|
|
@@ -149,9 +139,6 @@ export async function deploy(origin) {
|
|
|
149
139
|
|
|
150
140
|
}
|
|
151
141
|
|
|
152
|
-
/**
|
|
153
|
-
* @hook
|
|
154
|
-
*/
|
|
155
142
|
export async function webhook(httpEvent, router, next) {
|
|
156
143
|
const cx = this || {};
|
|
157
144
|
if (!cx.config.deployment?.Origins) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../webflo-runtime/webflo-client/webflo-elements.js';
|
|
@@ -3,7 +3,7 @@ import Fs2 from 'fs/promises';
|
|
|
3
3
|
import Path from 'path';
|
|
4
4
|
import { exec } from 'child_process';
|
|
5
5
|
import { _toTitle } from '@webqit/util/str/index.js';
|
|
6
|
-
import { readInitConfig } from '../deployment
|
|
6
|
+
import { readInitConfig } from '../webflo-deployment/util.js';
|
|
7
7
|
import { CLIContext } from '../CLIContext.js';
|
|
8
8
|
|
|
9
9
|
export const desc = {
|