{"id":21948111,"url":"https://github.com/evolution-gaming/babylonjs-make-incremental","last_synced_at":"2025-04-23T00:16:15.933Z","repository":{"id":23011576,"uuid":"97923594","full_name":"evolution-gaming/babylonjs-make-incremental","owner":"evolution-gaming","description":"Node version of babylonjs make incremental script","archived":false,"fork":false,"pushed_at":"2023-04-18T18:52:44.000Z","size":52,"stargazers_count":9,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T00:16:10.152Z","etag":null,"topics":["babylonjs","incremental"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evolution-gaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T08:14:24.000Z","updated_at":"2025-03-31T05:37:45.000Z","dependencies_parsed_at":"2022-08-07T10:16:34.628Z","dependency_job_id":null,"html_url":"https://github.com/evolution-gaming/babylonjs-make-incremental","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-make-incremental","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-make-incremental/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-make-incremental/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-make-incremental/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/babylonjs-make-incremental/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343957,"owners_count":21415041,"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":["babylonjs","incremental"],"created_at":"2024-11-29T05:12:01.778Z","updated_at":"2025-04-23T00:16:15.903Z","avatar_url":"https://github.com/evolution-gaming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babylonjs make incremental\n\n## About\n\nThis is a tool that generates incremental files from a babylon file.\n\nIt is meant to work with [Babylon.js](https://github.com/BabylonJS/Babylon.js). The tool is a port of [make incremental](https://github.com/BabylonJS/Babylon.js/tree/master/Tools/MakeIncremental).\n\n## Build\n\nIn order to use the tool, run `npm install \u0026\u0026 npm run build` in terminal.\n\n## Usage\n\nImport/require the exposed function `makeIncremental` to your script. It accepts two arguments:\n\n* `src` - *string*: The path from the project root to folder where the tool should search for `.babylon` files.\n* `options` - *object (optional)*: An object that accepts two optional attributes:\n    * `excludedMeshes` - *RegExp[] (optional)*: Regular expressions, that match mesh names that should not be extracted from the babylon file.\n\nExample usage:\n```javascript\nimport { makeIncremental } from \"babylonjs-make-incremental\";\n// Alternatively\n// const makeIncremental = require(\"babylonjs-make-incremental\").makeIncremental;\n\nmakeIncremental(\n    \"src/scenes/mainScene\",\n    {\n        excludedMeshes: [/^car-/, /^box-/, /^building/],\n    }\n);\n```\n\n## CLI\n\nInstall this package globally:\n\n```\nnpm i -g babylonjs-make-incremental\n```\n\nRun the command:\n\n```\nbabylonjs-make-incremental --src=./src/scenes/mainScene  --excludedMeshes=\"^car-,^box-,^building\"\n```\n\nThe `excludedMeshes` option should be a string of comma-delimited regexp strings, each of which will be passed to the constructor `new RegExp()`.\n\n## Developing this project\n\nClone the repo, then do the usual setup:\n\n```\n$ npm install \u0026\u0026 npm run build\n```\n\nTo develop the CLI, you need to run:\n\n```\n$ npm link\n```\n\nThis should symlink the CLI and make it possible to call directly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-make-incremental","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fbabylonjs-make-incremental","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-make-incremental/lists"}