fortytwo-studio/craft-cms-boilerplate
最新稳定版本:v2.1.4
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
统计信息
- 总下载量: 171
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-30