Download the PHP package dgrigg/craft-boilerplate without Composer
On this page you can find all versions of the php package dgrigg/craft-boilerplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dgrigg/craft-boilerplate
More information about dgrigg/craft-boilerplate
Files in dgrigg/craft-boilerplate
Package craft-boilerplate
Short Description Craft boilerplate setup, includes basic js/css/esbuild setup
License
Informations about the package craft-boilerplate
Craft Project Setup
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
All versions of craft-boilerplate with dependencies
craftcms/redactor Version 3.0.3
misterbk/mix Version ^1.6
mmikkel/retcon Version 2.6.1
nystudio107/craft-seomatic Version 4.0.20
sebastianlenz/linkfield Version 2.1.5
topshelfcraft/wordsmith Version 4.0.1
verbb/navigation Version 2.0.16
verbb/super-table Version 3.0.7
vlucas/phpdotenv Version ^5.4.0