Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-eslint-config";
import config from "@nanoforge-dev/utils-eslint-config";

export default config;
369 changes: 129 additions & 240 deletions example/pong/bun.lock

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions example/pong/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nanoforge-example-template",
"version": "1.0.0",
"version": "0.0.0",
"description": "NanoForge Loader - Web",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"license": "MIT",
Expand Down Expand Up @@ -33,15 +33,18 @@
"taze": "taze major -w",
"lint-staged": "lint-staged"
},
"dependencies": {
"@nanoforge-dev/asset-manager": "workspace:^",
"@nanoforge-dev/common": "workspace:^",
"@nanoforge-dev/config": "workspace:^",
"@nanoforge-dev/core": "workspace:^",
"@nanoforge-dev/ecs": "workspace:^",
"@nanoforge-dev/graphics-2d": "workspace:^",
"@nanoforge-dev/input": "workspace:^",
"@nanoforge-dev/sound": "workspace:^"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@nanoforge/asset-manager": "workspace:^",
"@nanoforge/common": "workspace:^",
"@nanoforge/config": "workspace:^",
"@nanoforge/core": "workspace:^",
"@nanoforge/ecs": "workspace:^",
"@nanoforge/graphics-2d": "workspace:^",
"@nanoforge/sound": "workspace:^",
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
"@types/bun": "latest",
"eslint": "^9.39.1",
Expand Down
2 changes: 1 addition & 1 deletion example/pong/src/collisions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Registry } from "@nanoforge/ecs";
import { type Registry } from "@nanoforge-dev/ecs";

import { Hitbox, Position } from "./components";

Expand Down
4 changes: 2 additions & 2 deletions example/pong/src/components.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Graphics } from "@nanoforge/graphics-2d";
import type { InputEnum } from "@nanoforge/input";
import type { Graphics } from "@nanoforge-dev/graphics-2d";
import type { InputEnum } from "@nanoforge-dev/input";

import { layer } from "./index";

Expand Down
12 changes: 6 additions & 6 deletions example/pong/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type IRunOptions } from "@nanoforge/common";
import { NanoforgeFactory } from "@nanoforge/core";
import { ECSLibrary } from "@nanoforge/ecs";
import { Graphics, Graphics2DLibrary } from "@nanoforge/graphics-2d";
import { InputEnum } from "@nanoforge/input";
import { SoundLibrary } from "@nanoforge/sound";
import { type IRunOptions } from "@nanoforge-dev/common";
import { NanoforgeFactory } from "@nanoforge-dev/core";
import { ECSLibrary } from "@nanoforge-dev/ecs";
import { Graphics, Graphics2DLibrary } from "@nanoforge-dev/graphics-2d";
import { InputEnum } from "@nanoforge-dev/input";
import { SoundLibrary } from "@nanoforge-dev/sound";

import {
Bounce,
Expand Down
8 changes: 4 additions & 4 deletions example/pong/src/systems.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Context } from "@nanoforge/common";
import { type Registry } from "@nanoforge/ecs";
import { type InputLibrary } from "@nanoforge/input";
import { type SoundLibrary } from "@nanoforge/sound";
import { type Context } from "@nanoforge-dev/common";
import { type Registry } from "@nanoforge-dev/ecs";
import { type InputLibrary } from "@nanoforge-dev/input";
import { type SoundLibrary } from "@nanoforge-dev/sound";

import { checkCollisions } from "./collisions";
import {
Expand Down
363 changes: 126 additions & 237 deletions example/template/bun.lock

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions example/template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nanoforge-example-template",
"version": "1.0.0",
"version": "0.0.0",
"description": "NanoForge Loader - Web",
"homepage": "https://github.com/NanoForge-dev/Loader#readme",
"license": "MIT",
Expand Down Expand Up @@ -33,15 +33,18 @@
"taze": "taze major -w",
"lint-staged": "lint-staged"
},
"dependencies": {
"@nanoforge-dev/asset-manager": "workspace:^",
"@nanoforge-dev/common": "workspace:^",
"@nanoforge-dev/config": "workspace:^",
"@nanoforge-dev/core": "workspace:^",
"@nanoforge-dev/ecs": "workspace:^",
"@nanoforge-dev/graphics-2d": "workspace:^",
"@nanoforge-dev/input": "workspace:^",
"@nanoforge-dev/sound": "workspace:^"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@nanoforge/asset-manager": "workspace:^",
"@nanoforge/common": "workspace:^",
"@nanoforge/config": "workspace:^",
"@nanoforge/core": "workspace:^",
"@nanoforge/ecs": "workspace:^",
"@nanoforge/graphics-2d": "workspace:^",
"@nanoforge/sound": "workspace:^",
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
"@types/bun": "latest",
"eslint": "^9.39.1",
Expand Down
10 changes: 5 additions & 5 deletions example/template/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AssetManagerLibrary } from "@nanoforge/asset-manager";
import { type IRunOptions } from "@nanoforge/common";
import { NanoforgeFactory } from "@nanoforge/core";
import { ECSLibrary } from "@nanoforge/ecs";
import { Graphics2DLibrary } from "@nanoforge/graphics-2d";
import {AssetManagerLibrary} from "@nanoforge-dev/asset-manager";
import {type IRunOptions} from "@nanoforge-dev/common";
import {NanoforgeFactory} from "@nanoforge-dev/core";
import {ECSLibrary} from "@nanoforge-dev/ecs";
import {Graphics2DLibrary} from "@nanoforge-dev/graphics-2d";

export const app = NanoforgeFactory.createClient();

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoforge/nanoforge",
"version": "1.0.0",
"name": "@nanoforge-dev/nanoforge",
"version": "0.0.1",
"description": "NanoForge Engine",
"homepage": "https://github.com/NanoForge-dev/Engine#readme",
"license": "MIT",
Expand All @@ -18,6 +18,7 @@
"type": "git",
"url": "git+https://github.com/NanoForge-dev/Engine.git"
},
"private": true,
"scripts": {
"build": "lerna run build",
"clean": "lerna run clean",
Expand All @@ -35,8 +36,8 @@
"devDependencies": {
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@nanoforge/utils-eslint-config": "workspace:^",
"@nanoforge/utils-prettier-config": "workspace:^",
"@nanoforge-dev/utils-eslint-config": "workspace:^",
"@nanoforge-dev/utils-prettier-config": "workspace:^",
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
"@types/node": "^24.10.1",
"eslint": "^9.39.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/asset-manager/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-eslint-config";
import config from "@nanoforge-dev/utils-eslint-config";

export default config;
10 changes: 5 additions & 5 deletions packages/asset-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoforge/asset-manager",
"version": "1.0.0",
"name": "@nanoforge-dev/asset-manager",
"version": "0.0.1",
"description": "NanoForge Engine - Asset Manager",
"homepage": "https://github.com/NanoForge-dev/Engine#readme",
"license": "MIT",
Expand Down Expand Up @@ -32,11 +32,11 @@
"test:unit": "jest --config ./jest.config.json"
},
"dependencies": {
"@nanoforge/common": "workspace:^"
"@nanoforge-dev/common": "workspace:^"
},
"devDependencies": {
"@nanoforge/utils-eslint-config": "workspace:^",
"@nanoforge/utils-prettier-config": "workspace:^",
"@nanoforge-dev/utils-eslint-config": "workspace:^",
"@nanoforge-dev/utils-prettier-config": "workspace:^",
"@types/jest": "^30.0.0",
"@types/node": "^24.10.1",
"jest": "^30.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/asset-manager/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-prettier-config";
import config from "@nanoforge-dev/utils-prettier-config";

export default config;
7 changes: 6 additions & 1 deletion packages/asset-manager/src/asset-manager.library.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { BaseAssetManagerLibrary, type InitContext, NfFile, NfNotFound } from "@nanoforge/common";
import {
BaseAssetManagerLibrary,
type InitContext,
NfFile,
NfNotFound,
} from "@nanoforge-dev/common";

export class AssetManagerLibrary extends BaseAssetManagerLibrary {
private _assets?: Map<string, string>;
Expand Down
6 changes: 3 additions & 3 deletions packages/asset-manager/test/asset-manager.library.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type IConfigRegistry, InitContext } from "@nanoforge/common";
import { EditableApplicationContext } from "@nanoforge/core/src/common/context/contexts/application.editable-context";
import { EditableLibraryManager } from "@nanoforge/core/src/common/library/manager/library.manager";
import { type IConfigRegistry, InitContext } from "@nanoforge-dev/common";
import { EditableApplicationContext } from "@nanoforge-dev/core/src/common/context/contexts/application.editable-context";
import { EditableLibraryManager } from "@nanoforge-dev/core/src/common/library/manager/library.manager";

import { AssetManagerLibrary } from "../src";

Expand Down
6 changes: 3 additions & 3 deletions packages/asset-manager/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "../../../tsconfig.spec.json",
"compilerOptions": {
"paths": {
"@nanoforge/common": ["./packages/common"],
"@nanoforge/core": ["./packages/core"],
"@nanoforge/core/*": ["./packages/core/*"]
"@nanoforge-dev/common": ["./packages/common"],
"@nanoforge-dev/core": ["./packages/core"],
"@nanoforge-dev/core/*": ["./packages/core/*"]
}
}
}
2 changes: 1 addition & 1 deletion packages/asset-manager/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outDir": ".",
"rootDir": ".",
"paths": {
"@nanoforge/common": ["../common"]
"@nanoforge-dev/common": ["../common"]
}
},
"exclude": ["node_modules", "dist", "test/**/*", "*.spec.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/common/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-eslint-config";
import config from "@nanoforge-dev/utils-eslint-config";

export default config;
8 changes: 4 additions & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoforge/common",
"version": "1.0.0",
"name": "@nanoforge-dev/common",
"version": "0.0.1",
"description": "NanoForge Engine - Common",
"homepage": "https://github.com/NanoForge-dev/Engine#readme",
"license": "MIT",
Expand Down Expand Up @@ -31,8 +31,8 @@
"taze": "taze major -w"
},
"devDependencies": {
"@nanoforge/utils-eslint-config": "workspace:^",
"@nanoforge/utils-prettier-config": "workspace:^",
"@nanoforge-dev/utils-eslint-config": "workspace:^",
"@nanoforge-dev/utils-prettier-config": "workspace:^",
"taze": "^19.9.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-prettier-config";
import config from "@nanoforge-dev/utils-prettier-config";

export default config;
2 changes: 1 addition & 1 deletion packages/config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-eslint-config";
import config from "@nanoforge-dev/utils-eslint-config";

export default config;
8 changes: 4 additions & 4 deletions packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoforge/config",
"version": "1.0.0",
"name": "@nanoforge-dev/config",
"version": "0.0.1",
"description": "NanoForge Engine - Config",
"homepage": "https://github.com/NanoForge-dev/Engine#readme",
"license": "MIT",
Expand Down Expand Up @@ -35,8 +35,8 @@
"class-validator": "^0.14.2"
},
"devDependencies": {
"@nanoforge/utils-eslint-config": "workspace:^",
"@nanoforge/utils-prettier-config": "workspace:^",
"@nanoforge-dev/utils-eslint-config": "workspace:^",
"@nanoforge-dev/utils-prettier-config": "workspace:^",
"taze": "^19.9.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-prettier-config";
import config from "@nanoforge-dev/utils-prettier-config";

export default config;
2 changes: 1 addition & 1 deletion packages/core/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-eslint-config";
import config from "@nanoforge-dev/utils-eslint-config";

export default config;
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoforge/core",
"version": "1.0.0",
"name": "@nanoforge-dev/core",
"version": "0.0.1",
"description": "NanoForge Engine - Core",
"homepage": "https://github.com/NanoForge-dev/Engine#readme",
"license": "MIT",
Expand Down Expand Up @@ -31,15 +31,15 @@
"taze": "taze major -w"
},
"dependencies": {
"@nanoforge/asset-manager": "workspace:^",
"@nanoforge/common": "workspace:^",
"@nanoforge/input": "workspace:^",
"@nanoforge-dev/asset-manager": "workspace:^",
"@nanoforge-dev/common": "workspace:^",
"@nanoforge-dev/input": "workspace:^",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2"
},
"devDependencies": {
"@nanoforge/utils-eslint-config": "workspace:^",
"@nanoforge/utils-prettier-config": "workspace:^",
"@nanoforge-dev/utils-eslint-config": "workspace:^",
"@nanoforge-dev/utils-prettier-config": "workspace:^",
"taze": "^19.9.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from "@nanoforge/utils-prettier-config";
import config from "@nanoforge-dev/utils-prettier-config";

export default config;
2 changes: 1 addition & 1 deletion packages/core/src/application/application-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
type INetworkLibrary,
type ISoundLibrary,
type LibraryHandle,
} from "@nanoforge/common";
} from "@nanoforge-dev/common";

import { EditableLibraryManager } from "../common/library/manager/library.manager";

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/application/nanoforge-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
type INetworkLibrary,
type IRunOptions,
NfNotInitializedException,
} from "@nanoforge/common";
} from "@nanoforge-dev/common";

import { EditableApplicationContext } from "../common/context/contexts/application.editable-context";
import { Core } from "../core/core";
Expand Down
6 changes: 5 additions & 1 deletion packages/core/src/application/nanoforge-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { type IGraphicsLibrary, type IInputLibrary, type ISoundLibrary } from "@nanoforge/common";
import {
type IGraphicsLibrary,
type IInputLibrary,
type ISoundLibrary,
} from "@nanoforge-dev/common";

import { NanoforgeApplication } from "./nanoforge-application";

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/application/nanoforge-factory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AssetManagerLibrary } from "@nanoforge/asset-manager";
import { InputLibrary } from "@nanoforge/input";
import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager";
import { InputLibrary } from "@nanoforge-dev/input";

import { type IApplicationOptions } from "./application-options.type";
import { NanoforgeClient } from "./nanoforge-client";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationContext } from "@nanoforge/common";
import { ApplicationContext } from "@nanoforge-dev/common";

import { type EditableLibraryManager } from "../../library/manager/library.manager";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ClearContext } from "@nanoforge/common";
import { ClearContext } from "@nanoforge-dev/common";

export class EditableClearContext extends ClearContext {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ExecutionContext } from "@nanoforge/common";
import { ExecutionContext } from "@nanoforge-dev/common";

export class EditableExecutionContext extends ExecutionContext {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InitContext } from "@nanoforge/common";
import { InitContext } from "@nanoforge-dev/common";

export class EditableInitContext extends InitContext {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LibraryContext, type LibraryStatusEnum } from "@nanoforge/common";
import { LibraryContext, type LibraryStatusEnum } from "@nanoforge-dev/common";

export class EditableLibraryContext extends LibraryContext {
setStatus(status: LibraryStatusEnum) {
Expand Down
Loading
Loading