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

@leocxy/ps-cli

v0.16.10

Published

Refactored Shopify Slate from 0.14.0

Downloads

3

Readme

Brief

Refactored Shopify Slate 0.14.0, replace the deploy method with Shopify Theme Kit and update the dependencies. So you can use the latest version of Node.js and NPM.

Table of contents

Installation

# npm
>npm i @leocxy/ps-cli
# yarn
>yarn add @leocxy/ps-cli

Usage

| Command | Usage | |---------------------|:--------------------------| | migrate | slate migrate [--options] | | watch/w | slate watch [--options] | | build/b | slate build [--options] | | deploy/d | slate deploy [--options] | | theme/t | slate theme [--options] | | pull/p | slate pull [--options] |

migrate

# npm
>npm slate migrate
# yarn
>yarn slate migrate

Converts an existing theme to work with Slate Structure.

watch

# npm
>npm slate watch [--options]
>npm slate w [--options]
# yarn
>yarn slate watch [--options]
>yarn slate w [--options]

Sets up the watchers for all theme assets and deploys the compiled versions to your shop.

build

# npm
>npm slate build
>npm slate b
# yarn
>yarn slate build
>yarn slate b

Compiles your theme files and assets into a Shopify theme, found in the dist folder. No files will be uploaded to your shop.

deploy

# npm
>npm slate deploy [--options]
>npm slate d [--options]
# yarn
>yarn slate deploy [--options]
>yarn slate d [--options]

Performs a fresh build followed by a full deploy; replacing existing files on the remote server and replacing them with the full set of build files, and removing remote files that are no longer in use.

theme

# npm
>npm slate theme [--options]
>npm slate t [--options]
# yarn
>yarn slate theme [--options]
>yarn slate t [--options]

List all themes in your store.

pull

# npm
>npm slate pull [--options]
>npm slate p [--options]
# yarn
>yarn slate pull [--options]
>yarn slate p [--options]

Pull specific theme from your store to your local machine.

Tests

For some reason, you might want to fork this project and refactor it. You can test it with the following command.

# at the root folder
>node ./src/index.js

# test the bin with build file
>node ./dist/index.js

# enable debug message
>DEBUG=1 node ./src/index.js

Common Issues

Mac M1/M2 Chip

The Shopify ThemeKit is not natively support the Apple M1/M2 chip. You might need to turn on Rosetta mode to run the ThemeKit.

fsevents

You might see this error message when you install the package. It is not impacted the package. Because I an not using the fsevents in this package.

warning Error running install script for optional dependency: "/xx/xxx/node_modules/gulp/node_modules/fsevents: Command failed.

Change Logs

0.16.10 -> Fixed Windows compatibility issues.

0.16.9 -> Bump up the dependencies

0.16.8 → Updated dependencies, and update the README.md

0.16.7 → live will not consider as a valid theme_id anymore. (config.yml)

0.16.6 → Fixed “scripts/vendor.js” does not exist will raise an error issue

0.16.5 → Add “download” command

0.16.4 → Fixed SASS warning message

0.16.3 → Fixed SASS compiled as CSS, file extension issue

0.16.1 → All “styles/.{sass,sass.liquid}” will compiled as “assets/.{css,css.liquid}”

0.15.9 → Fixed JS configuration issue

0.15.8 → Support Section Group “sections/*.json”

0.15.7 → Fixed SVG file compiled issue, removed source map for JS JS will not “uglify” Include all JS before “Babel” it

0.15.6 → Fixed “includes” issue

0.15.5 → Fixed “build” and “deploy” processes, and added “vendor.js” to the processes.

0.15.4 → Tidy up the overwrite method