{"id":16712030,"url":"https://github.com/andys8/craco-purescript-loader","last_synced_at":"2025-06-29T18:32:31.345Z","repository":{"id":45854287,"uuid":"285804106","full_name":"andys8/craco-purescript-loader","owner":"andys8","description":"craco plugin to add purs-loader with create-react-app","archived":false,"fork":false,"pushed_at":"2022-09-29T12:39:15.000Z","size":2211,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T03:45:48.908Z","etag":null,"topics":["craco","create-react-app","purescript","purs-loader","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/craco-purescript-loader","language":"JavaScript","has_issues":true,"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/andys8.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":"2020-08-07T10:38:43.000Z","updated_at":"2021-12-01T19:44:34.000Z","dependencies_parsed_at":"2023-01-18T19:02:25.520Z","dependency_job_id":null,"html_url":"https://github.com/andys8/craco-purescript-loader","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/andys8/craco-purescript-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fcraco-purescript-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fcraco-purescript-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fcraco-purescript-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fcraco-purescript-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andys8","download_url":"https://codeload.github.com/andys8/craco-purescript-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fcraco-purescript-loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259774844,"owners_count":22909179,"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":["craco","create-react-app","purescript","purs-loader","react"],"created_at":"2024-10-12T20:28:04.068Z","updated_at":"2025-06-29T18:32:31.311Z","avatar_url":"https://github.com/andys8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Craco purescript-loader\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nThis is a [craco](https://github.com/gsoft-inc/craco) plugin to add [purs-loader](https://www.npmjs.com/package/purs-loader) with [`create-react-app`](https://facebook.github.io/create-react-app).\n\nIt allows you to use [PureScript](https://www.purescript.org) code in `create-react-app` without ejecting.\n\n## Installation\n\n```bash\nnpm install craco-purescript-loader --save-dev\n# or\nyarn add -D craco-purescript-loader\n```\n\n## Usage\n\n```js\nconst cracoPureScriptLoader = require(\"craco-purescript-loader\");\n\nmodule.exports = {\n  plugins: [{ plugin: cracoPureScriptLoader }],\n};\n```\n\n### Overwrite Options\n\n`craco-purescript-loader` configuration `options` will overwrite [`purs-loader` options](https://www.npmjs.com/package/purs-loader#options).\n\n```js\nconst cracoPureScriptLoader = require(\"craco-purescript-loader\");\n\nmodule.exports = {\n  plugins: [\n    {\n      plugin: cracoPureScriptLoader,\n      options: {\n        spago: true,\n        pscIde: false,\n      },\n    },\n  ],\n};\n```\n\n## Example\n\n[Example `create-react-app` project with PureScript](https://github.com/andys8/create-react-app-purescript) using `craco` and this plugin.\n\n## Alternative\n\nAn alternative to using craco is to [import the PureScript compiler output directly](https://github.com/purescript/spago/#get-started-from-scratch-with-webpack-frontend-projects).\n\nOr use vite, esbuild or parcel instead of create-react-app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandys8%2Fcraco-purescript-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandys8%2Fcraco-purescript-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandys8%2Fcraco-purescript-loader/lists"}