Code Monkey home page Code Monkey logo

minimal-site's Introduction

Sass Minimal Site

Purpose

This is a bare bones Scalable and Modular Architecture for CSS (SMACSS) website using Sass.

File and Folder Structure

  • fonts
  • images
  • sass
    • partials
      • base
      • components
      • global
    • style.scss
  • scripts
  • stylesheets
    • formalize.css
    • style.css
    • style.css.map
  • .gitignore
  • gulpfile.js
  • index.html
  • package.json

Sass Commands

Compile one file on demand

To compile the Sass manually, run the following command:

sass input.scss output.css

This compiles the input.scss file into the output.css file.

For this minimal site, run the command below:

sass sass/style.scss stylesheets/style.css

style.scss is the input SCSS file, and style.css is the output CSS file.

Watch for changes to a file

To watch your Sass so that recompiles after every change to a file:

sass --watch <input file>:<output file>

For the minimal site, run:

sass --watch sass/style.scss:stylesheets/style.css

Watch for changes within a folder

To watch your Sass so that recompiles after every change within a folder:

sass --watch <input folder>:<output folder>

For the minimal site, run:

sass --watch sass:stylesheets

The sass folder contains our Sass and SCSS files that we want to watch, while the stylesheets folder contains our compiled CSS.

Option - Install Gulp

This site comes with an optional gulpfile.js with a Gulp task runner that will re-compile your Sass as you make changes as well as lint your JavaScript using jshint.

To install Gulp run npm install.

To run the Gulp task use the command gulp.

To exit Gulp, type Ctrl+C.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.