Giter Club home page Giter Club logo

sass-starter-template's Introduction

Sass Starter

An HTML and Sass boilerplate with a development server built in. Perfect for building static sites or creating pure css art.

Prerequisites

  • Have Node.js downloaded and installed.
  • Have NPM installed (included with Node.js)

About The Starter

This project makes use of the Gulp task runner. It is configured with two public tasks: gulp sync, which initializes a development server and gulp build, which creates a production build.

Tasks for sass-starter
├─┬ sync
│ └─┬ <series>
│   ├── compileCss
│   └── develop
└─┬ build
  └─┬ <parallel>
    ├─┬ <series>
    │ ├── compileCss
    │ └── minifyCss
    └── minifyHtml

Run gulp --tasks to see this breakdown in your own shell.

gulpfile.js is well commented to explain what each function does and it includes links to the official docs that were used to build this template.

Remember not to make any changes to the app/css folder, as these will be overwritten when gulp compiles Sass to CSS.

The Development Server

gulp sync will compile .sass and .scss files to CSS using the gulp-sass package. It will then spin up a development server using Browsersync and continue to watch your source files for changes and resync the browser on change.

The Distribution Folder

gulp build will create a public folder and a production ready build inside of it containing your minified HTML and CSS output. By default, this folder is incldued in the .gitignore file.

Deploying Your Static Site

Vercel Deployment

  1. Create a free account with vercel.com
  2. Import your project at vercel.com/new
  3. Configure your project
    Framework Preset: Other
    Root Directory: ./
  4. Add build and output settings:
    Build Command: gulp build
    Resource: Vercel: Configuring a Build
    Output Directory: public
    Install Command: npm install
  5. Click "Deploy" and wait for the initial build and deployment to complete.

Opinionated Additions

  • This template includes the modern-normalize css reset CDN. If you do not wish to use this reset, just remove it from src/index.html.
  • This template makes use of .scss files, but it also supports .sass out of the box. If you wish to use .sass, just update the file extensions.

sass-starter-template's People

Contributors

sharedbyayla avatar

Watchers

 avatar

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.