Coder Social home page Coder Social logo

damiengourdin1664 / stacks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stackexchange/stacks

0.0 0.0 0.0 1023.61 MB

Stack Overflow’s Design System

Home Page: https://stackoverflow.design

License: MIT License

JavaScript 2.59% PowerShell 0.14% TypeScript 34.63% Less 62.65%

stacks's Introduction

Stacks

ci status npm version

Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable interfaces and workflows that conform to Stack Overflow’s principles, design language, and best practices.

Our documentation is built with Stacks itself, using its immutable, atomic classes and components.

The Stacks website documents:

Product

  • Semantic and accessible component markup
  • Cross-browser compatible Less / CSS
  • An icon library

Email

  • Email templates & components

Stacks documentation can be found at https://stackoverflow.design/

Table of contents

Using Stacks

Using Stacks is outlined in our usage guidelines.

Building Stacks

To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally. View our building guidelines.

Having trouble getting these steps to work? Open an issue with a setup label.

Format Stacks

Format the source code with prettier via running:

npm run format

Linting Stacks

Run all lint suites by running:

npm run lint

Lint the styles (stylelint) by running:

npm run lint:css

Lint the typescript source code (eslint) via running:

npm run lint:ts

Lint the source code format (prettier) via running:

npm run lint:format

Testing Stacks

Run all test suites by running:

npm test

Unit/Component Tests

Unit/Component tests are written with DOM Testing Library. Please follow the library's principles and documentation to write tests.

Stacks uses Web Test Runner and Playwright to run tests in a real browser context.

Execute the unit/component tests suite by running:

npm run test:unit

or if you prefer watch mode run:

npm run test:unit:watch

Visual Regression Tests

Prerequisites:

This Web Test Runner plugin is used to run visual regression tests. DOM Testing Library. Visual regression tests end with this suffix *.visual.test.ts.

Execute the visual regression tests suite by running:

npm run test:visual

Update the visual baseline via:

npm run test:visual:update

Failing tests (including diffs) can be found under screenshots/[browser]/failed/ folders.

Releasing a new version of Stacks

Stacks uses Semantic Versioning, is distributed via npm, and publishes release notes on Github. Follow the steps below to release a new version of Stacks.

Bump the version number

npm version [major | minor | patch]

Push the new tag

git push && git push --tags

Create release notes on Github

  1. Visit https://github.com/StackExchange/Stacks/releases/new
  2. Choose your new version from the "Choose a tag" dropdown
  3. Click "Generate release notes"
  4. Cleanup and complete the release notes
    • Prominently mention any breaking changes, if applicable
    • Include a "What's Changed" section in the release notes
    • Mention significant bug fixes
    • Mention new features
    • Mention significant under-the-hood changes that could impact consumers

Ship your newly created version to npm

npm publish

Merge develop into production and push

git checkout production && git merge develop && git push

Push the updated docs site

Head to Netlify, navigate to the Stacks overview, click on "Production deploys", and select "Deploy site" from the "Trigger deploy" dropdown.

Bugs and feature requests

Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our issue guidelines for submitting a bug report or feature request.

Contributing

If you’d like to contribute to Stacks, please read through our contribution guidelines. Included are directions for opening issues, coding standards, and notes on development.

License

Code and documentation copyright 2017-2022 Stack Exchange, Inc and released under the MIT License.

stacks's People

Contributors

aaronshekey avatar hellohynes avatar dependabot[bot] avatar dancormier avatar b-kelly avatar balpha avatar tedgoas avatar bnickel avatar paintedbicycle avatar courtny avatar piperlawson avatar giamir avatar abovedave avatar kylejrp avatar aalear avatar gkoscky avatar allejo avatar ludwiczakpawel avatar luap42 avatar yellis avatar phoebe-leung avatar michaelstum avatar juanrodriguezcen avatar mstum avatar petermortensen avatar mukunku avatar ellenchanhy avatar koide avatar dusanrad avatar kylemit 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.