A Craft CMS starter project with Tailwind or SCSS.
This project uses:
This process will eventually be automated through a setup command.
ddev config
. Enter aname
that matches the production domain without the TLD. e.g.simple.com.au
becomessimple
,council.sa.gov.au
becomescouncil
.ddev config --additional-fqdns name.test,subdomain.name.test --php-version 8.1
ddev start && ddev composer install && ddev npm install
ddev import-db --src=prometheus.sql
OR configure Swiff and useswiff --databasepull
- Update the
.env
file that should be generated after composer install - If using Tailwind
cp -r ./templates-tailwind/* ./templates
rm -rf ./src/styles/scss
- If using Sass
cp -r ./templates-sass/* ./templates
rm -rf ./src/styles/css && ./tailwind.config.js
- Update
postcss.config.js
to only keep autoprefixer
- Update imports in
./src/scripts/site.js
, remove unused JS Modules - Tidy up.
rm -rf ./templates-tailwind ./templates-sass
The following tasks are available:
# COMING SOON
# npm run setup
# Setup the project if this is your first time working on it
npm run dev
# Run the development server
npm run csr
# Run React Application for development
npm run build
# Run the production build
- Node: > v16.0.0
- DDEV: > v1.21.2
Utility command exist to help when updating the templates or styling, allowing developers to preview either boilerplate.
p8s-tailwind
This creates a symlink to all Tailwind templatesp8s-sass
This creates a symlink to all Sass templatesp8s-reset
This removes all symlinks within/templates
and must be done prior to making a new commit.