{"id":18842670,"url":"https://github.com/twitcher07/_template-vite-craft-v4","last_synced_at":"2025-07-14T15:07:31.303Z","repository":{"id":205316228,"uuid":"713951547","full_name":"twitcher07/_template-vite-craft-v4","owner":"twitcher07","description":"Template project for craft 4 using Vite","archived":false,"fork":false,"pushed_at":"2024-05-08T19:45:26.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T22:41:02.860Z","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-03T15:29:27.000Z","updated_at":"2024-05-08T19:45:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"aae69167-3f55-4a34-b219-3e39c99d3d5b","html_url":"https://github.com/twitcher07/_template-vite-craft-v4","commit_stats":null,"previous_names":["twitcher07/_template-vite-craft-v4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twitcher07/_template-vite-craft-v4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twitcher07","download_url":"https://codeload.github.com/twitcher07/_template-vite-craft-v4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitcher07%2F_template-vite-craft-v4/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311871,"owners_count":23745161,"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:26.324Z","updated_at":"2025-07-14T15:07:31.281Z","avatar_url":"https://github.com/twitcher07.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to the Craft 4 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 v4 - Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. [Documentation](https://craftcms.com/docs/4.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-v4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwitcher07%2F_template-vite-craft-v4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitcher07%2F_template-vite-craft-v4/lists"}