bestlearner is a custom bestlearner created with underscore theme, which includes foundation basic grid system and some basic customizer settings which are required in almost all projects.
-
WordPress Customizer is already setup with some basic customizer settings.
-
Webpack configuration with all required packages to develop theme.
-
Basic foundation grids.
-
Stylelint, eslint and postcss configuration.
-
CSS fixes, in underscore and helpful CSS classes.
-
Some helpful php functions.
and more..
Setup theme and install packages.
Note: After install packages, it will prompt for theme name. Once theme setup complete for development, it will remove git directory.
npm run init
npm run update-deps
npm run dev # During development
npm run prod # When ready for production
npm run clean
npm run pot
- Use
npm run lint-css
to lint scss files. - Use
npm run lint-js
to lint js files.
This precommit
script will lint your scss, js files and also generate pot file.
npm run precommit
- For assets, make sure you watch and sync
manifest.json
file, otherwise assets will not found on server.- For
npm run dev
compiled file name will be normal. - For
npm run prod
compiled file name with content hash.
- For
- Sync complete
build
directory on server. - Before code push to repository, make sure you lint your code using
npm run precommit
command.
Good luck!