Skip to content

Commit

Permalink
Change grunt task via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Aug 25, 2015
1 parent 04e9c5f commit 683e19a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.sh
@@ -1,2 +1,2 @@
#!/bin/bash
mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" clean install -Pproduction
mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" clean install -Pproduction -DgruntTask=production
6 changes: 2 additions & 4 deletions enme-js/resources-enme-war/pom.xml
Expand Up @@ -25,7 +25,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.23</version>
<version>0.0.25</version>
<configuration>
<workingDirectory>src/main/resources/resource</workingDirectory>
</configuration>
Expand All @@ -40,13 +40,11 @@
<npmVersion>2.7.6</npmVersion>
</configuration>
</execution>

<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
</configuration>
Expand All @@ -68,7 +66,7 @@
<goal>grunt</goal>
</goals>
<configuration>
<arguments>--no-color</arguments>
<arguments>${grunt}</arguments>
</configuration>
</execution>
</executions>
Expand Down
Expand Up @@ -109,7 +109,9 @@ grunt.initConfig({
//embebed
"<%= dirs.css_src %>/embebed/detail.css": "<%= dirs.less_src %>/embebed/detail.less",
"<%= dirs.css_src %>/embebed/form.css": "<%= dirs.less_src %>/embebed/form.less",
"<%= dirs.css_src %>/embebed/results.css": "<%= dirs.less_src %>/embebed/results.less"
"<%= dirs.css_src %>/embebed/results.css": "<%= dirs.less_src %>/embebed/results.less",
//bootstrap 3
"<%= dirs.css_src %>/bootstrap3.css": "<%= dirs.less_src %>/bootstrap3/bootstrap.less"
}
},
production: {
Expand Down Expand Up @@ -262,6 +264,7 @@ grunt.initConfig({
// this task is defined for remote quick testing
grunt.registerTask('test-remote', ['intern:remote_local' ]);
grunt.registerTask('dev', [ 'jshint-all', 'connect:server' ]);
grunt.registerTask('default', ['jshint-all', 'css', 'commons', 'widget', 'test-remote' ]);
grunt.registerTask('default', ['jshint-all', 'css', 'commons', 'widget']);
grunt.registerTask('production', ['jshint-all', 'css', 'commons', 'widget', 'test-remote' ]);

};
Expand Up @@ -19,7 +19,6 @@
"dijit": "~1.10.4",
"util": "dojo-util#~1.10.4",
"deliteful": "~0.7.1",
"dstore": "~1.1.0",
"deliteful-build": "0.7.x",
"Font-Awesome": "4.3.x",
"requirejs": "2.1.x"
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -33,6 +33,7 @@
<env>development</env>
<!-- js compress options -->
<compress.minimize>true</compress.minimize>
<grunt>default</grunt>
<spring.webflow.version>2.4.0.RELEASE</spring.webflow.version>
<spring.security.version>3.2.6.RELEASE</spring.security.version>
<!-- 3.1.0.CI-SNAPSHOT once compatible with OAuth -->
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
@@ -1,2 +1,2 @@
#!/bin/bash
mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" clean install -Pproduction
mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" clean install -Pproduction -DgruntTask=production

0 comments on commit 683e19a

Please sign in to comment.