OS.js

FEATURES: Package LESS and custom script support

Hi All,

In the recent commit(s) support for custom LESS and Script files was added for packages.

All of the examples below is for the metadata.json file in a package.

LESS

Built automatically via grunt packages task.

Inclusion paths included is core stylesheet path and theme stylesheet path. Sourcemap is also generated.

Example

{
  "build": {
    "less": {
      "src.less": "dest.css"
     }
   }
}

Scripts

You can now define an array with ‘before’ and ‘after’ scripts to run in the build process via grunt packages.

To display the output of the commands add the --verbose parameter. Working directory is set to the package source.

Example

{
  "build": {
    "scripts": {
      "before": ["echo 1"],
      "after": ["echo 2"]
    }
  }
}

References