Code Monkey home page Code Monkey logo

pug-sass-starter's Introduction

Pug-Sass Starter

A simple starter for building HTML templates using Pug and Sass.

Requirements

Make sure Node JS, NPM and Gulp already installed on your computer.

Install

  • Navigate to the directory where the pug-sass-starter folder is located using Terminal.
  • Execute npm install.

Run

  • Execute npm start or gulp.
  • Open http://localhost:8080/ on your web browser.

Build

  • Execute gulp build.

Folders Structure

+ assets
  + css : This folder contains prebuild files, styles.css and styles.min.css.
  + fonts : Put your font files here, also do not forget to import it on _variables.scss.
  + icons : Put your icon files here.
  + images : Put your image files here.
  + js : This folder contains prebuild files, scripts.js and scripts.min.js.
+ src
  + js
    - scripts.js : Put your js code here.
  + pug
    + base
      - base.pug : Base pug file.
    + layouts
      - default-layout.pug : Default layout pug file.
    + pages
      - index.pug : Example page pug file, it contains h1 only.
    + partials
      - footer.pug : Footer pug file.
      - header.pug : Header pug file.
  + sass
    + base
      - _global.sass : Put your global styles here, such us html, body, section, headings, anchor etc.
      - _mixins.sass : Put your mixins here;
      - _placeholders.sass : Put your placeholders here;
      - _variables.sass : Put your variables here;
    + components
      - _components.sass : Put your components styles here, such as buttons, modals etc.
    + layouts
      - _footer.sass : Put your footer styles here.
      - _header.sass : Put your header styles here.
    + pages
      - _index.sass : Example sass for specific page.
    - styles.sass : Import all sass files.
- index.html : Prebuild HTML file, other HTML files will be placed here too.

Gulp Plugins

  • gulp-connect : Run webserver (with livereload).
  • gulp-plumber : Prevent pipe breaking caused by errors from gulp plugins.
  • gulp-pug : Gulp plugin for compiling Pug templates, compile Pug into HTML.
  • gulp-rename : Gulp plugin to rename files easily, adding .min suffix.
  • gulp-sass : Compile your Sass into CSS.
  • gulp-uglify : Minify your JS.

pug-sass-starter's People

Contributors

irfan-ansari-au28 avatar sulistryono 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.