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

gulp-layout-assembly

v1.0.4

Published

GULP assembly for layout automation (Pug, Stylus) Ver. 1.0.3

Downloads

24

Readme

GULP assembly for layout automation (Pug, Stylus)

version 1.0.4 (require)

Launch of the projects

npm install

Project development

npm start

Live HTML

http://localhost:8080

Production

npm run build

Cleaning

npm run clean

Using - changes in the configuration (./gulp/config.js) file

Input directory

Input Folder (directory) where the project's source files are located const inputDir. Default: "src"

Build folder

Folder for the final build of the project in Production const buildFolder. Default: "build"

Development folder

Folder for the working build of the project in Development const developFolder. Default: "dev"

Notification messages

You can disable annoying messages (Mac Notification Center, Linux notifications or Windows native toaster) by setting const notify to false Default: "true". Or you can turn off notifications in the your OS.

HTML autocomplete path

HTML autocomplete path will be relative or absolute for each target file. Absolute File Paths (../dir) or Relative File Paths. You can use Absolute Paths by setting const relativePath to false. Default: "true"

HTML Validator

HTMLHint Static code analysis tool for HTML. You can disable HTML Validator by setting const const htmlValidator to false. Default: "true".

BEM Validator

Block Element Modifier You can disable BEM Validator by setting const const bemValidator to false. Default: "true".

Purge CSS

Purge CSS is a feature for removing unused CSS

[!WARNING] Be VERY careful - disabled by default! You can enable CSS purge by setting const purgeCSS to true. Default: "false".

Font Face Generator

Generates a CSS file with the font name @font-face and its parameters: font-family, font-style, font-weight. More details Const fontFaceGen options available: del - will delete the "fonts.css" file if it exists and create a new one. add - adds to an existing "fonts.css" file or creates a new one. skip - does not change the existing "fonts.css" file or creates a new one if it does not exist. Default: "add"

ESLint 8

"Rules":

  • "strict" "use strict" literal at the beginning of a script or function body. It enables strict mode semantics.
  • "semi" - semicolon ( ; ) at the end of a sentence.
  • "no-control-regex" - disabled regular expression control.
  • "eqeqeq" - expected values or strict condition set as warning.

The following checks are commented out:

  • "curly": "error" - getting error for curly brace ( {} ) on line group statements within a control flow structure like if, else, for, while, and functions.
  • "quotes": ["error", "double"] - getting error for using double quotes ( "" ) in a string in JS If you need it just uncomment in ./gulp/js.js

JS Bags AutoFix

ESLint can automatically fix some JS problems (autofix). Old files are saved in SRC/js/js_old (with each new launch the files will be overwritten). You can disable JS Bags AutoFix by setting const jsAutoFix to "false". Default: "true".

Version:

  • 1.0.2
    • written intentionally with "require";
    • removed the use of "global";
    • no more cyclical calls.
  • 1.0.3
    • added new modules:
      • BEM Validator (Block Element Modifier (BEM) )
      • HTML Validator (HTMLHint Static code analysis tool for HTML - final check after all modifications)
  • 1.0.4
    • live reload patched;

Information about the modules used is given in Modules.md

Special thanks to HeyCisco, from whom I spied a lot of things.