{"id":20857546,"url":"https://github.com/miltoncandelero/hellopixidragonbones","last_synced_at":"2025-06-20T01:04:48.659Z","repository":{"id":39140629,"uuid":"260046710","full_name":"miltoncandelero/helloPixiDragonbones","owner":"miltoncandelero","description":"The examples of pixi dragonbones running in a webpack build","archived":false,"fork":false,"pushed_at":"2023-01-07T17:39:55.000Z","size":18646,"stargazers_count":9,"open_issues_count":18,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T01:03:48.122Z","etag":null,"topics":["demo","dragonbones","game-development","html5","pixijs","pixijs-v5","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miltoncandelero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-29T21:10:28.000Z","updated_at":"2024-08-04T12:27:02.000Z","dependencies_parsed_at":"2023-02-07T18:45:34.809Z","dependency_job_id":null,"html_url":"https://github.com/miltoncandelero/helloPixiDragonbones","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miltoncandelero/helloPixiDragonbones","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltoncandelero%2FhelloPixiDragonbones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltoncandelero%2FhelloPixiDragonbones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltoncandelero%2FhelloPixiDragonbones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltoncandelero%2FhelloPixiDragonbones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miltoncandelero","download_url":"https://codeload.github.com/miltoncandelero/helloPixiDragonbones/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltoncandelero%2FhelloPixiDragonbones/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260857363,"owners_count":23073435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","dragonbones","game-development","html5","pixijs","pixijs-v5","typescript","webpack"],"created_at":"2024-11-18T04:41:00.564Z","updated_at":"2025-06-20T01:04:43.609Z","avatar_url":"https://github.com/miltoncandelero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello Pixi Dragonbones\n*(Also known as: How to use Dragonbones with Pixi5 and Webpack without going insane)*\n\n[![For added shock](blackmagic.gif)]\n*(Internet explorer for dramatic purposes)*\n\n## This is meant to be used with Yarn 🐱 \n*(however you should be able to use npm)*\n\n### This boilerplate includes:\n- PixiJS v5 *(the thing you came for)*\n- DragonBones *(the other thing you came for)*\n- Typescript *(making javascript a better place)*\n- stats.js *(to know how fast are you going)*\n- dat.gui *(to make the cool demo selector)*\n- Webpack *(will make all your code into an ugly ball)*\n  - Webpack Dev Server *(will host said ugly ball to debug locally)*\n  - HTML Webpack Plugin *(will help your code have an index.html)* \n  - Copy Webpack Plugin *(will copy your assets to your build)*\n- ESLint *(will force your code to be pretty)*\n  - ESLint Typescript *(will make ESLint actually work for typescript)*\n  - ESLint Prettier *(will force your code to be prettier!)*\n- .gitIgnore and .gitAttributes *(my paranoid approach to configuring git)*\n\n## How to use:\n\n**Step 0:** Get Yarn (classic). https://classic.yarnpkg.com/lang/en/  \nHonestly I don't know exactly why it is better than npm but it has a cute kitty, I am sold\n\n**Step 1:** Clone the repo (or download as ZIP)\n\n**Step *1.5:*** If you cloned the repo, detach yourself (delete the .git folder).\n\n**Step 2:** Run `yarn install` (or if you are a rebel, `npm install`)\n\n**You are done**  \n\nNow you can run `yarn run test` to build, start watching your source code (rebuilds when you save) open a `localhost:3000` server so you can test in your own browser!\n\nTry `yarn run build` to make a build in a folder called `build`. You can cut this folder since your assets were copied from your assets folder. No more keeping your assets in the dist folder like a caveman!\n\nFinally, try `yarn run lint` to make your code look prettier.\n\n---\n\n## Major things I learnt:\n\n* Force Webpack to create a `PIXI` global object with this simple trick: `new webpack.ProvidePlugin({ PIXI: 'pixi.js' }),`.\n* Original examples used a manually created (and deprecated) `WebGLRenderer`. This uses the integrated renderer in Pixi's `App`.\n* Some animations names are reused. `dragonBones.PixiFactory.factory.clear()` will reset the factory allowing for clean loading of the samples.\n* For some strange reason, even if you have all the assets preloaded, if you try to render a mesh deforming animation immediately after creation you will crash. Wait a bit and then `addChild` it.\n* Somehow, someway, this works in Internet Explorer. I don't know what kind of black magic is this.\n\n---\n\n## Demo Files\nThe demo files are the one provided by the dragonbones repo.  \nCopyright (c) 2012-2018 The DragonBones team and other contributors.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiltoncandelero%2Fhellopixidragonbones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiltoncandelero%2Fhellopixidragonbones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiltoncandelero%2Fhellopixidragonbones/lists"}