{"id":19542562,"url":"https://github.com/fable-compiler/fable-templates","last_synced_at":"2025-04-26T17:31:17.328Z","repository":{"id":38375846,"uuid":"101558192","full_name":"fable-compiler/fable-templates","owner":"fable-compiler","description":"Templates for Fable projects maintained by fable-compiler org","archived":false,"fork":false,"pushed_at":"2023-05-17T04:18:39.000Z","size":1854,"stargazers_count":26,"open_issues_count":4,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T12:53:15.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","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/fable-compiler.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-08-27T14:34:37.000Z","updated_at":"2023-06-23T12:36:05.000Z","dependencies_parsed_at":"2023-02-18T15:15:57.915Z","dependency_job_id":null,"html_url":"https://github.com/fable-compiler/fable-templates","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/fable-compiler%2Ffable-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Ffable-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Ffable-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Ffable-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fable-compiler","download_url":"https://codeload.github.com/fable-compiler/fable-templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251025741,"owners_count":21524854,"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-11T03:15:05.226Z","updated_at":"2025-04-26T17:31:17.049Z","avatar_url":"https://github.com/fable-compiler.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fable-templates\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/fable-compiler/fable-templates/)\n\nTemplates for Fable projects maintained by fable-compiler org\n\n## Quick install\n\nTo create a new minimal Fable project:\n```sh\ndotnet new -i Fable.Template\ndotnet new fable -n \u003cname-of-your-project\u003e\n```\n\n## List of templates\n\n| Name  | Short Name | Description  |\n|---|---|---|\n| Fable.Template | fable |  Small Fable app project with Webpack, with the only dependency on Fable.Browser.Dom |\n| Fable.Snowpack.Template | fable-snowpack |  Small Fable app project with Snowpack, with the only dependency on Fable.Browser.Dom |\n\n## How to test the template before publishing?\n\n1. Restore nuget package `dotnet restore minimal`\n2. Package the template by running `dotnet pack -c Release minimal/Fable.Template.proj`\n3. Install the new version of the template: `dotnet new -i minimal/bin/Release/Fable.Template.x.y.z.nupkg`\n4. Create the template: `dotnet new fable -n \u003cname-of-your-project\u003e`.\n\n    If you are using gitpod to contribute, add `--gitpod` at the end\n\n5. `cd \u003cname-of-your-project\u003e`\n6. Follow the instructions from the README.md of the installed template\n\n## Maintainer notes\n\n### Requirements\n\n- Your NuGet API key set in `NUGET_KEY` variable.\n\n### Procedure to publish a new version\n\nTo publish a new version of the template you need to:\n\n1. Update the changelog of the template you want to publish\n2. Run `dotnet tool restore`\n3. Run `dotnet fake build -t Release`\n\n### Gitpod condition\n\nIn the webpack.config.js, we are adding things like:\n\n```js\n//#if( gitpod )\nconst execSync = require('child_process').execSync;\nvar isGitPod = process.env.GITPOD_INSTANCE_ID !== undefined;\n\nfunction getDevServerUrl() {\n    if (isGitPod) {\n        const url = execSync('gp url 8080');\n        return url.toString().trim();\n    } else {\n        return `http://localhost:${CONFIG.devServerPort}`;\n    }\n}\n//#endif\n```\n\nThe code between `//#if( gitpod )` and `//#endif` is not included in the generated template. It's here so people can use Gitpod to contribute to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Ffable-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffable-compiler%2Ffable-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Ffable-templates/lists"}