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

dwupload

v3.8.2

Published

Upload storefront cartridges to Salesforce B2C Commerce WebDAV server

Downloads

47,164

Readme

dwupload

Upload a storefront cartridge to a Demandware WebDAV server from command line.

Who do I talk to?

Contributing

  1. Create a fork, if you don't already have one
  2. Ensure your fork is caught up (message from Bitbucket shows up on your fork main page, if you are not current on commits)
  3. Create a new branch in your fork to hold your changes
  4. Submit a pull request

Installation

:; npm install -g dwupload

Instead of installing this as a global npm package, you can install it locally and access it as ./node_modules/.bin/dwupload.

Usage

# uploading a cartridge
:; dwupload --hostname example.demandware.net --username admin --password password --cartridge app_storefront_core  --code-version version1

# uploading file(s) using configuration in `dw.json`
:; dwupload --file path/to/app.js --file path/to/style.css

# watch for file changes and upload automatically
:; dwupload watch --cartridge app_storefront_controllers

# delete a file, with root option
:; dwupload delete --file rootDir/path/to/file --root rootDir

# 2-factor authentication
:; dwupload --hostname cert.example.demandware.net --username admin --password password --p12 admin.p12 --passphrase passphrase
:; dwupload --hostname cert.example.demandware.net --p12 admin.12 --passphrase passphrase --self-signed

# get version information
:; dwupload version

In case you're running the command within an other directory than the cartridges directory, don't forget to use the --root option (in the command or in the dw.json file) See --help for more information.

Exclude patterns

Exclude patterns can be declared via the -x or --exclude flag. This work for both file and folder exclude patterns. For example:

*.swp
**/node_modules/**

Please note that the ** after the folder name is important. Without it, child directories of node_modules would still be included.

Config file

Instead of passing command line options every single time, you can store your config options in a dw.json file in the current working directory instead. For example:

{
        "hostname": "example.demandware.net",
        "username": "user",
        "password": "password",
        "cartridge": ["cartridgeA", "cartridgeB"],
        "root": "path/to/root",
        "code-version": "version2",
        "p12": "path/to/file.p12",
        "passphrase": "passphrase"
}

Command line options will always override the options declared in the config file.