Commit graph

3 commits

Author SHA1 Message Date
efababe397 **feat(demo): add GitHub Pages demo script and update deployment workflow**
### Changes:
- **`demo/simplified-augmentations-gh-pages.js`**:
  - Added a new demo script showcasing simplified augmentations for GitHub Pages.
  - Includes examples for static and streaming data processing, WebSocket support, and dynamic augmentation loading.

- **`README.md`**:
  - Updated the demo link to point directly to `https://soulcraft-research.github.io/brainy/`.

- **`.github/workflows/deploy-demo.yml`**:
  - Enhanced the deployment workflow to include the `simplified-augmentations-gh-pages.js` file as the GitHub Pages demo entry point.
  - Added steps to copy and prepare required `dist` files during the build process.

- **`demo/index.html`**:
  - Dynamically adjusted the import path for the Brainy library to support both local and CDN environments.
  - Reformatted code for readability and alignment with deployment needs.

### Purpose:
Introduced a tailored demonstration script for GitHub Pages to highlight Brainy's streamlined augmentation features. Enhanced the deployment pipeline for better integration and seamless live demo experience.
2025-06-23 11:26:11 -07:00
dbfd760ecc **refactor(demo): update logging and function descriptions for consistency**
### Changes:
- **simplified-augmentations.js**:
  - Updated comments and console logs to replace "examples" with "demo" for consistent terminology.
  - Adjusted function description and logging messages to align with the recent folder structure changes.

- **Renamed**:
  - `examples/simplified-augmentations.js` → `demo/simplified-augmentations.js`.
  - `examples/demo.html` → `demo/index.html`.

### Purpose:
Revised terminology and logging outputs to reflect the updated folder structure and naming conventions. Improved clarity and consistency across file comments and logs.
2025-06-23 10:59:19 -07:00
37c4da58f7 **refactor: consolidate folder structure and improve compatibility**
### Changes:
- **rollup.config.js**:
  - Merged and reformatted `nodeBuiltins` definition for cleaner code.
  - Updated `input` path from `examples/browser_compatible_exports.ts` to `demo/browser_compatible_exports.ts`.
  - Reformatted `replace` plugin configuration for better readability.

- **.github/workflows/deploy-demo.yml**:
  - Updated deployment folder from `examples` to `demo`.

- **Renamed**:
  - `examples/browser_compatible_exports.ts` → `demo/browser_compatible_exports.ts`.

- **scripts/generate-version.js**:
  - Removed unnecessary semicolons for consistent formatting.

### Purpose:
Aligned folder structure by migrating from `examples` to `demo` for uniformity and better organization. Improved code readability and formatting across configurations and scripts.
2025-06-23 10:58:48 -07:00