Cascading Tree Sheets (CTS) is a CSS-like language to describe web structure.
This is the Javascript implementation of Cascading Tree Sheets (CTS).
Before you get started, make sure you have installed the following tools:
- NodeJS + NPM
- Grunt
To set up a brand new CTS development environment, perform the following steps:
-
Create a new, empty directory and from within it, run:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/cts/cts/master/initial-setup.sh)"
-
Change into the
cts
directory that was just created. -
Run
npm install
. -
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 require
s 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.
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.
This software is made available under the BSD License.