{"id":21188459,"url":"https://github.com/drsensor/js13k-parcel","last_synced_at":"2025-03-14T20:25:40.156Z","repository":{"id":71509085,"uuid":"399742000","full_name":"DrSensor/js13k-parcel","owner":"DrSensor","description":"My template project for js13k entry using parcel as a bundler and devserver","archived":false,"fork":false,"pushed_at":"2021-09-13T06:46:22.000Z","size":51,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-03-10T19:57:17.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrSensor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T08:15:49.000Z","updated_at":"2021-09-13T06:46:26.000Z","dependencies_parsed_at":"2023-03-10T23:46:01.670Z","dependency_job_id":null,"html_url":"https://github.com/DrSensor/js13k-parcel","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fjs13k-parcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fjs13k-parcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fjs13k-parcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fjs13k-parcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrSensor","download_url":"https://codeload.github.com/DrSensor/js13k-parcel/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243640991,"owners_count":20323761,"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-11-20T18:44:54.373Z","updated_at":"2025-03-14T20:25:40.129Z","avatar_url":"https://github.com/DrSensor.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js13k template\n\n\u003e with parcel (and nix flake)\n\n## Setup\n\nThere is 2 (4 if you count pnpm and yarn) way to setup.\n\n### using **npm**\n\nIn this approach, no linter or formatter are installed. Only `parcel`.\n\nInstall all dependencies via:\n\n```sh\nnpm install\n```\n\nthen you can run the project using:\n\n```sh\nnpx parcel serve index.html\n```\n\nor build for production using:\n\n```sh\n# for browser bundle\nnpx parcel build index.html --target {desktop,mobile,xr} # choose one\n\n# build to run in nodejs (server), not browser\nnpx parcel build server.ts --target server\n```\n\n### using **nix** (experimental)\n\nThis require [nix flake to be enabled](https://serokell.io/blog/practical-nix-flakes#getting-started-with-nix). This approach will automatically install both project dependencies and all toolchains like linter, formatter, and nodejs.\n\n- linter: [dlint](https://github.com/denoland/deno_lint)\n- formatter: [dprint](https://dprint.dev)\n\n\u003e [**TOFU**](https://github.com/msteen/nix-prefetch/#tofu): [Supply all (or one of the platform) sha256](./integrity.nix) first before running any nix command.\n\n#### dev environment\n\nRun this once or twice to enter the development environment.\n\n```sh\nnix develop\n```\n\n#### TODO: build for production\n\nYou can build for all target:\n```sh\nnix build\n```\n\nor specify which target to build:\n```sh\nnix build '.#desktop' # or '.#mobile' or '.#xr' or '.#server'\n```\n\n### cleanup\n\nIn case unexpected things happen.\n\n```sh\nrm .parcel-cache/ dist/ node_modules/ -fr\nrm package-lock.json yarn.lock pnpm-lock.yaml -f\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsensor%2Fjs13k-parcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrsensor%2Fjs13k-parcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsensor%2Fjs13k-parcel/lists"}