An open API service indexing awesome lists of open source software.

https://github.com/cichy380/html-starter-bs4-webpack

HTML starter template with front-end development kit for building web apps and sites.
https://github.com/cichy380/html-starter-bs4-webpack

bootstrap sass webpack

Last synced: 12 months ago
JSON representation

HTML starter template with front-end development kit for building web apps and sites.

Awesome Lists containing this project

README

          

# HTML Starter

[![Bootstrap](https://flat.badgen.net/badge/bootstrap/4.3/7952b3)](https://getbootstrap.com)
[![Webpack](https://flat.badgen.net/badge/webpack/4/14aaf3)](https://webpack.js.org)
[![dependencies](https://flat.badgen.net/david/dep/cichy380/html-starter-bs4-webpack)](https://david-dm.org/cichy380/html-starter-bs4-webpack)
[![devDependencies](https://flat.badgen.net/david/dev/cichy380/html-starter-bs4-webpack)](https://david-dm.org/cichy380/html-starter-bs4-webpack?type=dev)
[![license](https://flat.badgen.net/github/license/cichy380/html-starter-bs4-webpack)](https://github.com/cichy380/html-starter-bs4-webpack/blob/master/LICENSE.md)

Kick-start your project with [Bootstrap](https://getbootstrap.com/), the world's most popular framework and modern development workflow.
This boilerplate with [Webpack](https://webpack.js.org/) based setup helps you build web apps and sites much faster.

## Features

* **Live reloading**
browser update after changes
* **Automatically optimizes** entry files
concatenate, minify and inject output files to HTML
* **[Sass](https://sass-lang.com/) for stylesheets**
with [the 7-1 Pattern](https://sass-guidelin.es/#the-7-1-pattern)
* **Modern JavaScript**
ES6 modules-based code linting by [ESLint](https://eslint.org/)
* Older **browsers support**
* add vendor prefixes in CSS with [Autoprefixer](https://autoprefixer.github.io/)
* convert ES6+ code into a backwards compatible with [Babel](https://babeljs.io/)
* Includes:
* **[Webpack 4](https://webpack.js.org/)** configuration - module bundler
* **[Bootstrap 4](http://getbootstrap.com/)** - the most popular HTML, CSS and JS framework
* [jQuery](http://jquery.com/) - JavaScript library
* [Font Awesome 5](https://fontawesome.com/) - the web's most popular vector icons and social logos
* [Google Fonts](https://fonts.google.com/) - libre licensed fonts
* sourceMaps
* and more...

## Theme development

[Node.js](http://nodejs.org/) is the only required dependency to work with *HTML Starter*.

#### Installation

1. Install [Node.js](http://nodejs.org/) (installation depends on your system). After finishing, you will be able to
check the version number using `node -v` and `npm -v` commands
([npm is distributed with Node.js](https://www.npmjs.com/get-npm)).
2. Clone the repo using `git clone https://github.com/cichy380/html-starter-bs4-webpack.git` or [download *HTML Starter*](https://github.com/cichy380/html-starter-bs4-webpack/archive/master.zip).
3. Open folder **html-starter-bs4-webpack** (command: `cd html-starter-bs4-webpack`) and install a packages of *HTML Starter* via `npm install` command.

Now you have everything you need to run the build process.

#### Build commands

* `npm run start` ─ compile assets when file changes are made, start [webpack-dev-server](https://github.com/webpack/webpack-dev-server) session
* `npm run build` ─ compile and optimize (the files in your assets directory) for production

## Structure

Shorten directories and files structure which you'll see after build:

```shell
html-starter-bs4-webpack/
├── assets/ # template assets
│ ├── fonts/ # place template fonts files here
│ ├── html/ # template HTML files
│ │ ├── partials/ # common parts of HTML code
│ │ │ └── [...]
│ │ ├── 404.html # placeholder 404 error page
│ │ └── index.html # default HTML skeleton
│ ├── images/ # template images files
│ │ └── [...]
│ ├── scripts/ # template javascript files
│ │ ├── vendor/ # necessary parts of frameworks and libs
│ │ │ └── [...] # Bootstrap, FontAwesome, jQuery
│ │ └── main.js # main javascript file that references JS source files
│ ├── scss/ # template styles
│ │ ├── [...] # 7-1 Sass architecture folders
│ │ └── main.scss # main Sass file that references scss source files
│ ├── index.js # entry point of template
│ └── [...] # miscellaneous
├── dist/ # output folder with production build (don't edit)
│ ├── css/ # output styles
│ ├── images/ # output images
│ ├── js/ # output javascripts
│ ├── index.html # homepage
│ └── [...] # miscellaneous
├── node_modules/ # Node.js packages (don't edit)
│ └── [...]
├── .babelrc # Babel configuration file
├── .eslintrc.js # ESLint configuration file
├── package.json # Node.js dependencies and scripts
├── webpack.config.js # Webpack configuration file
├── package-lock.json # Node.js dependencies lock file (don't edit)
└── [...] # other...
```

## Demo

Sample of *HTML Starter* usage placed in separate branche:
* [demo branch](https://github.com/cichy380/html-starter-bs4-webpack/tree/demo) ─ simple corporate website

## License

Code released under the [MIT license](https://github.com/cichy380/html-starter-bs4-webpack/blob/master/LICENSE.md).