-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[p5.js 2.0 RFC Proposal]: Build and test system update #7013
Comments
Hi, first time actually trying to contribute to p5 specifically, taking a look at how we might handle this task before diving in. |
@PimTournaye Sorry for the late reply as I've been working on other stuff at the moment. Also related is that we are not at the stage where we are looking for someone to work on this part just yet, the build system are all setup and running so no work needed while the test will require the refactoring work I'm doing to be completed first. Thanks for you interest anyway, do have a look at other open issues and see if there are anything that you may be able to help with! |
Some notes for test related tasks:
|
Increasing access
A modern and efficient build and test system significantly reduces the time and compute resource necessary to run build and tests of p5.js. Utilizing current best practice around JavaScript development also enables contributors to get familiar with JavaScript development through working on p5.js.
Which types of changes would be made?
Most appropriate sub-area of p5.js?
What's the problem?
Current build and test of p5.js has not seen significant updates for awhile and there are several issues that can be improved upon:
What's the solution?
The build system for p5.js will be updated to use Rollup, development server will use Vite, and the test runner will use Vitest.
index.html
file is added to the repo for using this development server.Also see #6716 for some of the systems considered.
To do
In conjuction with refactoring and modularization, the build need to be updated as necessary.
The Vite development server can benefit from a more comprehensive
index.html
that includes common visual regression cases that contributors can check while they work on the code base.The majority of pending work will be to update all tests to work with Vitest. The priority being all the existing unit tests. Visual tests may be added after.
Pros (updated based on community comments)
Cons (updated based on community comments)
Proposal status
Under review
The text was updated successfully, but these errors were encountered: