miqro 1.7.23 → 1.7.24
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/cli.js +6 -6
- package/dist/cmds/serve.js +1 -4
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ const db_createmodel_1 = require("./cmds/db-createmodel");
|
|
|
24
24
|
const db_push_data_1 = require("./cmds/db-push-data");
|
|
25
25
|
const db_dump_data_1 = require("./cmds/db-dump-data");
|
|
26
26
|
const db_migrate_1 = require("./cmds/db-migrate");
|
|
27
|
-
|
|
27
|
+
const wc_cache_templates_1 = require("./cmds/wc-cache-templates");
|
|
28
28
|
// noinspection SpellCheckingInspection
|
|
29
29
|
(0, utils_1.mainCMD)({
|
|
30
30
|
["new"]: { section: "quick start", cb: new_1.mainJS, tabs: 5, description: `create a new project. ${new_1.usageJS}` },
|
|
@@ -70,11 +70,11 @@ console.log("asldkjdkla");
|
|
|
70
70
|
tabs: 5,
|
|
71
71
|
cb: serve_1.main, description: `serve static files. ${serve_1.usage}`
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
73
|
+
["generate:template:cache"]: {
|
|
74
|
+
section: "web components",
|
|
75
|
+
tabs: 6,
|
|
76
|
+
cb: wc_cache_templates_1.main, description: `generate a cache.json for webcomponents. ${wc_cache_templates_1.usage}`
|
|
77
|
+
},
|
|
78
78
|
["doc"]: {
|
|
79
79
|
section: "api documentation",
|
|
80
80
|
tabs: 5,
|
package/dist/cmds/serve.js
CHANGED
|
@@ -8,7 +8,6 @@ const tokenize_match_1 = require("@miqro/core/dist/common/tokenize-match");
|
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
exports.usage = `usage: [NODE_ENV=development] npx miqro serve [directory=./] [path=/] [--index404 ./index.html] [--proxy-cert-ignore] [--port 8080] [--proxy /api=https://host/api]`;
|
|
10
10
|
const main = () => {
|
|
11
|
-
console.log("asldkjdkla");
|
|
12
11
|
const flags = (0, utils_1.extractFlags)(process.argv.slice(3), {
|
|
13
12
|
flags: {
|
|
14
13
|
"index404Status": {
|
|
@@ -47,8 +46,6 @@ const main = () => {
|
|
|
47
46
|
}
|
|
48
47
|
const app = new core_1.App();
|
|
49
48
|
app.use((0, core_1.LoggerHandler)());
|
|
50
|
-
console.log("asldkjdkla");
|
|
51
|
-
console.dir(flags);
|
|
52
49
|
const proxyList = flags.flags.proxy instanceof Array ? flags.flags.proxy : [flags.flags.proxy];
|
|
53
50
|
for (const proxy of proxyList) {
|
|
54
51
|
if (proxy) {
|
|
@@ -74,7 +71,7 @@ const main = () => {
|
|
|
74
71
|
index404Status: flags.flags.index404Status ? parseInt(flags.flags.index404Status, 10) : undefined
|
|
75
72
|
}), path);
|
|
76
73
|
app.listen(PORT, () => {
|
|
77
|
-
console.log("serving " + directory + " on "
|
|
74
|
+
console.log("serving " + directory + " on http://localhost:%s%s", PORT, path);
|
|
78
75
|
});
|
|
79
76
|
};
|
|
80
77
|
exports.main = main;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miqro",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"author": "claukers",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@miqro/core": "^1.5.
|
|
21
|
-
"@miqro/parser": "^0.1.
|
|
20
|
+
"@miqro/core": "^1.5.21",
|
|
21
|
+
"@miqro/parser": "^0.1.4",
|
|
22
22
|
"@miqro/runner": "^1.2.8",
|
|
23
23
|
"@miqro/test": "^0.2.1",
|
|
24
24
|
"deep-diff": "1.0.2"
|