{"id":16151667,"url":"https://github.com/mizok/donuts","last_synced_at":"2026-05-06T13:38:15.151Z","repository":{"id":162374410,"uuid":"552030811","full_name":"mizok/donuts","owner":"mizok","description":"Donuts are awesome !","archived":false,"fork":false,"pushed_at":"2022-10-15T19:12:01.000Z","size":10395,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:46:38.698Z","etag":null,"topics":["blender","boilerplate","template","threejs","webpack"],"latest_commit_sha":null,"homepage":"","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-15T16:56:14.000Z","updated_at":"2024-05-18T12:55:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed9034ab-c403-4382-9bd9-64b19d117f9a","html_url":"https://github.com/mizok/donuts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"mizok/three-ts-template","purl":"pkg:github/mizok/donuts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizok%2Fdonuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizok%2Fdonuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizok%2Fdonuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizok%2Fdonuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizok","download_url":"https://codeload.github.com/mizok/donuts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizok%2Fdonuts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272976466,"owners_count":25025040,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":["blender","boilerplate","template","threejs","webpack"],"created_at":"2024-10-10T00:58:25.109Z","updated_at":"2025-10-29T03:02:01.113Z","avatar_url":"https://github.com/mizok.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: three-ts-template\ndate: \nauthor: Mizok\nversion: 0.0.1\ntags: \n---\n\n## Introduction\n\nA webpack boilerplate that uses `ejs` as the template engine.\n\n## Installation And Uasge\n\n- Run `npm install` or `npm i` first to install all dependencies.\n- Run `npm run dev` to start the dev-server.\n\n### Where to put my entry `ejs` files?\n\nYou have to put your entry `ejs` files in `./src/pages`.\n\n### I would like to make some `ejs` files sharable as templates(ex:header.ejs)，how can I make this?\n\n- You have to put your template `ejs` files in `./src/template`.\n- In your `ejs` file which you want to insert your template:\n\n```html\n\u003c%- include('./src/template/header.ejs') %\u003e\n```\n\nfor more detail, please check links below:\n\n- https://github.com/dc7290/template-ejs-loader  \n- https://ejs.bootcss.com/  \n\n### How to connect `ejs` file with entry `ts` file/ entry `scss` file?\n\nHere we are actually talking about `webpack` entry chunks.\n\nWhen designing this boilerplate, we tried to make chunk setting easy.\n\nBy Default, if you want your output page name to be `index.html`, and you are not going to use a specfic entry chunk, you will need:\n\n- an `index.ejs` file in `./src/pages`  \n- an `index.ts` file in `./src/ts`\n- an `index.scss` file in `./src/scss`\n\nOn the other hand, if you want your output page name to be `index.html`,and using a chunk named `main`, then you will need:\n\n- an `index.main.ejs` file in `./src/pages`  \n- a `main.ts` file in `./src/ts`\n- a `main.scss` file in `./src/scss`\n\n### I want to get webpack `mode` environment argument in `ejs` and `js` files, how can I make this?\n\nLike this (in your `ejs` file) :\n\n```ejs\n\u003c!-- this will output development|production --\u003e\n\u003cdiv\u003e\u003c%= mode%\u003e\u003c/div\u003e  \n```\n\nAnd this (in your `js` file) :\n\n```javascript\nconsole.log(PROCESS.MODE) // this will output development|production\n```\n\n### My `img` tag is not showing because `webpack` seems to get my `src` wrong.\n\nYou have to use `alias` path , not relative path(like below):\n\n```html\n\u003cimg src=\"~@img/logo.png\"\u003e\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizok%2Fdonuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizok%2Fdonuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizok%2Fdonuts/lists"}