Make build-deps-for check for Bazel dependencies transitively instead of just on the packages passed to it. Additionally, change the behavior of `build-deps-for` so that when it is passed a Bazel package, it will directly build the package instead of building just its dependencies.
Co-authored-by: Linchenn <40653845+Linchenn@users.noreply.github.com>
Improve link_package speed by only building the dependencies that are required and by building them all in a single bazel build command.
Remove the link_package_core package, which is no longer needed now that link_package can build just the required dependencies.
DEV
INTERNAL
* Build tfjs-backend-webgpu with Bazel
* update
* bazel format
* use node:11 for yarn test-ci
* Revert "use node:11 for yarn test-ci"
This reverts commit 46b2e6ddd2f7afb08e402a4d534b4371bb007be5.
* add bazel test and test-dev
* update commands in package.json
* rebase
* bazel lint
* update setup_test structure
* save
* Use central `yarn lint` instead of mono webgpu backend
* Make WebGPU local testing run chrome with flag
* update yarn.lock
* bazel format
* skip browserstack testing for WebGPU
* update dependency
* Address comments
* lint
* lint
* update tsconfig.test.json
* Address Matt's comments
* init build file
* migrate tfjs-data to bazel
* fix tests
* skip mediaDevices tests if it is null
* test on chrome only
* addressed comments
* fix typo
* fixed snippet tests
The demo was broken because the wasm files (from the tfjs-tflie package) were not copied to the build target directory so the demo cannot load the wasm loader/binary (server would return a 404 html page).
This PR added the missing staticFiles object to package.json in order to specify which source directory to copy files from to the build target directory (dist/). This functionality is supported by the parcel-plugin-static-files-copy npm package which is already there.
This reverts commit 86ad5e0 and resolves conflicts. The WebGL Bazel PR had an issue that wasn't caught in code review (my bad!) that prevents tests from running correctly. Reverting it for now is likely the fastest way to unblock the next release.
Fixes#5418Reopens#5277
* Build tfjs-backend-webgl with Bazel
* Remove tfjs-backend-webgl from package_dependencies
* Remove nodejs test
* fix lint
* Update downstream dependencies
* Rename main and module in package.json
* Add webgl backend test target
This PR builds tfjs-core and tfjs-backend-cpu using Bazel and makes the build outputs available to the other packages in the monorepo. It also sets up Bazel rules and macros that facilitate converting other packages in the monorepo to Bazel. For more details, see #5133.