jquery-archive / css-chassis

An attempt at creating an open standard for both CSS and JavaScript UI libraries.
https://css-chassis.com
Other
351 stars 67 forks source link

Chassis is creating open standards designed for CSS libraries, JavaScript UI libraries, and web developers in general. This project will define standards for markup and class names for common widgets and patterns, as well as an implementation of those standards. Similar to how DOM libraries can build upon Sizzle, we hope UI libraries will build upon this project.

Goals

Project Collaboration and Interoperability

If you maintain a JavaScript library that has UI components, we'd love for you to join our efforts. We'd be happy to hear your feedback and work through updates of your project(s) to support Chassis. If you have the time and interest to help define the standards and improve on our implementation, that's even better! Check out the contribution guidelines for more information.

Getting started

Prerequisites

Node.js and npm should be installed, as well as grunt-cli.

Building

Once you've cloned Chassis to your machine, run these commands:

$ npm install
$ grunt build

Develop

To automate the build process during development, run the grunt watch task to compile SCSS upon file change.

$ grunt watch

Grunt Tests

To run the tests locally run:

$ grunt test

Make sure you run the tests before creating a pull request.

Performance testing

Setup

Running the tests

Once you have completed the setup run this:

$ grunt perf

DO NOT USE YOUR COMPUTER WHILE TESTS ARE RUNNING

Once the tests completed, view the results.

Viewing the test pages

Follow the steps above to build. Once that is complete run this:

$ grunt connect:dev

This will start a connect server that will run until you stop it (Ctrl+C). Then go to http://localhost:4200/framework/{framework name}/component/{component name}/count/{ # of components to render}/ and you can see the generated test page.