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

xvtx

v1.0.25

Published

CLI VTEX utils

Downloads

14

Readme

xvtx

npm

NPM

A simple vtex cli for basic things. Hurry up don't waste your time, do these commands in your terminal:

Installation


$ npm install -g xvtx

xvtx global usage


$ xvtx deploy

Provide your email and account name to login, after wait the upload processes.

xvtx.lock.json

The process will generate a xvtx.lock.json file in root path of your project.

This file is used to cache files and prevent upload files with same content, we recomend to not delete or ignore this file.

xvtx.auth.json

The process will generate a xvtx.auth.json file in root path of your project.

This file is used to cache your auth login cookie, we recomend to ignore this file in .gitignore.

Commands

Help


$ xvtx -h

Download all templates from vtex platform


$ xvtx syncTemplates

$ xvtx syncTemplates --template template1.html
to download a unique template

Deploy auto provide account and email


$ xvtx deploy --account <accountName> --email <email>

Force update all files ignoring lockfile


$ xvtx deploy --force

Deploy Template Files


$ xvtx html

$ xvtx html --template template1.html

$ xvtx html --template template1.html --create true

Deploy SubTemplate Files

  • | When creating it, a generic class "robotCreatedThisTemplate" are added*

$ xvtx sub

$ xvtx sub --template template1.html

$ xvtx sub --template template1.html --create true

Deploy ShelvesTemplate Files


$ xvtx shelf

$ xvtx shelf --template template1.html

$ xvtx shelf --template template1.html --create true

Deploy Assets Files "/arquivos" only


$ xvtx defaultAssets

$ xvtx defaultAssets --file file1.js,file.2.css

$ xvtx defaultAssets --file file1.js

List assets that can be uploaded to /arquivos


$ xvtx listAssets

Change log

1.0.25

  • Sync templates minor bugfixes: added retry function when templates download get fail or get some vtex plataform error.

1.0.24

  • Added individual template download by using "--template" parameter in xvtx syncTemplates, usage: "xvtx syncTemplates --template templateName.html"
  • Minor bugfixes

1.0.23

  • Bugfixes on xvtx syncTemplates

1.0.22 see more by using "xvtx [command] -h"

  • Added individual file upload by using "--file" argument
  • Added list file upload by using "--file file1.js,file2.css" argument
  • Added individual template upload by using "--template" argument
  • Added template creation parameter by using "--create true" argument

Thanks

This project is a simplified and modified version of Guilherme Paiva project, so great thanks to Guilherme Paiva, really.

Next steps

Config file to set template folders

Create a changelog and deprecation log

CLI task to download assets files

Template for es6 scripts components

Template for new "mundinho" scripts

Template for new "mundinho" styles

CLI task to delete assets files

CLI task to delete template files (impossible at this time)