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

wicked-coolkit

v1.1.2

Published

The Heroku Wicked Coolkit

Downloads

126

Readme

wicked-coolkit

A fun, nostalgic web toolkit built on Heroku and Salesforce. Check out wickedcoolkit.com for instructions on how to create your own.

This repo contains the wicked-coolkit package, which is both the Lightning Web Components and the accompanying API routes.

Developing

Local Dev

Start by running npm run watch. This will start a watcher to compile the Lightning Web Components and a watcher for the API server.

Run npm run build && npm run serve to serve a production version of the built files.

Run npm run dist to package all the code and assets for publishing to npm. This is also run automatically when running npm publish.

All web components are within the client/modules folder. The Express server and related database and Salesforce routes can be found in the server folder.

When running locally (and testing against a local database or Salesforce scratch org), you can create a .env file with the following variables:

DATABASE_URL=postgres://localhost:5432/heroku-wicked-coolkit
SALESFORCE_URL=https://test.salesforce.com

Publishing

You can use the np package to make publishing easier. Install the package and then you can run:

np [patch | minor | major] --no-cleanup --no-tests

This will publish and open a GitHub release draft.

Once published wickedcoolkit.com and wicked-coolkit-user should be run with npm install wicked-coolkit@latest and deployed with the new version. This will force any new changes to be updated automatically instead of waiting for CDN changes to propagate via unpkg.

Updating

If you are updating this package in your repo, you can check out the releases to see what's changed. This repo adheres to semver so it should be safe to update except between major versions.

If you deployed to Heroku you can run the following to checkout the latest code and deploy it. The only prerequisite is that you install the Heroku CLI.

git clone [email protected]:fostive/wicked-coolkit-user.git
cd wicked-coolkit-user
heroku git:remote --app=YOUR_HEROKU_APP_NAME
git push heroku main

Breaking Changes

If you are updating your repo that you deployed via wicked-coolkit-user to a new major version, you'll want to make sure that the installed version of wicked-coolkit matches that version in the script tags on your page.

So if in your repo has 2.0.4 installed, you'll want to update any Hit Counter and Webring <script> tags on your sites so that the src contains wicked-coolkit@^2.0.4.

The easiest way to find out what version you have installed is to go to /getting-started on your server and it will show you the correct code to copy and paste into your site.

Here's an example script tag for the Webring that is pulling in version 2.0.4.

<script
  type="module"
  async
  src="https://unpkg.com/wicked-coolkit@^2.0.4/dist/webring.js"
></script>