@mojojs/core 1.1.4 → 1.2.2
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/README.md
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
The [Mojolicious](https://mojolicious.org) real-time web framework for [Node.js](https://nodejs.org/). Written in
|
|
15
15
|
TypeScript. Meticulously designed for hypermedia-driven backend web services using all the latest JavaScript features.
|
|
16
16
|
|
|
17
|
-
If you want to stay up to date on the
|
|
18
|
-
[
|
|
17
|
+
If you want to stay up to date on the
|
|
18
|
+
[latest developments](https://github.com/mojolicious/mojo.js/blob/main/CHANGELOG.md) join us on
|
|
19
|
+
[Matrix](https://matrix.to/#/#mojo:matrix.org) or [IRC](https://web.libera.chat/#mojo).
|
|
19
20
|
|
|
20
21
|
## Features
|
|
21
22
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { version } from '../core.js';
|
|
1
2
|
import * as util from '../util.js';
|
|
2
3
|
/**
|
|
3
4
|
* Application generator command.
|
|
@@ -7,6 +8,7 @@ export default async function createLiteAppCommand(app, args) {
|
|
|
7
8
|
stdout.write('Generating single file application:\n');
|
|
8
9
|
await util.cliCreateFile(args[1] ?? 'index.js', liteApp);
|
|
9
10
|
await util.cliFixPackage();
|
|
11
|
+
await util.cliFixPackage({ dependencies: { '@mojojs/core': `^${version}` } });
|
|
10
12
|
stdout.write(tip);
|
|
11
13
|
}
|
|
12
14
|
createLiteAppCommand.description = 'Create single file application';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-lite-app.js","sourceRoot":"","sources":["../../src/cli/create-lite-app.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,oBAAoB,CAAC,GAAQ,EAAE,IAAc;IACzE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,MAAM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;AAEF,MAAM,GAAG,GAAG;;;CAGX,CAAC;AAEF,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojojs/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Real-time web framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mojojs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"form-data": "^4.0.0",
|
|
90
90
|
"js-yaml": "^4.1.0",
|
|
91
91
|
"mime-types": "^2.1.30",
|
|
92
|
-
"nopt": "^
|
|
92
|
+
"nopt": "^6.0.0",
|
|
93
93
|
"stack-utils": "^2.0.3",
|
|
94
94
|
"tough-cookie": "^4.0.0",
|
|
95
95
|
"ws": "^8.3.0"
|