feat: add example command and update docs #18
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.
Changes
My VSCode has autoformat enabled on save, I'll add the changes into this PR description to be easier.
lib/index.mjspackage.jsonVersion updated to
"version": "2.5.0"How to Test
npm i -g yalcgit checkout feat/example-commandyalc publish. You should see the following message:@pixi/[email protected] published in the store.xsfrom the local registry into the project by runningyalc add @pixi/[email protected] --link. the--linkis to reflect all changes from the local registry, ex: I did one update onxspackage, if it's already published I just need to runyalc push, with this command Yalc will push the change into the local registry for this package, with the--linkthis will be reflected to all local projects using this package with Yalc.PS: you should see the package reference like that:
"@pixi/extension-scripts": "link:.yalc/@pixi/extension-scripts",npm run build"example": "xs example",.npm run example(this should be run after the build, so the script will copy thedistfolder to inside theexamplesfolder).