Commit a32e2b2e by kevalbhatt

ATLAS-2071 : UI : Minification of atlas code (js,css)

parent cba5f762
...@@ -224,6 +224,9 @@ module.exports = function(grunt) { ...@@ -224,6 +224,9 @@ module.exports = function(grunt) {
}, },
uglify: { uglify: {
build: { build: {
options: {
sourceMap: true
},
files: [{ files: [{
expand: true, expand: true,
cwd: 'dist/js', cwd: 'dist/js',
...@@ -307,7 +310,6 @@ module.exports = function(grunt) { ...@@ -307,7 +310,6 @@ module.exports = function(grunt) {
'sass:dist', 'sass:dist',
'uglify:build', 'uglify:build',
'cssmin:build', 'cssmin:build',
'htmlmin:build',
'configureProxies:server', 'configureProxies:server',
'connect:server', 'connect:server',
'watch' 'watch'
...@@ -321,7 +323,6 @@ module.exports = function(grunt) { ...@@ -321,7 +323,6 @@ module.exports = function(grunt) {
'copy:build', 'copy:build',
'sass:build', 'sass:build',
'uglify:build', 'uglify:build',
'cssmin:build', 'cssmin:build'
'htmlmin:build'
]); ]);
}; };
\ No newline at end of file
...@@ -108,21 +108,12 @@ ...@@ -108,21 +108,12 @@
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>npm remaining</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install --ignore-scripts</arguments>
</configuration>
</execution>
<execution>
<id>grunt dist</id> <id>grunt dist</id>
<goals> <goals>
<goal>grunt</goal> <goal>grunt</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>build</arguments> <arguments>${project.build.dashboardv2.gruntBuild}</arguments>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
......
...@@ -121,6 +121,16 @@ Also, a standalone instance of Solr can be started as the default search indexin ...@@ -121,6 +121,16 @@ Also, a standalone instance of Solr can be started as the default search indexin
indexing for a different Solr instance please see "Graph Search Index - Solr" in the indexing for a different Solr instance please see "Graph Search Index - Solr" in the
[[Configuration][Configuration]] section. [[Configuration][Configuration]] section.
To build a distribution without minified js,css file, build with the skipMinify profile.
<verbatim>
mvn clean package -Pdist,skipMinify
</verbatim>
Note that by default js and css files are minified.
---+++ Installing & Running Atlas ---+++ Installing & Running Atlas
---++++ Installing Atlas ---++++ Installing Atlas
......
...@@ -588,6 +588,7 @@ ...@@ -588,6 +588,7 @@
<atlas.surefire.options></atlas.surefire.options> <atlas.surefire.options></atlas.surefire.options>
<aspectj.runtime.version>1.8.7</aspectj.runtime.version> <aspectj.runtime.version>1.8.7</aspectj.runtime.version>
<project.build.dashboardv2.gruntBuild>build-minify</project.build.dashboardv2.gruntBuild>
</properties> </properties>
<profiles> <profiles>
...@@ -639,6 +640,12 @@ ...@@ -639,6 +640,12 @@
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
</profile> </profile>
<profile>
<id>skipMinify</id>
<properties>
<project.build.dashboardv2.gruntBuild>build</project.build.dashboardv2.gruntBuild>
</properties>
</profile>
</profiles> </profiles>
<modules> <modules>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment