承接 szenario-fordesigners/craft-vite-starter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

szenario-fordesigners/craft-vite-starter

最新稳定版本:2.2.2

Composer 安装命令:

composer create-project szenario-fordesigners/craft-vite-starter

包简介

Craft CMS 5 with DDEV & Vite

README 文档

README


What if tooling was done with 1 command?

craft-vite

Craft CMS 5 infused with Vite, TypeScript and WindiCSS. Lightning fast development, HMR and a production ready build process.
Made possible by
szenario.design logo


The team behind the magic
Simon Wesp Thomas Bendl

Turbostart 🚀

bash <(curl -s https://raw.githubusercontent.com/szenario-fordesigners/craft-vite-starter/main/init.sh)

Quickstart

  1. mkdir my-project && cd my-project
  2. ddev config --project-type=craftcms --docroot=web
  3. ddev composer create -y szenario-fordesigners/craft-vite-starter
  4. make install
  5. make dev

Tech Stack

Requirements

  • DDEV
  • Unix-based OS (MacOS, Linux, WSL2)

If you are on Windows

Use WSL2 and follow the instructions for Unix-based OS. DDEV Documentation is a great starting point.

Commands

  • make install - patches the DDEV craft config and installs Craft CMS. Should only be used as a first time setup.
  • make dev - starts the development server
  • make build - bundles the assets for production

Subsequent Use

  • ddev yarn - for managing frontend packages
  • ddev composer - for managing backend packages
  • ddev craft - exposes the Craft CLI

Critical CSS

To use Critical CSS, you need to manually add the pages that should be pre-rendered to the criticalPages array in vite.config.ts. The pages will be pre-rendered when building and the generated CSS will be inlined in the HTML.

Credits

This repository is based on the official Craft CMS starter template.
Thanks to Andrew Welch for the great craft-vite plugin!

Contributors

Simon Wesp
Simon Wesp

💻
Thomas Bendl
Thomas Bendl

💻
Esteban Castro
Esteban Castro

💻

统计信息

  • 总下载量: 163
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 0
  • Forks: 97
  • 开发语言: PHP

其他信息

  • 授权协议: 0BSD
  • 更新时间: 2023-03-16