statikbe / craft
Craft CMS starter package, by Statik.be
Installs: 404
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 9
Forks: 5
Open Issues: 23
Language:Twig
Type:project
Requires
- php: >=8.2
- ext-json: *
- craftcms/ckeditor: ^4.0
- craftcms/cms: 5.3.6
- craftcms/postmark: ^3.1.0
- hybridinteractive/craft-position-fieldtype: ^5.0.0
- hybridinteractive/craft-width-fieldtype: ^5.0.0
- jaybizzle/crawler-detect: ^1.2
- mikehaertl/php-shellcommand: ^1.6
- miranj/craft-obfuscator: ^1.2.0
- mmikkel/cp-field-inspect: 2.0.2
- nystudio107/craft-imageoptimize: 5.0.2
- nystudio107/craft-vite: 5.0.1
- percipioglobal/craft-password-policy: ^5.0.0-beta1
- statikbe/craft-carbon-tracker: 5.0.2
- statikbe/craft-config-values: ^5.0.0
- statikbe/craft-cookie-banner: ^5.0.0
- statikbe/craft-sentry: 5.1.0
- statikbe/craft-translate: ^5.0.0
- statikbe/craft-video-parser: ^5.0.0
- studioespresso/craft-dumper: 5.0.1
- studioespresso/craft-navigate: ^5.0.0
- studioespresso/craft-seo-fields: 5.0.2
- vanderlee/syllable: ^1.7
- verbb/element-index-defaults: ^4.0.0-beta.1
- verbb/expanded-singles: ^3.0.0-beta.2
- verbb/formie: 3.0.5
- verbb/hyper: 2.0.4
- verbb/image-resizer: 4.0.1
- verbb/knock-knock: 3.0.1
- verbb/tablemaker: 5.0.1
- vlucas/phpdotenv: ^5.4.1
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- dev-develop
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.1
- 5.1.0
- 5.0.1
- 5.0.0
- 3.10
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.1
- 2.0.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.12
- 1.8.11
- 1.8.10
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-KarelJanVanHaute/issue400
- dev-KarelJanVanHaute/issue411
- dev-feature/387-396-craft_updates
- dev-397-prevent-cmyk-image-colours-being-shifted
- dev-KarelJanVanHaute/issue310
- dev-KarelJanVanHaute/issue347
- dev-master
- dev-347-write-frontend-docs-for-all-components-in-an-appealing-form-factor
- dev-373-accordion-overflow
- dev-KarelJanVanHaute/issue309
- dev-demo
- dev-feature/377-ax-update
- dev-370-improve-default-breadcrumb-behaviour-on-all-screen-sizes
- dev-294-add-xlsx-option-to-core-exporters
- dev-285-dialog-rewrite-challenge
- dev-272-checking-plugin-examples
- dev-179-put-some-generic-useful-widgets-on-the-dashboard-to-improve-customers-life
- dev-fixshareddirs
- dev-fixbuild
- dev-KarelJanVanHaute/issue206
- dev-KarelJanVanHaute/issue92
- dev-KarelJanVanHaute/issue205
- dev-KarelJanVanHaute/issue229
- dev-173-seperate-or-differentiate-between-asset-caption-and-asset-alt-text-fields
- dev-KarelJanVanHaute/issue178
- dev-KarelJanVanHaute/issue124
- dev-KarelJanVanHaute/issue207
- dev-fixDeployScript
- dev-KarelJanVanHaute/issue202
- dev-improveddev
This package is auto-updated.
Last update: 2024-12-09 16:22:12 UTC
README
This a scaffolding package for Craft CMS, by Statik.be. We use this internally to start new projects.
Assumptions made
We assume a couple of things
-
We use Ddev as our local development environment.
-
We use Postmark for email delivery.
-
We use TailwindCSS for our frontend build.
🛠 Usage
Before beginning make sure you have Ddev installed and your docker-engine is running. Otherwise the install process will fail on initialization.
Use the following command to set up a new project:
composer create-project statikbe/craft PATH
➡️ A Craft CMS project will be created. Next Craft asks to start the set-up:
______ .______ ___ _______ .___________. / || _ \ / \ | ____|| | | ,----'| |_) | / ^ \ | |__ `---| |----` | | | / / /_\ \ | __| | | | `----.| |\ \----./ _____ \ | | | | \______|| _| `._____/__/ \__\ |__| |__| A N E W I N S T A L L ______ .___ ___. _______. / || \/ | / | | ,----'| \ / | | (----` | | | |\/| | \ \ | `----.| | | | .----) | \______||__| |__| |_______/ Generating an application ID ... done Generating a security key ... done Welcome to Craft CMS! Are you ready to begin the setup? (yes|no) [yes]
➡️ The next questions will be asked:
- Which database driver are you using? (mysql or pgsql)
- Database server name or IP address [127.0.0.1]
- Database port [3306]
- Database username [root]
- Database password
- Database name
- Database table prefix
➡️ Using the above defaults suggested by craft, will allow you to connect to your Ddev database and the installation will continue.
- Install Craft now? [yes]
- Password
- Confirm
- Site name [NL]
- Site URL [@baseUrl/nl]
- Site language [nl-BE]
➡️ Craft is installed, the plugins are installed and the existing project config is applied! 🚀
Now we're ready to initiate the Statik set-up:
cd PATH
ddev craft statik/setup
➡️ This will give you the following options/ask you the following questions:
_______.___________. ___ .___________.__ __ ___ / | | / \ | | | | |/ / | (----`---| |----` / ^ \ `---| |----| | | ' / \ \ | | / /_\ \ | | | | | < .----) | | | / _____ \ | | | | | . \ |_______/ |__| /__/ \__\ |__| |__| |__|\__\ A N E W C R A F T P R O J E C T
- Enter a new system name
- Do you want to remove the frontend account flow in Craft?
If you continue the next sections will be removed: confirmAccount, editPassword, editProfile, forgotPassword, forgotPasswordConfirmation, login, profile, register, registrationCompleted, setPassword, setPasswordConfirmation
- Do you want to use Postmark for email transport? (yes|no)
- Enter a Postmark API key
- Enter an emailaddress to use for testing on staging environments
- Do you want to set up a git repo for this project? (yes|no)
- Add a remote?
- Do you want to initialize git-flow? (yes|no)
➡️ The installation is ready!
🎨 Frontend Setup
We use tailwindscss and vite.js
vite.config.js
tailwind.config.js
Getting started
[optional] nvm install yarn install
Afterwards you can build using
yarn dev
or
yarn watch
CSS and Javascript
tailoff/css
and tailoff/js
Favicon
Add an svg in tailoff/img/
called favicon.svg
and run
yarn favicon
Icons
Icon go in the folder tailoff/icons
🧪 Testing
There are two tests added to the frontend stack. An A11y tester that uses pa11y-ci under the hood. And a html tester that we wrote ourself, inspired by the pa11y code, that uses html-validate under the hood. You can call them by using these commands:
$ yarn test-a11y
$ yarn test-html
They both use the BASE_URL variable from the .env file to get the craft sitemap. This sitemap gets parsed to get a list of all url's in the site. And the tests are then performed on these URL's.
Attention To get the tester running on your local system. Run the following command in your terminal
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
⚙️ Development
To work on this repo you can clone it like you would a regular project:
git clone git@github.com:statikbe/craft.git craft
⭐️ Features & support
We'd love the hear your suggestions and review your pull requests, but keep in mind that is repo is for internal projects first.