Skip to content

CatinhoCR/scss-custom-boilerplate

Repository files navigation

Front End Starter Boilerplate

A starter boilerplate to use for quick templating using Webpack 5, SCSS, Linting, Hot reloading and more... Personal small reusable 'library' of common styles.

Table of Contents

Features

  • Webpack 5
  • SCSS
  • Modern ES6+ with Babel
  • Linting
  • Hot reload on dev

Dependencies

Installation

  1. yarn or yarn install from the root folder.
  2. You should now have all the necessary dependencies to run the build process.

Run Webpack dev server with live reload

For local development there's one more setup step needed:

HOST: 'https://stater-foxy-mojo.test'

You should now be able to run the project:

  • npm run start

Compile assets for production

Production assets are compiled to build/ folder. The src/ folder should not be uploaded to production environment.

  • npm run build

Styles

  • Abstracts: Variables, functions, mixins, helpers. A good way to see this is, it should not print out any CSS code if compiled on it's own.
  • Base: Settings, tools and helpers. Contains global styles, normalizers and utility classes.
  • Blocks: Styles specific to blocks like the header, footer, or any full width section.
  • Components: Styles specific to components like buttons, tooltips, and other small stand-alone reusable pieces.
  • Layout: For things specific to the website's layout and formatting, global styles. Things specific to the theme either in FE or admin.
  • Pages: Styles specific to pages like the home page
  • Helpers: Overrides to colors classes and spacings, etc.

Contributing

If you're here it's as part of a team. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published