Setup

Installation

Make sure node.js is installed on your sytem. Install the required files for the toolkit on the command line.

    npm install

Profiles

The tool kit grunt task uses profiles. This allows to configure the grunt command line for several projcts in one file. Create a copy of profiles.json.dist and rename it profiles.json. Customise the content according to your local environment. Each profile is composed by a source path (for .scss files) and an destination path (for .css files). The final profile should look about like this:

    {
        "smith": {
            "src": "../tao/taoSmith/views/scss/themes",
            "dest": "../tao/taoSmith/views/css/themes"
        },
        "smith-items": {
            "src": "../tao/taoSmith/views/scss/themes/items",
            "dest": "../tao/taoSmith/views/css/themes/items"
        },
        "smith-platform": {
            "src": "../tao/taoSmith/views/scss/themes/platform",
            "dest": "../tao/taoSmith/views/css/themes/platform"
        }
    }

Tasks

Compile

    grunt compile -p=profileId

Auto-compile

    grunt dev -p=profileId

Options for the tasks

  • -p profile to use, as defined in profiles.json

Grunt built-in options

See options in the Grunt documentation