Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Add checks from VIP's SVN pre-commit hook #37

@westonruter

Description

@westonruter

The VIP pre-commit hook runs JS through YUI Compressor to do syntax checking. We need to do the same for the pre-commit hook and the .travis.yml, something like:

wget https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar
for js in $(find . -name '*.js'); do
    java -jar yuicompressor-2.4.8.jar -o /dev/null $js 2>&1
    if [ $? != 0 ]; then
        exit 1;
    fi
done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions