- 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-certto create https tokens - add an empty database via Sequel Pro
- update your
.env.phpfile to include local DB details cdinto yourdeployfolder and runcomposer update- run
./craft setup/security-keyand create a security key, you can then abort this task and copy the key into your.env.phpfile - create a MAMP or Valet instance that points to your local domain
- update the
proxysetting in yourconfig/path.config.jsonfile to point to your local domain (setup in MAMP / Valet) npm run startwill boot up the cms servernpm run buildwill create a production build to use with craftcms
src/js/app.jsmain entry point for webpacksrc/scss/style.scssmain scss file, includes tailwind importsdeploycraftcms lives heredeploy/publicthe 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