1.4.0 • Published 11 months ago

html-base v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

Logscreen

Inspiration

1.4.0

11 months ago

1.2.0

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.3.7

12 months ago

1.3.6

12 months ago

1.3.5

12 months ago

1.3.4

12 months ago

1.3.3

12 months ago

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

1 year ago

1.3.9

12 months ago

1.0.20

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago