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
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release

on:
push:
tags:
- "v*.*.*"
- "v*.*.*-pre"
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
name: Building stack
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
CHANGELOG.md
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ env:
EM_CACHE_FOLDER: "emsdk-cache"

jobs:
tests:
checkout:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout
uses: actions/checkout@v5

- name: "Setup pnpm"
uses: pnpm/action-setup@v4
# with:
# run_install: false

- name: "Setup node"
uses: actions/setup-node@v4
Expand All @@ -45,4 +41,4 @@ jobs:
run: pnpm test:unit

- name: "Run linter"
run: pnpm clean && pnpm lint
run: pnpm lint
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ dist
.yarn/install-state.gz
.pnp.*

# NX
.nx/
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
# Turbo
.turbo/

compile_commands.json
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pnpm fix
pnpm --no-install lint-staged
pnpm format
3 changes: 1 addition & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pnpm clean
pnpm lint
pnpm build
pnpm test
pnpm test:unit
14 changes: 12 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@ package-lock.json
yarn.lock
bun.lock

/.nx/cache
/.nx/workspace-data
packages/
example/
utils/
releases/

.turbo/
node_modules/
dist/
coverage/
CHANGELOG.md

emsdk-cache/
134 changes: 134 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
## [unreleased]

### Bug Fixes

- *(ecs)* Change jest workflow
- *(ecs)* Constructor are now binded
- *(ecs/sparse array)* No discard on const methods
- *(ecs/sparseArray)* Fix missing erase definition
- *(ecs)* Fix jest workflow and tests compile
- *(ecs)* Add type name verification for vars
- *(ecs)* Change type handling on lib ecs
- *(ecs)* Fix tests
- *(common)* Init lib order
- *(common)* Change is running
- *(graphics)* Fix display
- *(graphics)* Fix tests
- *(graphics)* Game loop
- *(game)* Delete bun.lock
- *(pong)* Delete custom framerate
- *(ecs)* Rename createEntity to spawnEnity
- *(exceptions)* Bad naming
- Change exception handling
- *(common)* Update exception imports and adjust formatting in abstract class
- *(graphics-2d, ecs)* Update type handling in vertex buffer and library init test
- *(music)* Versions issue

### Features

- Initial commit
- *(ecs/compilation)* Add basic makefile
- Add wasm compilation to package.json
- *(ecs/compilation)* Add wasm object creation
- *(ecs/wasm)* Emsdk installation script in Readme.md
- *(ecs/wasm)* Add basic test templated class
- *(ecs/wasm)* Emsdk installation script in Readme.md
- *(ecs)* Setup basic sparse array boiler plate code.
- *(ecs)* Add type generation in makefile
- *(ecs/sparseArray)* Add more functions to the sparse array
- *(ecs/sparseArray)* Add more functions to the sparse array
- Custom header
- Add core and common
- Add asset manager default in core
- *(ecs/registry)* Base regitry and simple tests:
- *(ecs/registry)* Systems handling and testing
- *(asset-manager)* Add base library
- *(asset-manager)* Add asset manager
- *(asset-manager)* Add tests
- *(ecs)* Modify ts rule to get types
- *(graphics-2d)* Add base library
- *(asset-manager)* Add wgsl handling
- *(asset-manager)* Add file return
- *(common)* Add templates to each get library functions
- *(graphics)* Add base component and circle component
- *(ecs/zipper)* Add indexed zipper and zipper with tests
- *(ecs)* Setup wasm to be loaded from path specified in ecs library
- *(ecs)* Add more methods to be exported by ecs library
- *(ecs/tsbindings)* Add the zipper functions to the library
- *(game)* Add template
- *(game)* Add graphics factory
- *(game)* Add width and height
- *(game)* Create pong example game
- *(template)* Add scripts to template
- *(example/pong)* Base velocity system clocked with a framerate limiter
- *(ecs)* Add type for components
- *(systems)* Add ts type for systems
- *(ecs)* Type getEntityComponent family of functions
- *(ecs/zipper)* Merge zipper in types
- *(graphics)* Add rectangle
- *(input)* Add input library
- *(core)* Add tickrate and fix runner
- *(game)* Create pong bounce system
- *(game)* Create pong players with background
- *(game)* Add inputs in pong
- *(graphics)* Add dynamic size handle of canvas
- *(common)* Add dependencies handler
- Add dependencies to current libs
- Add dependencies handling
- *(core)* Add default libraries to constructor
- *(sound)* Init basic sound library
- *(sound)* Add sound playing
- *(sound)* Add basic sound playing to example
- *(app)* Add the ability to mute and unmute sounds
- *(core)* Enhance type safety and execution context handling
- *(config)* Add initial configuration for libraries
- *(common, core, config)* Introduce configuration registry and validation system
- *(core)* Add `class-transformer` and `class-validator` dependencies for validation utilities
- *(music)* Init basic music library
- *(music)* Finish music library and add an interface for mutable libraries
- *(ci)* Add build step to GitHub Actions tests workflow
- *(example)* Update `pong` game mechanics and graphics integration
- *(systems)* Start adding context to systems
- *(ecs)* Add ecs context to the systems

### Miscellaneous Tasks

- Fix idea
- *(ecs)* Change idea name
- Add idea to common and core
- Add current state of graphics library
- Remove bun lock that was breaking unit tests
- *(husky)* Update pre-push and commit-msg scripts for pnpm compatibility
- *(config)* Update nx and gitignore configurations, adjust prettierignore rules
- *(example)* Update `pong` example to use workspace dependencies and refine configurations
- *(husky)* Simplify pre-push script by adjusting pnpm command
- Migrate to shared ESLint and Prettier configurations, remove package-specific configs
- Remove `pnpm-lock.yaml` to decouple dependency locking from the workspace configuration
- Migrate packages to shared ESLint and Prettier configs
- Remove unnecessary `@types/node` and `typescript` dependencies from `packages/input`
- Update Jest configs and refine tsconfig paths across packages
- *(example/pong)* Update dependencies, and migrate to shared ESLint & Prettier configs
- *(example/template)* Update dependency locking to workspace resolution
- Prepare first release

### Refactor

- *(graphics-2d)* Remove custom rendering core and replace with `Konva`

### Testing

- *(ecs/sparseArray)* Add unit tests for sparse array
- *(libs)* Include ConfigRegistry in library initialization test

### Build

- *(ecs)* Add standalone build and html and js build
- Update dependencies
- Upgrade dependencies and engines to latest versions

### Ci

- Setup tests ci
- Add linting to ci
- Branch name was on master isntead of main
- *(release)* Create a release workflow
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Supported Versions

| Version | Supported |
|---------|--------------------|
| ------- | ------------------ |
| all | :white_check_mark: |

## Reporting a Vulnerability
Expand Down
7 changes: 3 additions & 4 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
},
};
extends: ["@commitlint/config-conventional"],
rules: {},
};
Loading
Loading