Skip to content

fix: include gitignore files in packed plugin templates - #36

Merged
heoblitz merged 1 commit into
toss:mainfrom
MycroCosmo:fix/generator-gitignore
Nov 12, 2026
Merged

heoblitz merged 1 commit into
toss:mainfrom
MycroCosmo:fix/generator-gitignore

Conversation

@MycroCosmo

Copy link
Copy Markdown
Contributor

Summary

The generator's source templates contain .gitignore, but npm pack excludes both files. Projects created from the distributed tarball therefore lack ignore rules for dependencies and build output.

Store the templates as gitignore and restore the dot-prefixed name when generating a project. The template contents are unchanged. Add a regression test that packs and extracts the actual package, generates both plugin types, and uses git check-ignore to verify generated files are ignored while source files remain trackable.

Changelog

Include .gitignore in device and desktop projects created from the packaged plugin generator.

Test Plan

Verified on Windows with Node.js 22.17.0 and LF template files:

  • Before the fix, both packed-project regression cases fail because .gitignore is missing.
  • node --test WebPackages/CreateNectoPlugin/tests/package.test.js WebPackages/CreateNectoPlugin/tests/create-project.test.js — 7 tests pass.
  • With the test-path fix from test: resolve generator CLI file URL as a native path #35 temporarily applied, npm --prefix WebPackages/CreateNectoPlugin test — all 16 tests pass. That fix is not included in this PR; the existing CLI tests on main still need it on Windows.
  • npm --prefix WebPackages/CreateNectoPlugin run build and npm --prefix WebPackages/CreateNectoPlugin run typecheck — syntax checks pass.
  • git diff --cached --check passes.

macOS/iOS builds, the full release suite, and physical-device checks were not run.

@heoblitz
heoblitz merged commit 0b43c47 into toss:main Nov 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants