Coder Social home page Coder Social logo

core-styles-3's Introduction

Core-Styles 3

Welcome to the 3rd major release of Webstop's grocery website front-end design system.

You can find the latest documentation at guides.webstop.com, which represents the latest code in the master branch.

Setup

Before you run the development server for the first time run the following command:

./setup

Development Server

You'll want to open two terminal tabs/windows in the root of this project.

  • Tab 1 run: ./serve
  • Tab 2 run: ./watch

The first tab runs a Hugo we server. This monitors the markdown files in the documentation site and recompiles them everytime a change is made.

The second tab runs watches the Sass files and recompiles them into CSS everytime a change is made.

Once you've started the webserver visit localhost:1313 to see the documentation website.

Important Developer Notes

Development Folders

The following folders are the primary places you work when creating CSS and documentation.

  • site
  • scss

site

This folder contains the source files for CS3 documentation. The directory you want to work in is found at site/content/docs/3.0.

scss

This folder contains the source files for CS3 stylesheets.

Generated Content Folders

Some content is generate from source files and placed into special directories.

Do NOT edit the files in the following folders:

  • dist
  • docs
  • node_modules

The files in the above folders are generated from files in other places. As described below.

dist

Short for distribution, the dist folder contains the production ready CSS and JS produced by core-styles. It is the end product of core-styles that can be used as a node module and/or placed on a CDN.

Files modified in the scss and js folders are processed (linted, compiled, minified, concatenated, & etc.) and are then placed in the dist folder. Once we tag a release on the Github site the contents of dist become available as a node module, and can be installed with NPM or Yarn.

docs

Short for documentation, this is the developer documentation website hosted on Github pages. Github has a special feature you can enable that serves the content of the docs folder as a website. This is how we are publishing the documentation found at guides.webstop.com

Files modified in the site folder are processed (converted to html, with headers, navitagion, & etc.) and are placed in the 'docs' folder. Once the core-styles repo is deployed to the Webstop Github account the documentation site is deployed.

node_modules

This is where all the 3rd party node modules are stored. This folder is not checked into git. The files found in the node_modules folder are defined in the package.json file. Node modules are how we include 3rd party libraries and frameworks for JavaScript and CSS, things like Bootstrap 5.

Docker Notes

The base hugo image runs the hugo command everytime you start a container. You can't do things like docker-compose run build bash $@. Therefore our you can only use bash through the special bash container. The bash container is based on the same Hugo image as the other containers but it starts with the bash command instead of the hugo command, and it installs Sass in a global context to you have access to the sass command.

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.