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

lc-package

v2.1.2

Published

Lewis & Clark College LCC Primo view package

Downloads

3

Readme

primo-explore Lewis & Clark LCC view package

Setup

  1. Make sure you've installed and configured primo-explore-devenv or primo-explore-devenv-docker.
  2. Download this package with
git clone https://github.com/WatzekDigitalInitiatives/lc-package
  1. Set up the dev environment to point to this package folder.
  2. Navigate to the package folder and run npm install to pull in dependencies.
  3. Checkout the development branch with
git checkout develop

Developing

Git/GitHub

You can work in the develop branch. File a PR to master when you've finished working on and refactoring a customization.

Files

html

html added to the html/templates folder will automatically be compiled into js/customTemplates.js and added to angular's $templateCache.

if you've written templates that belong to a particular component or customization, consider refactoring your javascript into a module and adding the html in as a template literal, e.g.


angular
    .module('myModule', [])
    .component('myNewComponent', {
        template: `
        <div>
        here's the template that I wrote...
        I copy-pasted it from the file I put in html/templates while I was working
        but now it's ready for prime-time!
        </div>
        `,
        controller: function() {
            // etc.
        }
    })

this way, if the customization is published as a package, there is no dependency on external html or the usage of $templateCache.

js

You can add arbitrary .js files to the js directory to be compiled into custom.js. When code is ready to ship, it's a good idea to refactor it into an angular module and publish as an npm package, if applicable.

See the Alliance-PCJWG GitHub for examples of angular customization module packages.

After you refactor the code, remove the originals from the js directory (and any associated files, e.g. html templates) and then npm install --save-dev the package you've published.

This way, finished customization code is kept out of the js directory but still incorporated into custom.js, reducing visual clutter.

Using other packages

Adding packages published by others is as simple as npm install other-package --save-dev.

Fixing bugs

If you find a bug with a previously published customization package, file an issue on its repository. Fix the bug there, npm publish the fix, and then run npm update on this package.