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

@ouc/distribute-software

v2.0.3

Published

Distrubute OUC software to our various systems.

Downloads

1

Readme

@ouc/nextcloud-distribute

Access nextcloud and distribute ouc product releases.

Dependencies

Installation

The package is published on npmjs.com. Just run this command:

npm install @ouc/distribute-software --save-dev

Configuration

Make sure that the appropriate environment variables are set in the project.

/* Usually set by bitbucker automatically */
REPO_SLUG -> important for the creation of the file name
BRANCH_NAME -> important for the creation of the file name

/* Only required on upload to nextcloud */
NEXTCLOUD_USER -> nextcloud credentials
NEXTCLOUD_APP_PASSWORD -> nextcloud credentials
NEXTCLOUD_URL -> Your nextcloud host
NEXTCLOUD_SLUG -> base path of the desired place for the zip file on nextcloud (e.g. /Software-Intern/ousp-vacationmanagement)

/* Only required on upload to docker hub */
DOCKER_HUB_REPOSITORY -> docker hub repository name
DOCKER_HUB_USERNAME -> docker hub credentials
DOCKER_HUB_PASSWORD -> docker hub credentials

/* Only required on upload to chartmuseum */
CHARTMUSEUM_URL -> helm chartmuseum url
CHARTMUSEUM_USERNAME -> helm chartmuseum credentials
CHARTMUSEUM_PASSWORD -> helm chartmuseum credentials

Usage

The package takes care of the correct creation of the ZIP-file name. All you have to do is, call the script with the desired version.

node node_modules/@ouc/distribute-software upload <version> -h <path/to/helm-chart> -n <path/to/dist-folder> -d <docker-build-tag>

ℹ️ Upload to nextcloud also generates a .zipFilePath file, which includes the path to the generated zip file for further usage, e.g. bitbucket file upload.

E.g.

bitbucket-pipelines.yml

 - step: &deploy-artifacts-docker
        name: Deploy artifacts and Docker images (hub.docker.com)
        image:
          name: oneunity/docker-compose
          username: $DOCKER_HUB_USERNAME
          password: $DOCKER_HUB_PASSWORD
        caches:
          - docker
          - npm
          - node
        script:
          - *git-auth
          - *git-checkout-stashed-hash
          - *docker-build
          - PACKAGE_VERSION=$(node -p "require('./package.json').version")
          - node node_modules/@ouc/distribute-software/ upload $PACKAGE_VERSION -n ./dist/prod -d vacationmanagement:build
          - pipe: atlassian/bitbucket-upload-file:0.3.3
            variables:
              BITBUCKET_USERNAME: "${BITBUCKET_USERNAME}"
              BITBUCKET_APP_PASSWORD: "${BITBUCKET_APP_PASSWORD}"
              FILENAME: "$(cat .zipFilePath)"

Jira

To use the automatic version and asset management on Jira, the following environment variables must be defined: JIRA_HOST, JIRA_USER, JIRA_API_TOKEN, JIRA_PROJECT_ID.

Jira NEXT version

To create a new NEXT release, the -jn parameter must be used.

e.g.

node node_modules/@ouc/distribute-software/ upload $PACKAGE_VERSION -jn

Here the current NEXT version will automatically be renamed and a new one created.

Jira release version

To create a new NEXT release, the -jr parameter must be used.

e.g.

node node_modules/@ouc/distribute-software/ upload $PACKAGE_VERSION -jr

Jira Assets

To use the automatic version and asset management on Jira, the following environment variables must be defined: JIRA_HOST, JIRA_ASSET_WORKSPACE_ID, JIRA_ASSET_APP_NAME, JIRA_ASSET_PRODUCT_CAT.

Jira asset create

To create a new asset, the -jac parameter must be used. e.g.

node node_modules/@ouc/distribute-software/ upload $PACKAGE_VERSION -jac

Jira asset release

To release a existing asset, the -jar parameter must be used. e.g.

node node_modules/@ouc/distribute-software/ upload $PACKAGE_VERSION -jar