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

contentful-management-jobs

v0.3.0

Published

Package that contains a bunch of common Contentful content management jobs. Bulk migrations, queries, edits and updates to content entries, assets and content models whould be done using this packaage.

Downloads

8

Readme

Contentful Management Jobs

Package that contains a bunch of common Contentful content management jobs. Bulk migrations, queries, edits and updates to content entries, assets and content models whould be done using this packaage.

Jobs

Note: Please use great care in updating customers content

Required .env Variables

CONTENTFUL_SPACE_ID
CONTENTFUL_MANAGEMENT_API

Jobs

Bulk Asset Upload

The Bulk Asset Uploader will allow you to upload a batch of assets that are located your local machine.

  1. Create a Folder on your machine with all of the valid assets (Img PDF Video etc), that you want to upload to Contentful
  2. Update the BASE_FOLDER_PATH with the root folder location of the images you want to import
  3. Open your terminal and run npm run bulk-asset-uload
  • It will import all images including sub folders
  • It will create the asset with the ID based on a hash value of the relative path of the image. You want to ensure that the image path is unique and represents how it is using in the content import

Required Global File Variables

  • IS_DEBUG_MODE: Onyl prints out the image local paths and if it will be uploaded or skipped
  • BASE_FOLDER_PATH: The local folder to import assets from
  • FOLDERDELIMETER: Must be alphanumeric characters, dots (.) hyphens (-) or underscores ()
  • INVALIDFILE_DELIMETER: Must be alphanumeric characters, dots (.) hyphens (-) or underscores ()

YAML to Contentful Import

The YAML to Contentful Import is a job that allows you to specify one directory at a time, one main content type at a time. It will allow you to override fields with your own values by using functions.

Required Global File Variables

  • CONTENTFUL_CONTENT_TYPE_TO_IMPORT = 'accelerator'; // The main content type that is being imported
  • LOCALE = 'en-US'; // The locale of the content type
  • MAX_NUMBER_OF_FILES = 2; // The maximum number of files to import at once, used for debugging purposes
  • BASE_FOLDER_PATH = '/Users/bradtaylor/Desktop/yaml/accelerators'; // The local folder to import yaml files from
  • ENVIRONMENT = 'yaml-test'; // make sure you update the environment;
  1. Create a folder on your machine that has all of the yaml files you want to import (it will exclude directories)
  2. Update all of the required global variables
  3. Open the terminal and run npm run bulk-asset-uload

Remote Asset Upload

The Remote Asset Import is a job that allows you import assets from a remote location.

Required Global File Variables

  • CONTENTFUL_SPACE_ID=
  • CONTENTFUL_DELIVERY_TOKEN=
  • CONTENTFUL_MANAGEMENT_API=
  • CONTENTFUL_ENVIRONMENT=
  • CONTENTFUL_HOST=
  1. Run yarn run remote-asset-import