Giter Site home page Giter Site logo

cts-ui's Introduction

Cascading Tree Sheets

Cascading Tree Sheets (CTS) is a CSS-like language to describe web structure.

This is the Javascript implementation of Cascading Tree Sheets (CTS).

Dependencies

Before you get started, make sure you have installed the following tools:

  • NodeJS + NPM
  • Grunt

Initial Development Setup

To set up a brand new CTS development environment, perform the following steps:

  1. Create a new, empty directory and from within it, run:

    bash -c "$(curl -fsSL https://raw.githubusercontent.com/cts/cts/master/initial-setup.sh)"

  2. Change into the cts directory that was just created.

  3. Run npm install.

  4. Run grunt setup.

This will link the dependencies of that project to the other repositories downloaded by the setup script.

Since the Duo package manager is typically used for production builds, it requires packages straight from Github instead of your local environment. To get around this, grunt downloads these packages from Github into the build-tmp/components directory, then symlinks those cts-* directories with your local versions. This is done by the src/build-scripts/grunt-contrib-projectsetup.js file.

Building CTS

You can build CTS by running grunt from inside the cts project. You'll find the output in the build directory. If the build-tmp directory is ever deleted, you need to re-run grunt setup to symlink the directories properly. Otherwise, none of your local changes will end up in the build file.

License

This software is made available under the BSD License.

cts-ui's People

Contributors

eob avatar wangjohn avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cts-ui's Issues

Make ck editor injectable + add this to _CTSUI.Editor

Key prob. lkely to be detecting when it's done loading and ready to use.

(script tag "onload" event)

CTS.$ is always jQuery.

to execute something after CTS loads, just do:

CTS.status.libraryLoaded.then(function() {
 // your stuff here
// e.g.: CTS.$('div')...
});

Build out LESS Pipeline

  • Grunt task to compile
  • Decide & implement source code + release structure

Decide what to do with the Bootstrap code.

  • Either leave be or find a way to LESS-ify it while still preserving the ctsui- prefixes.

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.