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

cronofy-elements

v1.60.2

Published

Fast track scheduling with Cronofy's embeddable UI Elements

Downloads

66,933

Readme

Cronofy UI Elements

A suite of embeddable components that access the Cronofy API.

Full documentation can be found here: docs.cronofy.com/developers/ui-elements

Information about installing via npm can be found here: npm.README.md

Developer documentation

To setup the development environment, run:

make init

You will need to ensure /src/js/env.js is updated with your local development settings. See /src/js/env.example.js for an example of this.

To start development, run:

make dev

If using powprox for local API hosting (our default) you can set an environment variable to tell Node about a custom root CA in your .bash_profile or equivalent:

export NODE_EXTRA_CA_CERTS="$HOME/.powprox/ssl/ca/pow-root-ca.crt"

Alternatively, though not recommended, you can disable all TLS verification:

NODE_TLS_REJECT_UNAUTHORIZED=0 make dev

This will watch the source files and rebuild whenever you save changes. It will also host the demo app (demo/index.ejs) on port 8080

You can make a one-off development build (without watching the files or serving the demo) using:

make build_dev

You can make a production build with:

make build

To bump a patch version (e.g. from 0.0.1 to 0.0.2) and make a production build, run:

bump_patch

To bump a minor version (e.g. from 0.1.0 to 0.2.0) and make a production build, run:

bump_minor

To bump a major version (e.g. from 1.0.0 to 2.0.0) and make a production build, run:

bump_major

Releasing

Once you've got a feature branch which has been PR'ed and approved, do the following on the feature branch:

💡 Be sure to have your branch is up to date with master. This is to be sure that when running the following steps, it won't bump the version to an incorrect number

  • cd js/elements

  • Run make bump_patch , make bump_minor or make bump_major based on the type of release

  • Commit the package.json change: git add .; git commit -m"Bump to v<version>"

  • Create an annotated tag: git tag -a v<version> -m "summary of changes"

  • Push! git push && git push --tags

  • Merge the PR

  • Go to the monorepos Github Actions and trigger "Elements release": https://github.com/cronofy/cronofy/actions/workflows/elements_release.yml This will build a fresh artifact, push it to S3 and update NPM. There can be a delay before the version shows up on NPM: https://www.npmjs.com/package/cronofy-elements

  • Once the version shows up on NPM, add a new entry to the elements_changelog.json and update the version number for elementsVersion in config.json in the Docs project to announce it to the world!

Things that need to be published in order to call a UI Element change "done"

  • new build file added to S3 bucket (so that it shows up at this URL: https://elements.cronofy.com/js/CronofyElements.vNEW_VERSION_NUMBER.js)
  • publish changes to NPM (checkable here: https://www.npmjs.com/package/cronofy-elements)
  • Add changes to docs if user-facing API has changed
  • Update v# and changelog in the docs (only do this after the S3 URL is available)