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

lmr-brandplatform

v2.1.16

Published

Little Miss Robot brandplatform for hosting branding, assets, resources and styleguides for clients

Downloads

415

Readme

Little Miss Robot - Brandplatform (Core)

This repository contains the brandplatform npm package. The package defines the core functionality of every deployed branplatform. This package works very well with the Little Miss robot brandplatform boilerplate.

Installation

  1. Clone repository through an IDE or your terminal.
  2. Run npm install in your terminal to install dependencies.
  3. Run npm run start to start the development environment.
  4. The project is accessible at localhost:9000.

Simulate styleguide

const COMPONENT = button;
  1. Create the folder styleguide in /src
  2. Add folder components to /src/styleguide
  3. Add folder COMPONENT to /src/styleguide/components
  4. Create a file COMPONENT-page.njk within /src/styleguide/components/COMPONENT

Simulate component

const COMPONENT = button;
  1. Add a COMPONENT to /src/styleguide/components

  2. Create a file COMPONENT-page.njk within /src/styleguide/components/COMPONENT

  3. Pase this content into COMPONENT-page.njk

    {# ========================================================================== #}
    {# :: Info #}
    {# ========================================================================== #}
    {# {% set info %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: Modifiers #}
    {# ========================================================================== #}
    {# {% set modifiers %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: States #}
    {# ========================================================================== #}
    {# {% set states %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: JavaScript #}
    {# ========================================================================== #}
    {# {% set javascript %}
    
    {% endset %} #}
  4. Create a file COMPONENT-macros.njk within /src/styleguide/components/COMPONENT

  5. Paste this content into COMPONENT-macros.njk

    {# ========================================================================== #}
    {# :: Imports #}
    {# ========================================================================== #}
    
    {# ========================================================================== #}
    {# :: Default #}
    {# ========================================================================== #}
    {% macro default(classes, data) %}
    
    {% endmacro %}
  6. Create a file _COMPONENT-default.njk within /src/styleguide/components/COMPONENT

  7. Paste this content into _COMPONENT-macros.njk

    {# ========================================================================== #}
    {# :: Imports #}
    {# ========================================================================== #}
    {% import "components/COMPONENT/COMPONENT-macros.njk" as COMPONENT %}
    
    {# ========================================================================== #}
    {# :: Settings #}
    {# ========================================================================== #}
    {% set params = {
    	isFullWidth: false,
    	styleVendors: [],
    	scriptVendors: [],
    	order: 1,
    	scope: ""
    } %}
    
    {# ========================================================================== #}
    {# :: Info #}
    {# ========================================================================== #}
    {# {% set info %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: Preview #}
    {# ========================================================================== #}
    {% set preview %}
    
    	{{COMPONENT.default("", {})}}
    
    {% endset %}
    
    {# ========================================================================== #}
    {# :: Code #}
    {# ========================================================================== #}
    {# {% set code %}
    
    {% endset %} #}

Simulate Page - files

  1. Add folder pages to /src/styleguide
  2. Add file home.njk to /src/styleguide/pages

Simulate Page - folders

  1. Add folder pages to /src/styleguide
  2. Add folder home to /src/styleguide/pages
  3. Add file home-1.njk to /src/styleguide/pages/home
  4. Add file home-2.njk to /src/styleguide/pages/home

Scripts

  • npm run start: Start the development environment.
  • npm run build and npm run build:dev: Start building for development into ./dist folder.
  • npm run build:prod: Start building for production in to ./dist folder.
  • npm run server: Start nodemon server.

Publish

  1. npm run build make sure that the dist folder contains the latest build
  2. npm whoami should show you are logged in as littlemissrobot. These credentials can be found in our big vault in 1Password. Only employees of Little Miss Robot should have access. If this is not the case: good job, you hacked us!
  3. Update the package.json version number by choosing:
    • npm version major
    • npm version minor
    • npm version patch
  4. npm publish to publish the new version of the package to NPM.
  5. Good job! you are done, go get some fruit as a reward.

Contact

If there are any questions concerning this repo, you can always contact the lovely people mentioned below in chronological order:

  • Wouter Vandersyppe (DO NOT CALL BEFORE 11:00)

  • Jan Van Lysebettens

  • Collin Van der Vorst

  • Nele De Bruycker

  • Benoit Bosschaert

  • Sébastien Henau