dgrigg/craft-boilerplate
最新稳定版本:1.4.0
Composer 安装命令:
composer require dgrigg/craft-boilerplate
包简介
Craft boilerplate setup, includes basic js/css/esbuild setup
README 文档
README
This is a basic Craft 4 with common plugins and frontend resources I use.
Craft Plugins
- SuperTable
- Redactor
- LinkField
- SEO Matic
Frontend
Alpine https://alpinejs.dev/
Axios https://github.com/axios/axios
TailwindCss https://tailwindcss.com
Build
ESbuild is used to compile and bundle the CSS and Js files. Reference the ./src/js/build/build.js file for the entry points and options. Two primary options are used --minify to output minified resources and --watch to watch the ./src and ./templates directory for changes required a rebuild. The build will output versioned js and css files that can be referenced in the build/mix-manifest.json file and is used with Mix to in the Twig layout to load.
Project Setup
- terminal into the docker container
- run
composer create-project dgrigg/craft-boilerplate [project root] dev-master - setup the local site domain and database (use ~www/docker/add-site.sh)
- create security key
./craft setup/security-key - install craft
./craft setup - remove the config/license.key file
- install plugins
./craft plugin/install ALL - update craft and all plugins
./craft update all - setup Craft https://craftcms.com/docs/4.x/installation.html
- exit the docker container and return to the local machine
- cd into the project root and run
npm install
Repo
- Setup a new git repo for the organization
- Add neccessary collaborators
- Initialize git repo and make first commit
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-10-07