GithubHelp home page GithubHelp logo

isabella232 / less-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from squarespace/less-compiler

0.0 0.0 0.0 1.86 MB

Less compiler in Java

License: Apache License 2.0

Shell 0.01% CSS 3.51% Java 96.49%

less-compiler's Introduction

Squarespace LESS Compiler

A Java implementation of the LESS CSS preprocessor language.

Build Status Coverage Status

Current Less.js compatibility level: 1.3.3

License: Apache 2.0 (summary)

Copyright (c) 2014 Squarespace, Inc.

Project Goals

  • Migrate away from use of Node.js + Less.js for server-side conversion of LESS to CSS.
  • Maintain compatibility with Less.js, tracking version 1.3.3 (Squarespace's supported version at the time of development).
  • Improve performance, reduce memory usage where possible.
  • Design must support additional features needed for server-side compilation.
  • Design parsing package to closely track the Less.js parser structure, to simplify verifying correctness.

Features

  • Performance improvement of 2-5x over Less.js when used in server context
  • Improved error messages with full stack traces
  • Execution trace mode
  • Modular parser that supports fine-grained unit testing of syntax fragments
  • High test coverage.

Differences

  • JavaScript evaluation support is missing. It may return if / when we can guarantee speed and safety of JS evaluation in the JVM (Java 8's Nashorn may provide this).
  • Final CSS structure is generated by feeding blocks and rules to a simple model that ensures they are emitted at the correct scope in the output document.
  • Color keywords can participate in math operations.
  • See more complete list of differences

Usage

git clone [email protected]:Squarespace/squarespace-less.git
cd squarespace-less
gradle makeCli
./lessc -h

less-compiler's People

Contributors

phensley 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.