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

wp-workflow

v2.4.0

Published

Gulp workflow for WordPress development

Downloads

10

Readme

GitHub GitHub GitHub

WP-Workflow

WP Workflow is a powerful Gulp workflow for making Developing WordPress themes easier and more productive ⌛.

How to use

Instructions

install wp-workflow package globally npm install wp-workflow -g

  • for development:

    1- Go to your WP project wp-content/themes
    2- open terminal.
    3- run wp-workflow
    4- wait untill installing project and answer prompt questions
    5- run npm start and then start development.

  • for production
    1- Go to your theme directory.
    2- run npm run build.

need to work again on it! just run `npm start`

WP-Workflow Capabilities

What WP-workflow can do?

CSS Features

  • convert sass to css.
  • add auto prefixes to css for last 5 versions of browsers "you can edit it in .browsersistrc file".
  • create .map file for css if you are on development mode.
  • minify css files and remove .map files while building.

JS Features

  • Compile ES6, and beyond to ES5.
  • create .map file for JS if you are on development mode.
  • minify js files and remove .map files while building.
  • remove console.log and debuggers from JS while building the project.

Images Features

  • Compress static images.
  • move compressed static images from src folder to images folder in dest.

Live Server Features

  • open live server after finish all basic tasks "styles, scripts, images".
  • reload server if there is changes in any files or folder.

Create compressed file

wp-workflow can prepare your theme for publishing by compressing it in a .zip file if you want to create that copressed file.

  • npm run build --prod.
  • wait to finish bundling files
  • you will be asked for if you want zip file or not choose yes to create copmressd file, "the compressed file will be created in project root".
  • if you choose no, wp-workflow will only minify css, js, and images.

code formating and linting

If you are working with team in the same project that could be harder if you didn't use clean code guides, and it goes more harder while writing js without any hints in your code and have errors so, wp-workflow foucus on solving these problems by using prettier to standardize the code formating accross the project from developer to another, and by using editor config we try to unificate the basic configurations from editor to another, and to make developing js more easier and prettier as we use eslint to show errors and worning while writing code.

Project folder structure

localhost
├── wordpress project
│   └── wp-content
│       ├── themes
│       │   └── theme name
│       │       ├── dest
|       |       |   ├── css
|       |       |   |   └──compiled css files
|       |       |   |── js
|       |       |   |   └── compiled js files
|       |       |   └── images
|       |       |       └── compiled images
│       |       ├── src
│       |       |   |──sass
│       |       |   |   |── animations
|       |       |   |   |   └── files.scss
│       |       |   |   |── base
|       |       |   |   |   └── files.scss
│       |       |   |   |── components
|       |       |   |   |   |── pages
|       |       |   |   |   |   └── files.scss
|       |       |   |   |   └── files.scss
│       |       |   |   |── pages
|       |       |   |   |   └── files.scss
|       |       |   |   └── main.scss
|       |       |   ├── scripts
│       |       |   |   |── components
|       |       |   |   |   |── pages
|       |       |   |   |   |   └── files.js
|       |       |   |   |   └── files.js
|       |       |   |   |── pages
|       |       |   |   |   └── files.js
|       |       |   |   └── main.js
|       |       |   └── images
|       |       |       └── image.png
|       |       ├── inc
|       |       |   └── php files
|       |       |
|       |       ├── templates-parts
|       |       |   └── php files
|       |       |
|       |       └── wp templates
|       |
│       └── index.php