{"id":20230870,"url":"https://github.com/ethul/purescript-webpack-example","last_synced_at":"2026-03-08T05:31:35.940Z","repository":{"id":5715647,"uuid":"53758151","full_name":"ethul/purescript-webpack-example","owner":"ethul","description":"Example using PureScript with webpack","archived":false,"fork":false,"pushed_at":"2022-12-10T17:04:09.000Z","size":990,"stargazers_count":53,"open_issues_count":21,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-03T13:45:02.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","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/ethul.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":"2016-03-12T23:20:16.000Z","updated_at":"2024-10-05T21:07:11.000Z","dependencies_parsed_at":"2023-01-11T17:01:03.466Z","dependency_job_id":null,"html_url":"https://github.com/ethul/purescript-webpack-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ethul/purescript-webpack-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethul%2Fpurescript-webpack-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethul%2Fpurescript-webpack-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethul%2Fpurescript-webpack-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethul%2Fpurescript-webpack-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethul","download_url":"https://codeload.github.com/ethul/purescript-webpack-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethul%2Fpurescript-webpack-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30246724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-14T07:44:07.640Z","updated_at":"2026-03-08T05:31:35.913Z","avatar_url":"https://github.com/ethul.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-webpack-example\n\nExample project using PureScript with webpack.\n\n## Installation\n\n```bash\nbower install\nnpm install\n```\n\n## Running\n\n### Using locally installed binaries\n\nOn most system this should be enough, because npm should take care of extra\ndepedencies, including `purescript` and `purescript-psa`.\nNote, that this will use the compiler from `node_modules/.bin/`, not\nthe one that might have installed globally or the one that may be present\nin your `$PATH`. This will fail on systems like Nix, where you'll need to use\nglobally installed binaries (patched version of `psc`, while `npm` will supply\nunpatched version).\n\n```\nnpm run webpack\nnpm start\n```\n\nTo test this in the browser with the webpack-dev-server.\n\n```bash\nbower install\n\nnpm install\n\n# http://localhost:4008/\nnpm run webpack:server\n```\n\n### Using globally installed binaries\n\n`npm install` should have installed extra binary dependencies required to run\nthis example to `node_modules/.bin`. However, if you want to use the `psc`\ncompiler that you have installed globally (i.e., the one in `$PATH`), you can\njust call webpack directly:\n\n```\nwebpack\n```\n\nAs always, you can use `webpack --watch` option to enable automatic recompilation\non file changes.\n\nHowever, if you want to use globally installed binaries, this means that you'll\nhave to take care of all binary dependencies yourself. Right now, this includes\nhaving in your `$PATH`:\n\n* `psc` that comes from `purescript` (`haskellPackages.purescript` on Nix)\n* `psa` that comes from `purescript-psa` (on Nix, you'll have to install it\nyourself via `node2nix -i node-packages.json` and `nix-env -f default.nix -iA\npurescript.psa`; node-packages.json is a file you create yourself containing\n`[ \"purescript-psa\" ]`). You can remove the dependency on `psa` by changing `psc: 'psa'`\nto `psc: 'psc'` inside `webpack.config.js`. `psa` just provides clearer compilation\nmessages compared to `psc`\n* `webpack` (on Nix, `nodePackages.webpack`)\n* `node` that comes from `nodejs`\n\n## Additional examples\n\n - [Fast rebuilds](https://github.com/ethul/purescript-webpack-example/tree/fast-rebuilds)\n - [Psc package](https://github.com/ethul/purescript-webpack-example/tree/psc-package)\n - [Source maps](https://github.com/ethul/purescript-webpack-example/tree/source-maps)\n - [Spago](https://github.com/ethul/purescript-webpack-example/tree/spago)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethul%2Fpurescript-webpack-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethul%2Fpurescript-webpack-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethul%2Fpurescript-webpack-example/lists"}