npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wordpress-theme-boilerplate

v1.0.0

Published

A WordPress theme boilerplate

Downloads

53

Readme

WordPress Theme Boilerplate

This repository contains another simple but powerful boilerplate for creating WordPress themes. It is based on this frontend-boilerplate.

Introduction

This boilerplate will be updated and extended by time. If you have suggestions or any need of change, you're welcome to open an issue. It aims to be a modular, easily extendable, easy to setup and system independent boilerplate which you can setup within seconds.

As it is based on the frontend-boilerplate it includes many functionalities provided by it. Checkout this documentation as well.

Requirements

You need to have:

  • 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 management

Also recommended is:

All scripts and tasks are fitted to OSX/Linux so you may experience weird behaviour on Windows or others.

Getting started

The bootstrap task for your next theme is very easy:

  • Pull the latest master from this repository and copy all files into your new project's folder or
  • Fork this repository

Next 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

Development

When you are coding just run

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.

Workflow

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.

Special Thanks

This boilerplate was made possible by all these cool and powerful tools that are running in the background and help us every day.

Open Source ist awesome!

Tools used:

Thank you!

License

This software is under MIT License. You are free to copy, modify, distribute this boilerplate. You can build your own boilerplate upon it or bootstrap a theme out of it.

However this software uses several tools and programs which have different licenses.