- Code splitting - via webpack
- Babel 7
- Gulp 4
- scss / postcss
- Remove unused css - via purges
- SVG symbols
- Handle any static file type, compress images, css, etc
- eslint
- stylelint
- prettier
- jest
- clone the repo
- install the dependencies (npm install / yarn)
- run
npm run gen-cert
to create https tokens - add an empty database via Sequel Pro
- update your
.env.php
file to include local DB details cd
into yourdeploy
folder and runcomposer update
- run
./craft setup/security-key
and create a security key, you can then abort this task and copy the key into your.env.php
file - create a MAMP or Valet instance that points to your local domain
- update the
proxy
setting in yourconfig/path.config.json
file to point to your local domain (setup in MAMP / Valet) npm run start
will boot up the cms servernpm run build
will create a production build to use with craftcms
src/js/app.js
main entry point for webpacksrc/scss/style.scss
main scss file, includes tailwind importsdeploy
craftcms lives heredeploy/public
the public root folder
npm start
npm run build
npm run deploy
npm run gen-cert
npm run lint:js
npm run pretty
npm run generate-docs