@milkio/template-milkio 1.0.0-beta.202 → 1.0.0-beta.203

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 akirarika
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 akirarika
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- #!/usr/bin/env node
2
-
3
- console.log("");
4
- console.log("╔══════════════════════════════════════════════════════════════════╗");
5
- console.log("║ TEMPLATE NOTICE ║");
6
- console.log("╠══════════════════════════════════════════════════════════════════╣");
7
- console.log("║ This is a template file - no need to run this script directly. ║");
8
- console.log("║ You can copy the contents from the 'template' directory to use ║");
9
- console.log("║ as a starting point for your own implementation. ║");
10
- console.log("║ ║");
11
- console.log("║ Usage: ║");
12
- console.log("║ • Copy template files to your project directory ║");
13
- console.log("║ • Customize according to your specific requirements ║");
14
- console.log("║ • Follow the established patterns and structure ║");
15
- console.log("╚══════════════════════════════════════════════════════════════════╝");
16
- console.log("");
17
-
1
+ #!/usr/bin/env node
2
+
3
+ console.log("");
4
+ console.log("╔══════════════════════════════════════════════════════════════════╗");
5
+ console.log("║ TEMPLATE NOTICE ║");
6
+ console.log("╠══════════════════════════════════════════════════════════════════╣");
7
+ console.log("║ This is a template file - no need to run this script directly. ║");
8
+ console.log("║ You can copy the contents from the 'template' directory to use ║");
9
+ console.log("║ as a starting point for your own implementation. ║");
10
+ console.log("║ ║");
11
+ console.log("║ Usage: ║");
12
+ console.log("║ • Copy template files to your project directory ║");
13
+ console.log("║ • Customize according to your specific requirements ║");
14
+ console.log("║ • Follow the established patterns and structure ║");
15
+ console.log("╚══════════════════════════════════════════════════════════════════╝");
16
+ console.log("");
17
+
18
18
  export { };
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
- "name": "@milkio/template-milkio",
3
- "version": "1.0.0-beta.202",
4
- "keywords": [
5
- "template"
6
- ],
7
- "type": "module",
8
- "exports": "./index.mjs",
9
- "dependencies": {},
10
- "files": [
11
- "template",
12
- "index.mjs",
13
- "LICENSE"
14
- ]
2
+ "name": "@milkio/template-milkio",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "https://github.com/akirarika/milkio"
6
+ },
7
+ "version": "1.0.0-beta.203",
8
+ "keywords": [
9
+ "template"
10
+ ],
11
+ "type": "module",
12
+ "exports": "./index.mjs",
13
+ "dependencies": {},
14
+ "files": [
15
+ "template",
16
+ "index.mjs",
17
+ "LICENSE"
18
+ ]
15
19
  }
@@ -1,9 +1,9 @@
1
- import { test } from "vitest";
2
- import { astra } from "../utils/astra";
3
-
4
- test("adjust", async () => {
5
- const [context, reject, world] = await astra.createMirrorWorld(import.meta.url);
6
- await world.execute("/", {
7
- generateParams: true
8
- });
1
+ import { test } from "vitest";
2
+ import { astra } from "../utils/astra";
3
+
4
+ test("adjust", async () => {
5
+ const [context, reject, world] = await astra.createMirrorWorld(import.meta.url);
6
+ await world.execute("/", {
7
+ generateParams: true
8
+ });
9
9
  });
@@ -1,16 +1,16 @@
1
- import type { MilkioContext, MilkioMeta } from "../../.milkio/declares";
2
-
3
- export const meta: MilkioMeta = {
4
- onlyVip: true,
5
- }
6
-
7
- export async function handler(
8
- context: MilkioContext,
9
- params: {},
10
- ) {
11
- const message = `Hello world! UwU`;
12
-
13
- return {
14
- message
15
- }
1
+ import type { MilkioContext, MilkioMeta } from "../../.milkio/declares";
2
+
3
+ export const meta: MilkioMeta = {
4
+ onlyVip: true,
5
+ }
6
+
7
+ export async function handler(
8
+ context: MilkioContext,
9
+ params: {},
10
+ ) {
11
+ const message = `Hello world! UwU`;
12
+
13
+ return {
14
+ message
15
+ }
16
16
  };
@@ -1,14 +1,14 @@
1
- import { createAstra } from "@milkio/astra";
2
- import { createStargate } from "@milkio/stargate";
3
- import type { generated } from "../../.milkio/index.ts";
4
-
5
- export const stargate = await createStargate<typeof generated>({
6
- baseUrl: "http://localhost:9000",
7
- });
8
-
9
- export const astra = await createAstra({
10
- stargate,
11
- bootstrap: async () => {
12
- return {}
13
- },
14
- });
1
+ import { createAstra } from "@milkio/astra";
2
+ import { createStargate } from "@milkio/stargate";
3
+ import type { generated } from "../../.milkio/index.ts";
4
+
5
+ export const stargate = await createStargate<typeof generated>({
6
+ baseUrl: "http://localhost:9000",
7
+ });
8
+
9
+ export const astra = await createAstra({
10
+ stargate,
11
+ bootstrap: async () => {
12
+ return {}
13
+ },
14
+ });
package/template/index.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { createWorld, type MilkioInit } from "milkio";
2
- import { configSchema } from "./.milkio/config-schema.ts";
3
- import { generated } from "./.milkio/index.ts";
4
-
5
- export async function create(options: MilkioInit) {
6
- const world = await createWorld(generated, configSchema, {
7
- ...options,
8
- bootstraps: [],
9
- });
10
-
11
- return world;
12
- }
1
+ import { createWorld, type MilkioInit } from "milkio";
2
+ import { configSchema } from "./.milkio/config-schema.ts";
3
+ import { generated } from "./.milkio/index.ts";
4
+
5
+ export async function create(options: MilkioInit) {
6
+ const world = await createWorld(generated, configSchema, {
7
+ ...options,
8
+ bootstraps: [],
9
+ });
10
+
11
+ return world;
12
+ }
@@ -1,14 +1,14 @@
1
1
  {
2
- "name": "REPLACE-YOUR-REPOSITORY-NAME",
3
- "exports": "./index.ts",
4
- "type": "module",
5
- "private": true,
6
- "scripts": {
7
- "dev": "vite dev",
8
- "build": "vite build"
9
- },
10
- "devDependencies": {},
11
- "peerDependencies": {
12
- "typescript": "^5.9.3"
13
- }
2
+ "name": "@milkio/milkio",
3
+ "exports": "./index.ts",
4
+ "type": "module",
5
+ "private": true,
6
+ "scripts": {
7
+ "dev": "vite dev",
8
+ "build": "vite build"
9
+ },
10
+ "devDependencies": {},
11
+ "peerDependencies": {
12
+ "typescript": "^5.9.3"
13
+ }
14
14
  }
@@ -1,17 +1,17 @@
1
- import { defineConfig } from "vite";
2
- import { useVitePluginMilkio } from "@milkio/vite-plugin-milkio";
3
-
4
- export default defineConfig(async () => {
5
- return {
6
- server: {
7
- port: 9000,
8
- },
9
- build: {
10
- manifest: true,
11
- sourcemap: true,
12
- },
13
- resolve: {
14
- },
15
- plugins: [useVitePluginMilkio()],
16
- };
17
- });
1
+ import { defineConfig } from "vite";
2
+ import { useVitePluginMilkio } from "@milkio/vite-plugin-milkio";
3
+
4
+ export default defineConfig(async () => {
5
+ return {
6
+ server: {
7
+ port: 9000,
8
+ },
9
+ build: {
10
+ manifest: true,
11
+ sourcemap: true,
12
+ },
13
+ resolve: {
14
+ },
15
+ plugins: [useVitePluginMilkio()],
16
+ };
17
+ });
@@ -1,5 +1,5 @@
1
- import { defineProject } from 'vitest/config'
2
-
3
- export default defineProject({
4
- test: {},
5
- })
1
+ import { defineProject } from 'vitest/config'
2
+
3
+ export default defineProject({
4
+ test: {},
5
+ })