A CSS Optimizer
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs chore: Review package.json metadata. Apr 24, 2018
packages chore(release): Publish v0.4.0. Oct 19, 2018
.gitignore docs: Update READMEs and architecture docs. Apr 21, 2018
.npmrc Fixes to bootstrap script Oct 10, 2017
.travis.yml fix: Remove test run for Node 9. Oct 18, 2018
.yarnrc
CHANGELOG.md chore: Update CHANGELOG. Apr 24, 2018
CODE_OF_CONDUCT.md docs: Update READMEs and architecture docs. Apr 21, 2018
CONTRIBUTING.md chore: Update security info and github links to project. Apr 19, 2018
Gruntfile.js Initial commit. Aug 2, 2017
LICENSE.md chore: Update copyright notices. Mar 9, 2018
NOTICE.md chore: Update copyright notices. Mar 9, 2018
README.md
commitlint.config.js
greenkeeper.json chore: Update greenkeeper config. May 9, 2018
lerna.json chore(release): Publish v0.4.0. Oct 19, 2018
opticss.code-workspace chore: Move scoped packages into a scoped directory per convention. Apr 24, 2018
package.json feat: Manually throw error for Node 6 in Optimizer. Oct 18, 2018
tsconfig.json
tslint.json
yarn.lock feat: Manually throw error for Node 6 in Optimizer. Oct 18, 2018

README.md

OptiCSS

Greenkeeper badge

OptiCSS is a template-aware stylesheet optimizer.

Most developers don't use OptiCSS directly. You may be looking for a style framework that uses it:

  • CSS Blocks
  • Add your project to this list! We want to collaborate with you on adopting OptiCSS.

Overall architecture documentation.

This is a monorepo, there's different documentation available in the various packages:

Public API & Libraries:

These packages are what we expect others to have dependencies on. We are careful about their public APIs and backwards compatibility.

  • opticss: The core library containing the optimizer. README
  • template-api - The template analysis API.
  • element-analysis: The element analysis API.
  • resolve-cascade - A library that produces a resolved cascade for CSS selectors against a DOM without using a browser. README
  • util - Common utilities and data structures that we share across our project.

Internal Dependencies:

These packages are extracted to allow them to be shared. You probably won't need to depend on them. As long as the other packages in this monorepo compile and pass tests we don't worry about backwards incompatibilty for these.

  • simple-template - A custom template language we use for testing OptiCSS.
  • attr-analysis-dsl - A custom DSL for expressing attribute analysis succinctly.
  • code-style: The coding styleguide and linters for OptiCSS. README

Miscellany

  • demo-app: An interactive demo of OptiCSS.