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

html-base

v1.4.0

Published

HTML Initial Bundle

Downloads

35

Readme

HTML Base

License:MIT npm

HTML initial bundle for professional templates development

Why

  • Templates, themes prototyping
  • Integration with any CMS and frameworks
  • Modeling JavaScript applications
  • Routine web development tasks automation

Features

  • Advanced CSS Reset scss-reset
  • Basic SCSS Mixins Collection scss-mixins
  • (Not so) Old browsers support
  • Predefined VSC workspace
  • Initial JavaScript modules and SCSS files
  • Automated test tasks
  • A lot of useful open source included

Output

  • Clean, tested, beautified, optimized and/or compressed HTML/CSS/JS

Usage

by shell command

npx get-html-base project-name
cd project-name
npm i

or download html-base zip package for manual installation

JS mode install

Please add -js key

npx get-html-base project-name -js
cd project-name
npm i

Install by PMs

npm i html-base

or

yarn add html-base

or

pnpm i html-base

Next need to copy html-base folder from node_modules and rename by project name. Also need to update package.json and related files depends of new project title, description, owner, etc. Next please install all dependencies by

npm i

or

yarn add

or

pnpm i

Usage

After installation please launch by the command

gulp

or

npm start

To update packages please use these commands

npm updates
npm i

Under the hood

Related Tools

JavaScript plugins

  • Babel
  • Rollup

JavaScript utils

Tests

  • Deep HTML5 Validation
  • On fly HTML5 Validation
  • CSS3 Validation
  • Google Mobile-friendly test
  • Google PageInsight Performance test

Images

  • WEBP Convertor
  • SVG (SVGOmg compression)

Automation

Development bundle for fast and robust web development based on Gulp and Rollup

Files

  • .gulp/*
  • ./gulpfile.js
  • ./babel.config.js
  • ./package.json

Styles

  • autoprefixer
  • gulp-postcss
  • gulp-sass
  • sass

Server

  • gulp-connect
  • gulp-open
  • localtunnel

Notification

  • gulp-plumber
  • gulp-notify

Source Maps

  • gulp-sourcemaps

JavaScript development

  • rollup
  • rollup-plugin-babel

Tests

Editor

  • .vscode/settings.json
  • .editorconfig
  • .eslintrc.json
  • .prettierrc
  • .eslintrc.json

VSC Tweaks

  • liveSassCompile
  • Emmet "commentAfter"
  • Panel at the "right" (Terminal, hints etc.)
  • ESLint JS tweaks
  • Search exclusions

Tunneling

.gulp/server.js

const subdomain = ''

HTML Files

  • index.html - templates list
  • home.html - main landing page
  • product.html - product page
  • article.html - article page
  • test-design.html - design system
  • test-sprite.html - svg sprite test

Folders

  • .gulp - gulp tasks
  • src - initial files
  • dest - beautified files, initial processing
  • build - compressed files

SVG Sprite generation

  • copy svg files for sprite into './images/sprite/' folder
  • launch in the terminal gulp sprite
  • generated svg sprite is there - ./images/sprite.svg

Contributing

For issues, bugs or imporvements please open an issue

Preferred Code concepts

  • HTML - https://google.github.io/styleguide/htmlcssguide.html
  • CSS - BEM - https://github.com/airbnb/css
  • SCSS - https://sass-guidelin.es/
  • JavaScript - https://standardjs.com/

Logscreen

Inspiration

  • Google Web Fundamentals (https://developers.google.com/web/fundamentals/performance/why-performance-matters)