arcanajs 2.3.0 → 2.3.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/framework/lib/index.d.ts
CHANGED
package/framework/lib/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// Component Exports
|
|
4
|
-
// ============================================================================
|
|
2
|
+
/// <reference path="./global.d.ts" />
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -21,6 +19,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
21
19
|
};
|
|
22
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
21
|
exports.NotFoundPage = exports.ErrorPage = void 0;
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// Component Exports
|
|
24
|
+
// ============================================================================
|
|
24
25
|
__exportStar(require("./shared/components/Body"), exports);
|
|
25
26
|
__exportStar(require("./shared/components/Head"), exports);
|
|
26
27
|
__exportStar(require("./shared/components/Link"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Body, Head, Page } from "arcanajs";
|
|
2
2
|
|
|
3
3
|
export default function HomePage() {
|
|
4
4
|
return (
|
|
@@ -304,7 +304,7 @@ export default function HomePage() {
|
|
|
304
304
|
</div>
|
|
305
305
|
<div className="text-white">npm run build</div>
|
|
306
306
|
</div>
|
|
307
|
-
<div className="mb-4">
|
|
307
|
+
<div className="mb-4">
|
|
308
308
|
<div className="text-gray-500 mb-1">
|
|
309
309
|
# Start production server
|
|
310
310
|
</div>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from "arcanajs/config";
|
|
2
|
+
import type { ArcanaJSUserConfig } from "arcanajs/types";
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* ArcanaJS Configuration
|
|
5
|
+
* ArcanaJS Configuration
|
|
3
6
|
*
|
|
4
7
|
* This file defines the configuration for your ArcanaJS application.
|
|
5
8
|
*
|
|
6
|
-
* @
|
|
9
|
+
* @see https://github.com/arcanajs/arcanajs for documentation
|
|
7
10
|
*/
|
|
8
|
-
export default {
|
|
11
|
+
export default defineConfig({
|
|
9
12
|
// Server configuration
|
|
10
13
|
server: {
|
|
11
14
|
// Port to run the server on
|
|
@@ -38,4 +41,4 @@ export default {
|
|
|
38
41
|
// Custom layout component (optional)
|
|
39
42
|
// layout: undefined,
|
|
40
43
|
},
|
|
41
|
-
};
|
|
44
|
+
} satisfies ArcanaJSUserConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcanajs",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "ArcanaJS Framework",
|
|
5
5
|
"main": "framework/lib/index.js",
|
|
6
6
|
"types": "framework/lib/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"bin"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "tsc -p tsconfig.json && cp src/lib/server/default-index.html framework/lib/server/ && cp src/lib/global.d.ts framework/lib/ && cp -r src/templates framework/ && cp src/templates/arcanajs.config.
|
|
38
|
+
"build": "tsc -p tsconfig.json && cp src/lib/server/default-index.html framework/lib/server/ && cp src/lib/global.d.ts framework/lib/ && cp -r src/templates framework/ && cp src/templates/arcanajs.config.ts framework/templates/ && echo '/// <reference path=\"./global.d.ts\" />' | cat - framework/lib/index.d.ts > temp && mv temp framework/lib/index.d.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@babel/core": "^7.23.0",
|