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

mep-tools.base-spacing

v3.0.0

Published

Base spacing tool

Downloads

4

Readme

tools.base.spacing

Development notes

--

Packaging

Naming Modules

Modules should be named with the mep- prefix, followed by their full repo name, for example mep-utilities.clearfix

Naming Stylesheets

Stylesheets should be named with the (singular) type- prefix, followed by their individual name, for example _tool-base-spacing.scss

Conditions

  • Eyeglass aware modules must have the eyeglass-module keyword attached to them
  • The main path must match the top level module name, or the specificied eyeglass name (see code block below)

An example package.json should look something like this:

{
  "name": "mep-tools.base-spacing",
  "version": "1.0.0",
  "description": "Base spacing tool",
  "main": "stylesheets/_tool-base-spacing.scss",
  "eyeglass": {
    "needs": "^1.0.0",
    "name": "tool-base-spacing",
    "exports": "eyeglass-exports.js"
  },
  "keywords": [
    "eyeglass-module",
    "sass",
    "mise-en-place"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/mise-en-place/tools.base-spacing.git"
  },
  "author": "Kind",
  "license": "MIT"
}

--

Eyeglassifying

Structuring Modules

File structure for eyeglass modules should be as follows

tools.base-spacing
|-stylesheets
|--_tool.base-spacing.scss
|-eyeglass-exports.js
|-package.json

Making Exportable

To be exportable as an eyeglass mode, an eyeglass-exports.js file will be needed. It should consist of the following:

var path = require('path');

module.exports = function(eyeglass, sass) {
  return {
    sassDir: path.join(__dirname, 'stylesheets')
  }
}

Eyeglass Inception

Most of our eyeglass modules require their own eyeglass based dependencies, for example, most utilities depend on their tool counterparts. These need to be defined in the package.json as dependencies. As a basic example, the rem-calc tool depends on the type-config tool being available, therefore it's required as a dependency as below:

{
  "name": "mep-tools.rem-calc",
  "version": "1.0.0",
  "description": "Rem Calc Tool",
  "main": "stylesheets/_tool-rem-calc.scss",
  "eyeglass": {
    "needs": "^1.0.0",
    "name": "tool-rem-calc",
    "exports": "eyeglass-exports.js"
  },
  "keywords": [
    "eyeglass-module",
    "sass",
    "mise-en-place"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/mise-en-place/tools.rem-calc.git"
  },
  "author": "Kind",
  "license": "MIT",
  "dependencies": {
    "mep-tools.type-config": "github:mise-en-place/tools.type-config"
  }
}

--

Installation

Mise-En-Place requires the following to run: