A WordPress theme boilerplate
As it is based on the frontend-boilerplate it includes many functionalities provided by it.
Checkout this documentation as well.
Composer installed. You can use it system-wide or locally in your project. Checkout the documentation for more information.Node.js (and npm) installed to your system (I tested it with v6.2.1)Bower installed for vendor package managementAlso recommended is:
* gulp-cli (npm install -g gulp-cli)
All scripts and tasks are fitted to OSX/Linux so you may experience weird behaviour on Windows or others.
master from this repository and copy all files into your new project's folder orNext step is to install all (development) dependencies: composer install.
You may also follow this short todo list to change the package meta information:
1. Update composer.json, package.js and bower.json with your details
2. Update theme details in style.css
3. Updated PHPDoc comments of functions.php, includes/theme.php
4. Update global constants in functions.php
5. Maybe change the license
6. Extend or remove the humans.txt
7. Update the coding standard in .editorconfig, .eslintrc and .sass-lint.yml to your needs
8. Remove the CHANGELOG
9. Remove/Clear this readme file
npm start
`
or use the gulp-cli to run custom or separated tasks
`
gulp lint
`The
default and watch gulp task will watch the files and compile them if a change was detected.
npm start will just run the gulp default's task.#### Linting
You can lookup all SCSS linting rules here: https://github.com/sasstools/sass-lint/tree/develop/docs/rules.
There are more detailed information about what is wrong.
$3
There's already a configuration for the GitLab CI. On every push it triggers a linting.
On pushes to master it will build an artifact. The general workflow would be developing in a develop branch,
while merging into a master branch means a release.If you want to use another CI or compile it locally you can use the gulp
build tasks defined in gulpfile.js`.Tools used:
* Composer
* Node.js
* Bower
* Gulp
* Babel
* ESLint
* SASS
* sass-lint
* UglifyJs2
* UglifyCSS
* ... and many more!
* ... and all their subpackages
Thank you!
However this software uses several tools and programs which have different licenses.