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

@seivad/sync

v1.0.2

Published

Sync all of our packages with Composer, Git, NPM, etc...

Downloads

2

Readme

Sync Package

This package simplifies updating and syncing projects within your directories.

Simply provide a list of the directories you want to be automatically synchronized.

Currently supports the following:

  • NPM
  • Composer
  • Laravel / Artisan

Clone the package locally

Pull in the package locally to make adjustments / edits:

[email protected]:universaltechnology/SnapTrack/packages/sync.git

You can provide a custom projects.json file by saving this file in your user directory and running the following flag:

sync -p Sites/projects.json

Example projects.json File

[
	{
		"folder": "Sites/snaptrack/assets",
		"steps": ["npm", "composer", "artisan"]
	},
	{
		"folder": "Sites/snaptrack/auth",
		"steps": ["npm", "composer", "artisan"]
	}
]

Update Projects To Sync

To update the projects.json file after installing locally, navigate to the following folder directory to edit the file:

/usr/local/lib/node_modules/sync/projects.json

Note Do not forget to remove the final trailing comma to make this a valid JSON document, if you leave the final comma after the last object, it will throw an error.

Updates

To pull in updates of the globally installed package, run the following:

npm install -g @seivad/sync

Steps

Step Options Available

  • composer
  • artisan
  • npm

Order

Currently the options will run in the following order

  • composer
  • artisan
  • npm

Install the sync helper globally

To be able to run the sync helper from any directory, please install globally using the command below:

From the package

npm install -g .

From NPM Repository

npm install -g @seivad/sync

Run the Sync Helper

Examples include:

Defaults to local development environment and staging branch

node . 

or provide the specific development environment and branch you require

node . --branch master --env production

or if installed globally:

sync --projects Sites/projects.json

Composer

The Composer step will run the following command

  • composer update

Artisan

The Artisan (Laravel) step will run the following commands

  • php artisan migrate --force --no-interaction
  • php artisan config:clear
  • php artisan route:clear
  • php artisan cache:clear
  • php artisan queue:restart

NPM

The NPM step will run the following commands

  • npm install
  • npm run {environment; defaults to local}