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

socialwpats

v1.2.0

Published

Drupal demo theme for Open Social including styleguide

Downloads

66

Readme

Social Blue

Social Blue is made to provide as a demo as well as a default style for Open Social. This is a sub theme of socialbase.

Social Blue uses Gulp.js as a task runner, so that it can do many tasks automatically:

  • Build CSS from your Sass using libSass and node-sass.
  • Add vendor prefixes for the browsers you want to support using Autoprefixer.
  • Build a style guide of your components with KSS-Node.
  • Watch all of your files as you develop and re-build everything on the fly.
  • Set up to deploy your style guide to a custom location

What can I do with this theme?

The safest and fastest way to get started is to duplicate this theme and rename it to your custom theme name. You need to make sure all instances of 'socialblue' are renamed to guarantee a proper working theme. Socialblue itself will be updated in the future with new features, so it is best not to make changes. You might lose it when updating.

If you want to utilise the gulp plugins we have provided you need to install the plugins again, via yarn install (which will read the package.json file).

As you can see in the info file, we are mostly extending the socialbase libraries with the socialblue variant. This means there is a relation between the two and because we load some libraries via twig files conditionally this ensure we are not forgetting to load the 'styling' layer for a component.

You can override template files just like in any other theme. Just create a templates folder and put you new template files there.

Any questions or feedback? Create an issue on drupal.org

Getting started with your sub theme

Drupal settings

Before you start theming there are a few things that might be convenient. In html/sites/default there is a services.yml file. Make sure to set

  • twig.config -> debug: true
  • twig.config -> auto_reload: true
  • twig.config -> cache: false

Also in sites default you will find an example.settings.local.php file. Duplicate this file and remove the example part. After you have configured these files you need to rebuild the caches. This will speed up you development process.

Working with Gulp

  1. Install Yarn, see their website for documentation

  2. Install the gulp-cli tool globally. Normally, installing a Node.js globally is not recommended, which is why both Gulp and Grunt have created wrapper commands that will allow you to run "gulp" or "grunt" from anywhere, while using the local version of gulp or grunt that is installed in your project. To install gulp's global wrapper, run:

    npm install -g gulp-cli
    
  3. The package.json file contains the versions of all the node packages you need. To install them run:

    yarn install
  4. Set the URL used to access the Drupal website under development. Edit your gulpfile.js file and change the options.drupalURL setting:

    options.drupalURL = 'http://localhost';
  5. There are different gulp tasks. What each gulp task does is described in the gulpfile with the task itself. To run a gulp task, type:

    gulp [taskname]