Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

mulesoft-labs/jshint-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jshint-maven-plugin

Validates javascript files using jshint-node.

Build

mvn clean install

Usage

Add the following snippet inside build -> plugins:

<plugin>
    <groupId>org.mule.tools.javascript</groupId>
    <artifactId>jshint-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <executions>
        <execution>
            <phase>validate</phase>
            <goals>
                <goal>jshint</goal>
            </goals>
        </execution>
    </executions>
</plugin>

By default Javascript files should be placed in src/main/js but any other path can be specified with the 'outputDirectory' parameter.

You may need to add this to your pom.xml (sorry, no releases yet):

  <pluginRepositories>
    <pluginRepository>
      <id>mulesoft-snapshots</id>
      <name>MuleSoft Snapshot Repository</name>
      <url>https://repository.mulesoft.org/snapshots/</url>
      <layout>default</layout>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

Authors

Alberto Pose (@thepose)

License

Copyright 2012 MuleSoft, Inc.

Licensed under the Common Public Attribution License (CPAL), Version 1.0.

Happy hacking!

About

Validate javascript files using JSHint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published