@cupcake-ds/cupcake

2.5.0 • Public • Published

cupcake-logo

CodeFactor Travis (.org) David Netlify Status This project is using Percy.io for visual regression testing.

Cupcake 2.0

This repository includes everything you need to build, customize, test, and deploy Cupcake.

View the docs page for Cupcake

Table of Contents

Features

This starter also features a number of great software (in the words of their creators):

  • Gulp - a task automation tool.
  • Browsersync - time-saving synchronised browser testing, keep multiple browsers & devices in sync when editing files.
  • Sass - CSS with superpowers.
  • Autoprefixer - adding vendor prefixes by the rules of Can I Use.
  • clean-css - Fast and efficient CSS optimizer for node.js and the Web.
  • Stylelint - a mighty, modern CSS linter

Html

Tests

Git Hooks manager

Installation

Install Gulp

Install Gulp globally.

npm install gulp-cli -g

Getting started

  1. Clone this repo
$ git clone # <PROJECT_NAME>
$ cd <PROJECT_NAME>
  1. Install Dependencies
$ npm install
  1. Build the project
$ npm start

List of Gulp tasks

To run separate task type in command line gulp [task_name]. Almost all tasks also have watch mode - gulp watch:[task_name], but you don't need to use it directly.

Main tasks

Task name Description
default will start all tasks required by project in dev mode: initial build, watch files, run server with livereload
build builds all content and assets from src to dist.
dev builds your project without optimization.
test runs sass unit tests.

All available tasks are placed in a folder tasks.

Workflow

Everything's ready to get started right away:

npm start - Compiles assets & html, launches development server:

  • compiles styles & scripts are being compiled & concatenated
  • builds the site & opens it in your default browser
  • watches for changes and injects them right away

npm run build - Same as above, but in production mode:

  • compiles & builds everything
  • minifies & compresses everything

Directory Structure

The source directory contains your entire application code, including CSS, JavaScript, HTML.

The rest of the folders and files only exist to make your life easier, and should not need to be touched.

Below you can find full details about significant files and folders.

├── README.md                 # Readme file
├── package.json              # Dependencies for node.js
├── .gitignore                # Git ignore rules
├── gulpfile.js               # The Gulp task manager configuration
├── /dist                     # Minified, optimized and compiled files
│   ├── /maps/                # SourceMaps for CSS files
│   ├── /pages/               # Rendered and compiled HTML pages
│   ├── /cupcake.css          # Main cupcake CSS file
│   ├── /cupcake-shim.css     # Cupcake shim CSS file for legacy compat.
│   ├── /cupcake-mint.css     # Main cupcake mint flavor css file
│   ├── /cupcake.min.css      # Main cupcake CSS file minified
│   ├── /cupcake-shim.min.css # Shim file minified
│   ├── /cupcake-mint.min.css # Mint file minified
│   └── *.html                # Rendered and compiled HTML
└── /src                      # The source code of the html
    ├── /docs                 # Html folder
        ├── /assets           # demo js for docs site and style
        ├── /core             # Handlebars layouts
            ├── /elements     # Element HTML - these are surfaced first
            ├── /experimental # Experimental HTML
            └── /tokens       # Tokens HTML 
        ├── /data             # Metadata associated with the site.      
        ├── /views            # Handlebars Views
            ├── /layouts      # Handlebars layouts
            ├── /pages        # Demo pages with extended html examples
            └── *.html        # Landing pages             
        └── /demo.scss        # Styling for docs page
    └── /scss                 # Html folder
        ├── /support          # Supporting scss files
        └── *.scss            # Element scss files
    └── /test                 # Tests folder    

Running tests

$ npm run test

Dependencies (0)

    Dev Dependencies (35)

    Package Sidebar

    Install

    npm i @cupcake-ds/cupcake

    Weekly Downloads

    490

    Version

    2.5.0

    License

    none

    Unpacked Size

    50.7 MB

    Total Files

    3071

    Last publish

    Collaborators

    • spmichael
    • salvatore.camassa
    • wjaycalhoun
    • jeaster12