-
Notifications
You must be signed in to change notification settings - Fork 1
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
Demos #2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Set the "target" option to "es2017" - Set the "module" option to "ESNext" - Set the "moduleResolution" option to "Node" - Enable esModuleInterop
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.
…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.
It doesn't get much more minimal than this
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.
- Add "engines" field to specify minimum required Node version - Set "node" to ">=19" - Enable strict enforcement of engine requirements
- 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
This commit adds the repository URL to the package.json file. The repository URL is set to "https://github.com/GoogleChromeLabs/breadboard-samples".
- Use tsconfig.minimal.json as base configuration - Update compilerOptions to include target and moduleResolution properties
This commit adds the `cache: "yarn"` option to the GitHub Actions workflow file, enabling caching of Yarn dependencies for faster builds.
- 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.
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.
- 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.
- 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.
- 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.
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.
- 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
- Added the job name to include the demo and node version information for better clarity and organization.
- 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
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
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.
…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
- Added "start" script to run the start command for all workspaces - Added "watch" script to run the watch command for all workspaces
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.
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.
This commit adds the @exadev/breadboard-kits dependency to the package.json file in the Breadboard Walkthrough sample.
- Set "noEmit" to true - Change "module" to "NodeNext" - Change "moduleResolution" to "NodeNext"
- 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
- 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.
- 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.
- 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.
PaulKinlan
approved these changes
Nov 20, 2023
- Updated "@types/node" to version "^20.9.2" - Updated "typescript" to version "^5.2.2"
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.