arcanajs 2.1.1 → 2.1.3
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/cli/index.d.ts +1 -0
- package/framework/cli/index.js +107 -0
- package/framework/cli/webpack.config.d.ts +3 -0
- package/framework/cli/webpack.config.js +198 -0
- package/framework/lib/client/index.d.ts +2 -0
- package/framework/lib/client/index.js +40 -0
- package/framework/lib/global.d.ts +3 -0
- package/framework/lib/index.d.ts +17 -0
- package/framework/lib/index.js +33 -0
- package/framework/lib/server/ArcanaJSMiddleware.d.ts +16 -0
- package/framework/lib/server/ArcanaJSMiddleware.js +99 -0
- package/framework/lib/server/ArcanaJSServer.d.ts +21 -0
- package/framework/lib/server/ArcanaJSServer.js +140 -0
- package/framework/lib/server/ControllerBinder.d.ts +4 -0
- package/framework/lib/server/ControllerBinder.js +32 -0
- package/framework/lib/server/CsrfMiddleware.d.ts +2 -0
- package/framework/lib/server/CsrfMiddleware.js +34 -0
- package/framework/lib/server/DynamicRouter.d.ts +2 -0
- package/framework/lib/server/DynamicRouter.js +50 -0
- package/framework/lib/server/ResponseHandlerMiddleware.d.ts +27 -0
- package/framework/lib/server/ResponseHandlerMiddleware.js +30 -0
- package/framework/lib/server/Router.d.ts +94 -0
- package/framework/lib/server/Router.js +203 -0
- package/framework/lib/server/default-index.html +12 -0
- package/framework/lib/server.d.ts +6 -0
- package/framework/lib/server.js +28 -0
- package/framework/lib/shared/ArcanaJSApp.d.ts +11 -0
- package/framework/lib/shared/ArcanaJSApp.js +79 -0
- package/framework/lib/shared/components/Body.d.ts +6 -0
- package/framework/lib/shared/components/Body.js +11 -0
- package/framework/lib/shared/components/Head.d.ts +4 -0
- package/framework/lib/shared/components/Head.js +125 -0
- package/framework/lib/shared/components/Link.d.ts +6 -0
- package/framework/lib/shared/components/Link.js +17 -0
- package/framework/lib/shared/components/NavLink.d.ts +8 -0
- package/framework/lib/shared/components/NavLink.js +16 -0
- package/framework/lib/shared/components/Page.d.ts +6 -0
- package/framework/lib/shared/components/Page.js +16 -0
- package/framework/lib/shared/context/HeadContext.d.ts +6 -0
- package/framework/lib/shared/context/HeadContext.js +5 -0
- package/framework/lib/shared/context/PageContext.d.ts +1 -0
- package/framework/lib/shared/context/PageContext.js +5 -0
- package/framework/lib/shared/context/RouterContext.d.ts +13 -0
- package/framework/lib/shared/context/RouterContext.js +13 -0
- package/framework/lib/shared/core/ArcanaJSApp.d.ts +13 -0
- package/framework/lib/shared/core/ArcanaJSApp.js +98 -0
- package/framework/lib/shared/hooks/useDynamicComponents.d.ts +1 -0
- package/framework/lib/shared/hooks/useDynamicComponents.js +20 -0
- package/framework/lib/shared/hooks/useHead.d.ts +1 -0
- package/framework/lib/shared/hooks/useHead.js +7 -0
- package/framework/lib/shared/hooks/useLocation.d.ts +5 -0
- package/framework/lib/shared/hooks/useLocation.js +13 -0
- package/framework/lib/shared/hooks/usePage.d.ts +1 -0
- package/framework/lib/shared/hooks/usePage.js +7 -0
- package/framework/lib/shared/hooks/useParams.d.ts +1 -0
- package/framework/lib/shared/hooks/useParams.js +13 -0
- package/framework/lib/shared/hooks/useQuery.d.ts +1 -0
- package/framework/lib/shared/hooks/useQuery.js +9 -0
- package/framework/lib/shared/hooks/useRouter.d.ts +1 -0
- package/framework/lib/shared/hooks/useRouter.js +13 -0
- package/framework/lib/shared/utils/createSingletonContext.d.ts +11 -0
- package/framework/lib/shared/utils/createSingletonContext.js +21 -0
- package/package.json +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcanajs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "ArcanaJS Framework",
|
|
5
5
|
"main": "framework/lib/index.js",
|
|
6
6
|
"types": "framework/lib/index.d.ts",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"bin"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build
|
|
20
|
-
"build": "node bin/arcanajs.js build",
|
|
21
|
-
"dev": "node bin/arcanajs.js dev",
|
|
22
|
-
"start": "node bin/arcanajs.js start",
|
|
19
|
+
"build": "tsc -p tsconfig.lib.json && cp src/lib/server/default-index.html framework/lib/server/ && cp src/lib/global.d.ts framework/lib/",
|
|
20
|
+
"build:app": "node bin/arcanajs.js build",
|
|
21
|
+
"dev:app": "node bin/arcanajs.js dev",
|
|
22
|
+
"start:app": "node bin/arcanajs.js start",
|
|
23
23
|
"lint": "eslint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|