Skip to content

jonathantneal/wp-theme-scaffolding

Repository files navigation

WP Theme Scaffolding

Skeleton markup for new WordPress themes.

Features

Stylesheet files are compiled from Sass with libsass.

JavaScript files are combined and compressed with UglifyJS, and quality is enforced with JSHint.

PHP quality is enforced with PHPCS.

Git hooks are available to compile, compress, and re-add files to the repository before each commit.

A watch task is included that supports live reloading of CSS and JS files. To enable live reload in your theme, add a script tag before your closing </body> tag pointing to the live reload script:

<script src="//localhost:35729/livereload.js"></script>

Scaffolding

/theme
.. /assets
.. .. /css
.. .. .. /src
.. .. /images
.. .. .. /src
.. .. /js
.. .. .. /src

.gitattributes
.gitignore
.jshintrc

Gruntfile.js
package.json
project.ruleset.xml
style.css

Stylesheets

Stylesheets go into the assets/css directory.

Scripts

Scripts go into the assets/js directory.

Images

Images go into the assets/images directory.

About

Skeleton markup for new WordPress themes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published