{"id":13775230,"url":"https://github.com/jspicl/rollup-plugin-jspicl","last_synced_at":"2025-05-11T07:32:14.599Z","repository":{"id":65491351,"uuid":"87434340","full_name":"jspicl/rollup-plugin-jspicl","owner":"jspicl","description":"This project is no longer maintained! Please use jspicl-cli instead.","archived":true,"fork":false,"pushed_at":"2019-08-08T13:29:40.000Z","size":135,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T11:05:35.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/jspicl/jspicl-cli","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jspicl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-06T13:46:51.000Z","updated_at":"2023-01-28T17:35:39.000Z","dependencies_parsed_at":"2023-01-25T18:45:30.815Z","dependency_job_id":null,"html_url":"https://github.com/jspicl/rollup-plugin-jspicl","commit_stats":null,"previous_names":["agronkabashi/rollup-plugin-jspicl"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspicl%2Frollup-plugin-jspicl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspicl%2Frollup-plugin-jspicl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspicl%2Frollup-plugin-jspicl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspicl%2Frollup-plugin-jspicl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jspicl","download_url":"https://codeload.github.com/jspicl/rollup-plugin-jspicl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949272,"owners_count":21830151,"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":[],"created_at":"2024-08-03T17:01:35.619Z","updated_at":"2025-05-11T07:32:14.301Z","avatar_url":"https://github.com/jspicl.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Transpilation"],"readme":"# This project is no longer maintained! [Please use jspicl-cli instead.](https://github.com/jspicl/rollup-plugin-jspicl)\n\n---\n\n## rollup-plugin-jspicl\nThis plugin uses jspicl to convert your JavaScript into a PICO-8 cartridge with lua code.\n\n## Installation\n\n```bash\nnpm install rollup-plugin-jspicl --save-dev\n```\n\n## Related projects\n[jspicl](https://github.com/AgronKabashi/jspicl) - A Javascript to PICO-8 Lua transpiler\n\n[games](https://github.com/topics/jspicl-sample) - Games created with jspicl\n\n## Usage\n\n```js\nimport jspicl from \"rollup-plugin-jspicl\";\n\nexport default {\n  input: \"src/game.js\",\n  output: {\n    file: \"build/game.p8\",\n    format: \"es\"\n  },\n  plugins: [\n    buble(),\n    jspicl({\n      // options\n    })\n  ]\n})\n```\n\n## Options\n| Property              | Type                  | Default   | Description |\n|-----------------------|-----------------------|-----------|-------------|\n| cartridgePath         | string                |           | Path to an existing cartridge to load map, music and sfx from. Ideally this should point to the generated cartridge so you can edit the assets directly. This setting however gives you the option to use a separate cartridge as the source for your assets. *MANDATORY* |\n| includeBanner         | bool                  | true      | Adds a comment at the very top of the generated bundle with jspicl info. |\n| jsOutput              | string                |           | Output generated javascript code to a file. Useful for debugging when used in combination with [astexplorer](http://astexplorer.net). |\n| luaOutput             | string                |           | Output generated lua code to a file. |\n| polyfillTransform     | polyfills =\u003e string   | undefined | Callback method for modifying the polyfills that are needed. An object hashmap will be passed in where the keys represent the function names and values the lua code. You may replace the existing polyfills with your own versions or even add additional ones. |\n| showStats             | bool                  | true      | Display useful stats about the generated cartridge |\n| spritesheetImagePath  | string                |           | Path to a png image to be used as the spritesheet. Colors will be downsampled and mapped against PICO-8's fixed palette using a distance based approach. Using colors close to PICO-8's palette will yield best results. *MANDATORY* |\n| pico                  | object                |           | PICO-8 specific options. Default options will be used if not supplied. See table below for details. |\n| jspicl                | object                |           | Options to pass into jspicl. Default options will be used if not supplied. See [repo](https://github.com/AgronKabashi/jspicl#usage) for detailed info. |\n\n### PICO-8 Options\n| Property            | Type   | Default | Description |\n|---------------------|--------|---------|-------------|\n| autoRun             | bool   | true    | Start up PICO-8 when starting the build with `npm start` |\n| customPicoPath      | string |         | Path to PICO-8. If not specified the default path will be used. |\n| pipeOutputToConsole | bool   | false   | When true, will output `console.log` calls to terminal that launched PICO-8. |\n| reloadOnSave        | bool | true      | Automatically reload the cart when source files have been modified. |\n\n## Versioning\nThis project uses semantic versioning\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspicl%2Frollup-plugin-jspicl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjspicl%2Frollup-plugin-jspicl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspicl%2Frollup-plugin-jspicl/lists"}