提交 0be0940d 编写于 作者: N Nicolas De Loof

grunt profile to run grunt for web resource optimization

上级 aa7eb7c1
......@@ -36,3 +36,4 @@ jenkins_*.build
jenkins_*.changes
*.deb
push-build.sh
war/node_modules/
\ No newline at end of file
module.exports = function (grunt) {
grunt.initConfig({
});
grunt.registerTask('build', [
]);
grunt.registerTask('default', ['build']);
};
{
"name": "jenkins",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1"
},
"engines": {
"node": ">=0.8.0"
}
}
\ No newline at end of file
......@@ -533,5 +533,42 @@ THE SOFTWARE.
</plugins>
</build>
</profile>
<profile>
<!-- profile for running Grunt and optimize static resources -->
<id>grunt</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>install</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>grunt</id>
<phase>prepare-package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>grunt</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册