{"id":18842665,"url":"https://github.com/twitcher07/_template-vite-craft-v5","last_synced_at":"2025-10-09T15:16:32.727Z","repository":{"id":232464399,"uuid":"784418257","full_name":"twitcher07/_template-vite-craft-v5","owner":"twitcher07","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-08T19:45:37.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T12:13:19.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/twitcher07.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}},"created_at":"2024-04-09T20:12:13.000Z","updated_at":"2024-05-08T19:45:41.000Z","dependencies_parsed_at":"2024-04-10T00:29:10.407Z","dependency_job_id":"9f080533-1033-4942-bb64-f29dc4062a9f","html_url":"https://github.com/twitcher07/_template-vite-craft-v5","commit_stats":null,"previous_names":["twitcher07/_template-vite-craft-v5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twitcher07","download_url":"https://codeload.github.com/twitcher07/_template-vite-craft-v5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780117,"owners_count":19695734,"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-08T02:55:25.126Z","updated_at":"2025-10-09T15:16:27.662Z","avatar_url":"https://github.com/twitcher07.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to the Craft 5 with Vite.\n\n# Table of Contents\n---\n1. [Requirements](#installation-requirements)\n2. [Build Tools \u0026 Assets](#build-tools-\u0026-assets)\n3. [Getting Started](#getting-started)\n4. [Build Commands](#build-commands)\n\n\n# Installation requirements\n---\n* Node.js\n* NPM\n* Composer\n* Vite\n\n\n# Tools \u0026 Frontend Assets\n---\n## What's included:\n* Craft CMS v5 - Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. [Documentation](https://craftcms.com/docs/5.x/)\n* Vite - [Documentation](https://vitejs.dev/)\n\n## Frontend assets:\n* Alpine.js v3 - [Documentation](https://alpinejs.dev)\n* Tailwind CSS v3 - [Documentation](https://tailwindcss.com/docs)\n* Vanilla Lazyload - [Documentation](https://github.com/verlok/vanilla-lazyload/tree/17.1.3)\n* GSAP - [Documentation](https://gsap.com/docs/v3/)\n* fitvids - [Documentation](https://github.com/rosszurowski/fitvids#readme)\n\n# Getting Started\n---\n## Configuring enviroment\nMake sure .env variables are updated with the appropriate values. They are used for all frontend build commands. Below are the values used by the frontend build commands.\n\n### `ENVIRONMENT`\nIs used to set whether development or production version of files are generated. Expected values are `development`, `dev`, `staging`, or `production`.\n\n#### Important note about sites behind HTTP authentication:\n\u003e Because this site uses the vite plugin, if your site is behind HTTP authentication - you will have to update the `HTTP_AUTHENTICATION_USER` and `HTTP_AUTHENTICATION_PASSWORD` in the .env file to make sure pulling in vite build files is working properly.\n\n### `PRIMARY_SITE_URL`\nMust be set for Vite plugin and Craft to work properly.\n\n## Configuring paths\n### WARNING: Whatever is inside the folder `./web/dist` will be deleted whenever you run `npm run build`. This is to prevent caching of old build files. Be careful not to put anything else inside this folder.\n\n\n## Setting up purging of TailwindCSS \nMake sure in your `package.json` that `\"purgeFiles\": []` contains an array to any files that contain tailwindcss classes. To learn more go to tailwindcss documentation about (optimizing for production)[https://tailwindcss.com/docs/optimizing-for-production].\n \n## Customizing Webpack\nSet any custom configuration (e.g. new entry points or other settings) in `vite.config.js`.\n\n## Favicons\nFavicon generation uses Real Favicon Generator. Edit `./faviconConfig.json` to be valid Real [Favicon Generator configuration](https://realfavicongenerator.net/api/non_interactive_api). \n\n\n# Build Commands\n---\n## `npm run build`\nBuilds production frontend files using vite.\n\n## `npm run dev`\nBuilds development frontend files and watches for changes. In order for this to work properly, make sure the craft environment is set to `dev` or `development`.\n\n## `npm run favicon`\nGenerates favicon information using real favicon generator.\n\n## `npm run favicon-update`\nChecks real favicon generator for any updates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitcher07%2F_template-vite-craft-v5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwitcher07%2F_template-vite-craft-v5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitcher07%2F_template-vite-craft-v5/lists"}