Giter Club home page Giter Club logo

starter-kit's Introduction

Starter Kit

Project scaffolding and build system for static sites using Gulp, PostCSS, and Nunjucks.

Pairs well with style-kit.

Getting started

Before you can build the project there are some dependencies that need to be installed. First install the system-wide dependencies listed below:

Once these are installed, clone the repository or download an archive. Navigate to the project directory and install local project dependencies with npm install. You can now build the project.

Building

Build tasks are setup in gulpfile.js and configured in config.js.

The default task will clean out the configured destination directory and build a fresh project into it. Once the project is built a local web server will be started in the build directory and source files will be watched for changes.

If you wish to build the project without starting a web server or watching for changes use the build task.

Stylesheets

CSS is processed with a small set of PostCSS plugins. These are listed below:

CSS format

The golden rule: All code in any part of the code base should look like a single person typed it, no matter how many people contributed.

Linters are setup to ensure consistent stylesheet format. Feel free to adjust them to your preferences.

The style is enforced by Stylelint and a SUIT CSS / BEM linter. There is also an Editorconfig file that can be used to keep editor settings consistent.

Templates

Pages and templates are processed with Nunjucks. Data from the root property in config.js is made available to templates through the {{ site }} variable.

Scripts

JavaScript bundles are concatenated and minified before being output to the build directory.

Images

Images are minified and output into the build directory.

Other assets

Other assets can be copied to the build directory with the copy task.

starter-kit's People

Contributors

tbck avatar

Stargazers

 avatar

Watchers

 avatar  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.