processing/p5.js

Docs: Remove legacy Grunt commands and transition fully to Vitest / npm scripts in dev-2.0

已關閉

#7,871 建立於 2025年6月4日

 (7 則留言) (1 個反應) (1 位負責人)JavaScript (3,178 個分叉)batch import
DocumentationHelp Wantedp5.js 2.0+

倉庫指標

星標
 (20,784 顆星)
PR 合併指標
 (平均合併 8天 13小時) (30 天內合併 45 個 PR)

描述

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.0

Web browser and version

Firefox

Operating system

Linux

Steps to reproduce this

In p5.js ≤ 1.x, repetitive tasks such as running unit tests were orchestrated through Grunt, with all task definitions living in a Gruntfile.js. Starting with the dev-2.0 branch we have removed Grunt entirely. The test suite now runs with Vitest.

However, several references to grunt … commands still exist across the codebase, These stale instructions can mislead contributors who expect Grunt to be available.

So, the task would be to replace each instance with the correct Vitest/ npm script invocation, or remove it if there is no modern equivalent.

Cleaning up these leftovers will make the contribution experience smoother and ensure our documentation accurately represents the 2.0 toolchain.

I already worked on the file unit_testing.md, so the next step would be to look for all other files which uses grunt and replace it with the correct docs.

貢獻者指南