Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos #2

Merged
merged 44 commits into from
Nov 20, 2023
Merged

Demos #2

merged 44 commits into from
Nov 20, 2023

Commits on Nov 14, 2023

  1. initial repo config

    Mearman committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    2ac315c View commit details
    Browse the repository at this point in the history
  2. Update tsconfig.json with target, module, and moduleResolution options

    - Set the "target" option to "es2017"
    - Set the "module" option to "ESNext"
    - Set the "moduleResolution" option to "Node"
    - Enable esModuleInterop
    Mearman committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    90448f2 View commit details
    Browse the repository at this point in the history
  3. Add code for creating a board and running it once

    This commit adds the code for creating a board, setting its title and description, as well as adding an input and output. It also wires the input to the output and runs the board once with a message of "Hello World". The result is logged to the console.
    Mearman committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    ecba56f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aaaa9c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Add .gitignore file for Visual Studio Code, macOS, Linux, Node.js, Wi…

    …ndows, and Yarn
    
    This commit adds a new .gitignore file with rules generated using the '.gitignore Generator' for Visual Studio Code. The rules include specific exclusions for macOS, Linux, Node.js, Windows, and Yarn. The file was created by the Toptal Gitignore API and can be edited at the provided URL.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    0c988f6 View commit details
    Browse the repository at this point in the history
  2. Add Hello World

    It doesn't get much more minimal than this
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    11c009c View commit details
    Browse the repository at this point in the history
  3. Add hello-world workflow

    This commit adds a new GitHub Actions workflow file for the "Hello World" project. The workflow is triggered on push, pull request, and manual dispatch events. It runs on Ubuntu latest and includes a matrix strategy for different Node.js versions (19.x, 20.x, 21.x). The steps include checking out the repository, setting up Node.js with the specified version and caching npm dependencies, installing dependencies, making the index.ts file executable, and running it.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    82efa4d View commit details
    Browse the repository at this point in the history
  4. Removed shebang line

    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    760b2ac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd028f2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3e0db56 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9424fc3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c5051f0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    985041c View commit details
    Browse the repository at this point in the history
  10. Update package.json with engine requirements

    - Add "engines" field to specify minimum required Node version
    - Set "node" to ">=19"
    - Enable strict enforcement of engine requirements
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    b2b2720 View commit details
    Browse the repository at this point in the history
  11. Update package.json with workspace fields

    - Added "name" field for the project name
    - Set "private" to true to prevent accidental publishing
    - Added "workspaces" field to include all files in the "./samples/*" directory
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    758d323 View commit details
    Browse the repository at this point in the history
  12. Add repository URL to package.json

    This commit adds the repository URL to the package.json file. The repository URL is set to "https://github.com/GoogleChromeLabs/breadboard-samples".
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    0c2c71b View commit details
    Browse the repository at this point in the history
  13. Add yarn

    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    63ab6dc View commit details
    Browse the repository at this point in the history
  14. Refactor tsconfig.json for Hello World sample

    - Use tsconfig.minimal.json as base configuration
    - Update compilerOptions to include target and moduleResolution properties
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    a53ffdc View commit details
    Browse the repository at this point in the history
  15. Update yarn cache

    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    e88b773 View commit details
    Browse the repository at this point in the history
  16. Add yarn caching to the GitHub Actions workflow

    This commit adds the `cache: "yarn"` option to the GitHub Actions workflow file, enabling caching of Yarn dependencies for faster builds.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    3ef4bbd View commit details
    Browse the repository at this point in the history
  17. Update package manager and build commands

    - Updated the workflow file to include a matrix for different package managers (yarn, npm) and node versions (19.x, 20.x, 21.x).
    - Modified the cache and install commands to use the selected package manager.
    - Changed the start command to build command using the selected package manager.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    50e3e32 View commit details
    Browse the repository at this point in the history
  18. Add workflow to run demos

    This commit adds a new GitHub Actions workflow file, demos.yml, which sets up jobs to run demos. The workflow is triggered on push, pull request, and manual dispatch events. The build job runs on ubuntu-latest and uses a matrix strategy for different package managers (yarn, npm), node versions (19.x, 20.x, 21.x), and directories ("samples/Hello World"). The steps include checking out the repository, setting up the specified Node.js version with caching for the package manager, installing dependencies using the package manager, and running the start script.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    86a9127 View commit details
    Browse the repository at this point in the history
  19. Update workspaces in package.json

    - Updated the "workspaces" field in package.json to include all subdirectories within the "./samples" directory.
    - This change allows for better organization and management of workspace dependencies.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    7ed137e View commit details
    Browse the repository at this point in the history
  20. Refactor directory structure for Hello World demo

    - Renamed working directory in the GitHub workflow from "samples/Hello World" to "samples/demos/Hello World"
    - Renamed files and directories:
      - samples/Hello World/index.ts -> samples/demos/Hello World/index.ts
      - samples/Hello World/package.json -> samples/demos/Hello World/package.json
      - samples/Hello World/tsconfig.json -> samples/demos/Hello World/tsconfig.json
    - Updated tsconfig.json file to reflect new file path for the extends property.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    4fff07c View commit details
    Browse the repository at this point in the history
  21. Update demos.yml and add Hello Multiple Inputs demo

    - Updated the demos.yml file to include two new directories for the demos: "samples/demos/Hello World" and "samples/demos/Hello Multiple Inputs".
    - Added a new file, index.ts, for the Hello Multiple Inputs demo.
    - Added a new package.json file for the Hello Multiple Inputs demo.
    - Added a new tsconfig.json file for the Hello Multiple Inputs demo.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    e23a736 View commit details
    Browse the repository at this point in the history
  22. Add code for Hello Multiple Outputs demo

    This commit adds the necessary code for the Hello Multiple Outputs demo. It includes a new TypeScript file `index.ts` that sets up a board with an input and two outputs. The input is wired to the two outputs, and when the board runs, it sends "Hello Part One!" to output one and "Hello Part Two!" to output two. The console logs the outputs.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    6884a5e View commit details
    Browse the repository at this point in the history
  23. Refactor workflow to use demo names as matrix variables

    - Changed the `directory` matrix variable to `demo`
    - Updated the values of the `demo` matrix variable to match the demo names
    - Modified the `working-directory` value in the run step to use the new `demo` matrix variable
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    d2e467a View commit details
    Browse the repository at this point in the history
  24. Add job name with demo and node version

    - Added the job name to include the demo and node version information for better clarity and organization.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    a4490dd View commit details
    Browse the repository at this point in the history
  25. Add new demos for specific outputs and nodes by ID

    - Added two new demo files, "Specific Outputs" and "Nodes by ID"
    - Updated the workflows file to include these new demos in the matrix
    - Created package.json and tsconfig.json files for each new demo
    - Updated yarn.lock with dependencies for the new demos
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    693951c View commit details
    Browse the repository at this point in the history
  26. Rename demos.yml to demos-run-each.yml

    Change name in workflow from "Run Demos" to "Run Each Demo"
    Update demo names in the workflow file
    Rename Hello Multiple Inputs directory and files to Multiple Inputs
    Rename Hello Multiple Outputs directory and files to Multiple Outputs
    Update tsconfig.json file for Multiple Outputs
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    cd2b4f3 View commit details
    Browse the repository at this point in the history
  27. Add workflow to run all demos

    This commit adds a new workflow file, `demos-run-all.yml`, which runs all demos. The workflow is triggered on push to the main branch, pull requests, and manual dispatch. It uses Ubuntu latest as the runner and has a matrix strategy for different node versions (19.x, 20.x, 21.x) and package managers (yarn, npm). The steps include checking out the code, setting up the specified Node.js version, installing dependencies with the respective package manager, and running the start command for each workspace using yarn or npm based on the package manager selected.
    Mearman committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    c823337 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. Update dependencies and scripts in package.json for Breadboard Walkth…

    …rough demos. Add new demo files for multiple inputs, multiple outputs, specific outputs, nodes by ID, one input multiple outputs, and multiple inputs one output. Update tsconfig.json file paths for the renamed demos. Delete package.json and tsconfig.json files for the deleted demos.
    
    Summary:
    - Updated dependencies and scripts in package.json
    - Added new demo files
    - Renamed demo files and updated tsconfig.json file paths
    - Deleted package.json and tsconfig.json files
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    a7ad13b View commit details
    Browse the repository at this point in the history
  2. Add start and watch scripts to package.json

    - Added "start" script to run the start command for all workspaces
    - Added "watch" script to run the watch command for all workspaces
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    3ac9b54 View commit details
    Browse the repository at this point in the history
  3. Implement multiple inputs and one output functionality

    This commit adds code to implement the functionality of having multiple inputs and one output in the Breadboard Walkthrough sample. The code sets up a board, creates an output node, and two input nodes. It then wires the input nodes to the output node. Finally, it runs a loop that handles input events and outputs the result when an output event occurs.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    46dd0a7 View commit details
    Browse the repository at this point in the history
  4. Implement one-input-multiple-outputs functionality

    This commit adds code to implement the functionality of having one input and multiple outputs in the Breadboard Walkthrough sample. It creates a new Board instance, defines two output nodes, and wires them to the input node. The code also includes logic to handle input and output events, printing the outputs to the console when they occur.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    8acd60f View commit details
    Browse the repository at this point in the history
  5. Add @exadev/breadboard-kits dependency

    This commit adds the @exadev/breadboard-kits dependency to the package.json file in the Breadboard Walkthrough sample.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    6581e31 View commit details
    Browse the repository at this point in the history
  6. Refactor tsconfig.json for Breadboard Walkthrough

    - Set "noEmit" to true
    - Change "module" to "NodeNext"
    - Change "moduleResolution" to "NodeNext"
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    756e7ad View commit details
    Browse the repository at this point in the history
  7. Refactor package.json and hello-worlds.ts

    - Refactored the "run-hello-worlds" script to "run-hello-world"
    - Refactored the "watch-hello-worlds" script to "watch-hello-world"
    - Renamed hello-worlds.ts to hello-world.ts
    - Updated imports in hello-world.ts
    - Added a title to the Board instance in hello-world.ts
    - Added a call to generateAndWriteCombinedMarkdown function
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    0965abf View commit details
    Browse the repository at this point in the history
  8. Add title to Board constructor

    - Added a `title` property to the `Board` constructor in multiple files.
    - The `title` is set using the base name of the current file path.
    - This change improves readability and organization of the code.
    
    exadev.util.files.generateAndWriteCombinedMarkdown(board, undefined, "src")
    
    - Updated the function call to generate and write combined markdown files.
    - The function now takes three arguments: `board`, `undefined`, and `"src"`.
    - This change ensures that the correct markdown files are generated and written.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    3b102e8 View commit details
    Browse the repository at this point in the history
  9. Update file paths for generating combined markdown

    - Updated the file paths in the code to generate and write combined markdown files.
    - Changed the output directory from "src" to "output" for all relevant files.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    f8f33d2 View commit details
    Browse the repository at this point in the history
  10. Refactor README.md to update demo links

    - Updated the links for each demo in the README.md file to point to their respective output files.
    - This change ensures that users can easily access the correct output files for each demo.
    Mearman committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    a2c3605 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3429e5b View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Update devDependencies in package.json

    - Updated "@types/node" to version "^20.9.2"
    - Updated "typescript" to version "^5.2.2"
    Mearman committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    867fcf7 View commit details
    Browse the repository at this point in the history
  2. Add fail-fast option to build strategy

    This commit adds the `fail-fast` option to the build strategy in the `.github/workflows/run-all.yml` file. This allows for a more flexible and customizable workflow by preventing early termination of jobs when one fails.
    Mearman committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    3b45e38 View commit details
    Browse the repository at this point in the history