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

pineapple-library

v3.2.3

Published

CSS and Javascript web development library that supplements Bootstrap.

Downloads

196

Readme

Pineapple

CSS and Javascript web development library that supplements Bootstrap.

Build Status NPM Licence

Pineapple came about as a way to help me quickly build "brochure-style" websites some years ago. I found I was copying and pasting a lot of custom CSS around my projects to extend Bootstrap's library and decided to build my own. Over the years as Bootstrap evolved, certain Pineapple functions were removed in favor of the better battle-tested Bootstrap equivalent. Pineapple still serves as a nice addition to any Bootstrap project.

Notable Features:

  • Full-screen banners, YouTube videos, and Bootstrap carousels with incredible customization for overlaid text, images, and buttons
  • Beautiful sliding animations (full page and individual components)
  • Page loader animation
  • Countdown timer with custom messaging
  • Fading and appearing navbar
  • Icons, cards, and slanted background sections
  • Dynamic screen-sized fonts, buttons, and more

Install

Pineapple has been compiled into CSS from SCSS and JS. You will find either the beautified or minified equivelant of each along with source maps.

CDN

<link
  href="https://cdn.jsdelivr.net/npm/[email protected]/pineapple/dist/css/pineapple.min.css"
  rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/pineapple/dist/js/pineapple.min.js"></script>

NPM

npm install pineapple-library

Composer

composer require justintime50/pineapple

Webpack & Vite

NOTE: Requires Pineapple v2.2+

Once installed via NPM, include one of the following in your Webpack or Vite configs and compile your project:

// Require
window.pineapple = require('pineapple-library/pineapple/dist/js/pineapple');

// Import
import pineapple from 'pineapple-library/pineapple/dist/js/pineapple';
window.pinapple = pinealle;

SCSS

To import the project's SCSS, use the following line in your project:

@import 'pineapple-library/pineapple/scss/pineapple';

Manual Download

  1. Clone the repo
  2. Manually import the Pineapple assets to your project
git clone https://github.com/justintime50/pineapple.git

The Pineapple CSS has been compiled into three separate bundles:

  • pineapple includes everything
  • pineapple-styles includes everything but the grid and animations CSS and can be used without the accompanying JS
  • pineapple-utilities includes the grid and animations CSS which accompanies the JS

Pineapple, Bootstrap, & jQuery

Bootstrap

  • Pineapple v1 is compatible with Bootstrap v3 (requires jQuery)
  • Pineapple v2 is compatible with Bootstrap v4 and v5 (requires jQuery)
  • Pineapple v3 is compatible with Bootstrap v4 and v5

jQuery

  • Pineapple v1 and v2 require jQuery and is not compatible with the slim version of jQuery. Pineapple v3 and later does not require jQuery

Documentation

See the accompanying Documentation for more information.

Development

Visit pineappleplayground.localhost locally to test any changes.

# Lint CSS
npm run lint-css

# Lint JS
npm run lint-js

# Compile CSS from SCSS and JS assets
npm run compile

Releasing

  1. Bump version in package.json and composer.json
  2. Bump version in CHANGELOG.md
  3. Bump version in scss and js header comments
  4. Bump version in install instruction links in README.md
  5. Compile assets with npm run compile
  6. Cut a new Git tag which will automatically release to NPM and Packagist