fortytwo-studio/craft-cms-boilerplate
Composer 安装命令:
composer require fortytwo-studio/craft-cms-boilerplate
包简介
This is a boilerplate for Craft CMS
README 文档
README
This is a boilerplate for a Craft 5 CMS install with a few plugins already installed, custom file structure, and some pages with nav and a footer.
Usage
Firstly you need to create a database on your localhost.
To set up the boilerplate, you can use composer:
composer create-project fortytwo-studio/craft-cms-boilerplate [path]
- Alternatively you can clone the repo: https://github.com/fortytwostudio/craft-cms-boilerplate
- Run
composer install- The
post-install-cmdhook will run the setup, db import, npm install and finally removes the post-install-cmd scripts
- The
- Run
npm install
ViteJS
ViteJs is utilised in the project to watch and build sass and js.
Therefore you will need to have vite-cli installed to rebuild files. You can install it with node: npm install -D vite.
After that, just use npm run dev in the terminal to turn on the file watchers.
!! Before deploying changes to staging or production, make sure to run npm run build !!
Plugins installed
- craftcms/aws-s3
- craftcms/ckeditor
- solspace/craft-freeform
- johnhenry/matrix-block-anchor
- verbb/navigation
- ether/seo
- nystudio107/craft-vite
- wrav/oembed
- fortytwo-studio/cookie-consent
TailwindCSS
Tailwind is installed as a node module and is imported via:
- CSS:
@webroot/src/css/app.css - JS:
@webroot/src/js/app.js
Preline (components: accordion, sliders, modals, etc)
Preline is installed as a node module and is imported and initialised in:
- CSS:
@webroot/src/css/app.css - JS:
@webroot/src/js/app.js
vanilla-lazyload (lazyload)
vanilla-lazyload is installed as a node module and is imported and initialised in:
@webroot/src/js/libraries/lazy-load.js
infinite-scroll
infinite-scroll is installed as a node module and is imported and initialised in:
@webroot/src/js/app.js
countup.js (animated numbers counting up)
countup.js is installed as a node module and is imported and initialised in:
@webroot/src/js/components/stats.js
JQuery
JQuery is installed as a node module. Can be imported into JS files via:
import $ from 'jquery';
Dependencies
fortytwo-studio/craft-cms-boilerplate 适用场景与选型建议
fortytwo-studio/craft-cms-boilerplate 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 172 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 fortytwo-studio/craft-cms-boilerplate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fortytwo-studio/craft-cms-boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 172
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-30