mulesoft-labs / brunch-maven-plugin

Brunch build tool as a Maven Plugin
Other
0 stars 1 forks source link

Upgrade brunch #1

Open btiernay opened 11 years ago

btiernay commented 11 years ago

Is it possible to make the version of brunch configurable?

Cheers!

pose commented 11 years ago

Hi @btiernay, yes. You need to change the following lines of the pom.xml file:

<plugin>
    <groupId>org.mule.tools.javascript</groupId>
    <artifactId>npm-maven-plugin</artifactId>
    <version>1.1-SNAPSHOT</version>
    <executions>
        <execution>
            <phase>generate-sources</phase>
            <goals>
                <goal>fetch-modules</goal>
            </goals>
            <configuration>
                <outputDirectory>${basedir}/src/main/resources/META-INF/node_modules</outputDirectory>
                <packages>
                    <package>mocha:1.4.2</package>
                    <package>chokidar:0.5.1</package>
                    <package>brunch:1.4.4</package>
                </packages>
            </configuration>
        </execution>
    </executions>
</plugin>

Change brunch:1.4.4 with the version you want to use. Hope it helps!

Thanks

btiernay commented 11 years ago

Great. I suppose I would need to build in order to do this?

Thanks again!

pose commented 11 years ago

Yes. It would be great if you can send me a pull request (so I can update it to the latest brunch version).

Thanks in advance,