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

deployer-lib

v6.1.7

Published

CLI tool to efficiently build and deploy frontend projects with optional image exclusions

Downloads

1,062

Readme

Deployer Lib

Deployer Lib

Deployer Lib is a command line tool that allows you to easily compile and deploy your frontend projects to remote paths. The library uses npm or yarn to manage dependencies and provides options to include or exclude images during deployment.

Features

  • Automatic Compilation: Compile your project using npm or yarn.
  • Efficient Deployment: Transfer compiled files to a remote path.
  • Image Exclusion: Allows the user to decide whether to upload images (jpg, jpeg, png, gif, svg, webp).
  • Beautiful Logs: Colorful and informative console messages for a better user experience.

Installation

To install the library globally, you can use the following command:

npm install -g deployer-lib

O, si prefieres usar yarn:

yarn global add deployer-lib

Usage

Once the library is installed, you can run it with the following command:

npx deployer-lib

You will then be prompted to enter the required information:

  • Select your package manager (npm or yarn).
  • Enter the remote path where you want to deploy your build.
  • Specify the local path of the build (default is build/).
  • Decide if you want to upload images.

Example of use

npx deployer-lib
What do you prefer to use to compile the project? 
> npm 
> yarn

Enter the remote or local route:
> /path/to/server

Enter the local path of the build (example: build/): 
> build/

Do you want to upload images (jpg, png, gif, svg)? 
> Sí

Second time

If you have already uploaded your compiled file once, you can choose the previous configuration you used, which was saved on the first run in the file deployer.lib.answers.json

image

Logs

During execution, you will see clear and colorful logs indicating the progress of each step, from compilation to deployment.

Example of logs

Starting the compilation of the project using npm...
Compiling successfully.
Compressing the build directory...
Build compressed successfully.
Copying the compressed file to the remote path: /path/to/server...
File copied successfully.
Uncompressing the file to the remote path...
Deployment completed successfully.

Contributions

If you want to contribute to Deployer Lib, feel free to open an issue or send a pull request!

I hope you find Deployer Lib useful! 🚀