7.1.7 • Published 6 months ago

deployer-lib v7.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

Installation

Additional configuration parameters

Upload only the compiled version without previous generation

--deploy

Run the project with the custom build command "build:dev"

--buildcommand "build:dev"

You can always use the --help or -h command to get help with the commands.

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! 🚀

7.1.7

6 months ago

6.1.7

9 months ago

5.1.7

9 months ago

5.0.7

9 months ago

5.0.6

9 months ago

5.0.5

9 months ago

5.0.4

9 months ago

4.0.4

9 months ago

4.0.3

9 months ago

3.0.3

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.0

9 months ago