Commit 063cffef authored by Matija Obreza's avatar Matija Obreza

Use 2016 GUI by default

parent 4ae89628
...@@ -8,17 +8,16 @@ module.exports = function(grunt) { ...@@ -8,17 +8,16 @@ module.exports = function(grunt) {
// require('jit-grunt')(grunt); // require('jit-grunt')(grunt);
grunt.initConfig({ grunt.initConfig({
app : { app : {
source : 'src/main/sourceapp/0',
source1 : 'src/main/sourceapp/1', source1 : 'src/main/sourceapp/1',
dist : 'src/main/webapp/html/0', dist1 : 'src/main/webapp/html/1',
dist1 : 'src/main/webapp/html/1' source2 : 'src/main/sourceapp/2',
dist2 : 'src/main/webapp/html/2'
}, },
clean : { clean : {
dist : [ '.tmp', '<%= app.dist %>', '<%= app.dist1 %>' ] dist : [ '.tmp', '<%= app.dist1 %>', '<%= app.dist2 %>' ]
}, },
// Compiles Sass to CSS and generates necessary files if requested // Compiles Sass to CSS and generates necessary files if requested
compass : { compass : {
options : { options : {
...@@ -32,16 +31,6 @@ module.exports = function(grunt) { ...@@ -32,16 +31,6 @@ module.exports = function(grunt) {
assetCacheBuster : false, assetCacheBuster : false,
raw : 'Sass::Script::Number.precision = 10\n' raw : 'Sass::Script::Number.precision = 10\n'
}, },
dist : {
options : {
sassDir : '<%= app.source %>/styles',
imagesDir : '<%= app.source %>/images',
javascriptsDir : '<%= app.source %>/scripts',
fontsDir : '<%= app.source %>/styles/fonts',
cssDir : '<%= app.dist %>/styles',
generatedImagesDir : '<%= app.dist %>/images/generated'
}
},
dist1 : { dist1 : {
options : { options : {
sassDir : '<%= app.source1 %>/styles', sassDir : '<%= app.source1 %>/styles',
...@@ -53,206 +42,100 @@ module.exports = function(grunt) { ...@@ -53,206 +42,100 @@ module.exports = function(grunt) {
} }
} }
}, },
// Copies remaining files to places other tasks can use // Copies remaining files to places other tasks can use
copy : { copy : {
dist : { dist1 : {
files : [ { files : [ {
expand : true, expand : true,
dot : true, dot : true,
cwd : '<%= app.source %>', cwd : '<%= app.source1 %>',
dest : '<%= app.dist %>', dest : '<%= app.dist1 %>',
src : [ '*.css', 'images/**/*', 'js/{,*/}*.js', '*.{ico,png,txt}', 'styles/fonts/{,*/}*.*' ] src : [ '*.css', 'images/**/*', 'js/{,*/}*.js', '*.{ico,png,txt}', 'styles/fonts/{,*/}*.*' ]
}, { }, {
expand : true, expand : true,
cwd : '.tmp/images', cwd : '.tmp/images',
dest : '<%= app.dist %>/images', dest : '<%= app.dist1 %>/images',
src : [ 'generated/*' ] src : [ 'generated/*' ]
}, { }, {
expand : true, expand : true,
cwd : 'bower_components/bootstrap-sass/assets/fonts/bootstrap/', cwd : 'bower_components/bootstrap-sass/assets/fonts/bootstrap/',
src : '*', src : '*',
dest : '<%= app.dist %>/styles/fonts' dest : '<%= app.dist1 %>/styles/fonts'
}, { }, {
expand : true, expand : true,
cwd : 'bower_components/fontawesome/fonts/', cwd : 'bower_components/fontawesome/fonts/',
src : '*', src : '*',
dest : '<%= app.dist %>/styles/fonts' dest : '<%= app.dist1 %>/styles/fonts'
}, { }, {
expand : true, expand : true,
cwd : 'bower_components/fontawesome/css/', cwd : 'bower_components/fontawesome/css/',
src : '*', src : '*',
dest : '<%= app.dist %>/styles/' dest : '<%= app.dist1 %>/styles/'
}, { }, {
expand : true, expand : true,
cwd : 'bower_components/webfont-notosans/regular/', cwd : 'bower_components/webfont-notosans/regular/',
src : '*', src : '*',
dest : '<%= app.dist %>/styles/fonts' dest : '<%= app.dist1 %>/styles/fonts'
},{
expand : true,
cwd : 'bower_components/jquery-ui/themes/base/',
src : [ 'jquery-ui.css' ],
dest : '<%= app.dist %>/styles'
}, { }, {
// tinyMCE // tinyMCE
expand : true, expand : true,
cwd : 'bower_components/tinymce/skins', cwd : 'bower_components/tinymce/skins',
src : [ '**' ], src : [ '**' ],
dest : '<%= app.dist %>/js/skins' dest : '<%= app.dist1 %>/js/skins'
}, { }, {
// leaflet // leaflet
expand : true, expand : true,
cwd : 'bower_components/leaflet/dist/', cwd : 'bower_components/leaflet/dist/',
src : [ 'leaflet.css', 'images/*.png' ], src : [ 'leaflet.css', 'images/*.png' ],
dest : '<%= app.dist %>/styles' dest : '<%= app.dist1 %>/styles'
}, { }, {
// simplecolorpicker // simplecolorpicker
expand : true, expand : true,
cwd : 'bower_components/jquery-simplecolorpicker/', cwd : 'bower_components/jquery-simplecolorpicker/',
src : [ 'jquery.simplecolorpicker.css', 'jquery.simplecolorpicker-regularfont.css' ], src : [ 'jquery.simplecolorpicker.css', 'jquery.simplecolorpicker-regularfont.css' ],
dest : '<%= app.dist %>/styles' dest : '<%= app.dist1 %>/styles'
},
{
// scooch
expand : true,
cwd : 'src/main/sourceapp/styles/',
src : [ 'pages.css' ],
dest : '<%= app.dist %>/styles'
} ]
},
dist1 : {
files : [ {
expand : true,
dot : true,
cwd : '<%= app.source1 %>',
dest : '<%= app.dist1 %>',
src : [ '*.css', 'images/**/*', 'js/{,*/}*.js', '*.{ico,png,txt}', 'styles/fonts/{,*/}*.*' ]
}, {
expand : true,
cwd : '.tmp/images',
dest : '<%= app.dist1 %>/images',
src : [ 'generated/*' ]
}, {
expand : true,
cwd : 'bower_components/bootstrap-sass/assets/fonts/bootstrap/',
src : '*',
dest : '<%= app.dist1 %>/styles/fonts'
}, {
expand : true,
cwd : 'bower_components/fontawesome/fonts/',
src : '*',
dest : '<%= app.dist1 %>/styles/fonts'
}, {
expand : true,
cwd : 'bower_components/fontawesome/css/',
src : '*',
dest : '<%= app.dist1 %>/styles/'
}, {
expand : true,
cwd : 'bower_components/webfont-notosans/regular/',
src : '*',
dest : '<%= app.dist1 %>/styles/fonts'
}, {
// tinyMCE
expand : true,
cwd : 'bower_components/tinymce/skins',
src : [ '**' ],
dest : '<%= app.dist1 %>/js/skins'
}, {
// leaflet
expand : true,
cwd : 'bower_components/leaflet/dist/',
src : [ 'leaflet.css', 'images/*.png' ],
dest : '<%= app.dist1 %>/styles'
}, { }, {
// simplecolorpicker
expand : true,
cwd : 'bower_components/jquery-simplecolorpicker/',
src : [ 'jquery.simplecolorpicker.css', 'jquery.simplecolorpicker-regularfont.css' ],
dest : '<%= app.dist1 %>/styles'
}, {
expand : true, expand : true,
cwd : 'bower_components/jquery-ui/themes/base/', cwd : 'bower_components/jquery-ui/themes/base/',
src : [ 'jquery-ui.css' ], src : [ 'jquery-ui.css' ],
dest : '<%= app.dist1 %>/styles' dest : '<%= app.dist1 %>/styles'
} ] } ]
}, },
// styles : {
// expand : true,
// cwd : '<%= app.source %>/styles',
// dest : '.tmp/styles/',
// src : '{,*/}*.css'
// }
},
// styles : {
// expand : true,
// cwd : '<%= app.source %>/styles',
// dest : '.tmp/styles/',
// src : '{,*/}*.css'
// }
},
// Make sure code styles are up to par and there are no obvious mistakes // Make sure code styles are up to par and there are no obvious mistakes
jshint : { jshint : {
options : { options : {
jshintrc : '.jshintrc', jshintrc : '.jshintrc',
//reporter : require('jshint-stylish') // reporter : require('jshint-stylish')
},
dist : {
src : [ '<%= app.source %>/js/{,*/}*.js' ]
}, },
dist1 : { dist1 : {
src : [ '<%= app.source1 %>/js/{,*/}*.js' ] src : [ '<%= app.source1 %>/js/{,*/}*.js' ]
}, },
dist2 : {
src : [ '<%= app.source2 %>/js/{,*/}*.js' ]
},
}, },
concat : { concat : {
options : { options : {
// separator: ';', // separator: ';',
}, },
dist : {
src : [ 'bower_components/jquery/dist/jquery.js', 'bower_components/modernizr/modernizr.js', 'bower_components/jquery-flot/jquery.flot.js', 'bower_components/jquery-flot/jquery.flot.pie.js',
'bower_components/jquery-flot/jquery.flot.fillbetween.js',
// simplecolorpicker
'bower_components/jquery-simplecolorpicker/jquery.simplecolorpicker.js',
// TinyMCE
'bower_components/tinymce/tinymce.js', 'bower_components/tinymce/tinymce.jquery.js',
// TinyMCE plugins: link, autolink, code
'bower_components/tinymce/themes/modern/theme.js', 'bower_components/tinymce/plugins/link/plugin.js', 'bower_components/tinymce/plugins/autolink/plugin.js',
'bower_components/tinymce/plugins/code/plugin.js',
// Leaflet
'bower_components/leaflet/dist/leaflet.js', 'bower_components/leaflet-locationfilter/src/locationfilter.js', 'bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
'bower_components/jquery-ui/jquery-ui.js', 'bower_components/jquery-ui/ui/autocomplete.js',
//
'bower_components/dyn-css/lib/dyncss.js', 'bower_components/jstree/dist/jstree.min.js'],
dest : '<%= app.dist %>/js/libraries.js',
},
app : {
src : [ '<%= app.source %>/js/main.js', '<%= app.source %>/js/crophub.js', '<%= app.source %>/js/custom.js' ],
dest : '<%= app.dist %>/js/genesys.js'
},
world : {
src: [ 'bower_components/highmaps-beta/highmaps.src.js', 'bower_components/highcharts/modules/data.src.js', '<%= app.source %>/js/world.js'],
dest : '<%= app.dist %>/js/genesyshighcharts.js'
},
dist1 : { dist1 : {
src : [ 'bower_components/jquery/dist/jquery.js', src : [ 'bower_components/jquery/dist/jquery.js', 'bower_components/modernizr/modernizr.js', 'bower_components/jquery-flot/jquery.flot.js', 'bower_components/jquery-flot/jquery.flot.pie.js',
'bower_components/modernizr/modernizr.js', 'bower_components/jquery-flot/jquery.flot.fillbetween.js', 'bower_components/jquery-simplecolorpicker/jquery.simplecolorpicker.js', 'bower_components/tinymce/tinymce.js',
'bower_components/jquery-flot/jquery.flot.js', 'bower_components/tinymce/tinymce.jquery.js', 'bower_components/tinymce/themes/modern/theme.js', 'bower_components/tinymce/plugins/link/plugin.js',
'bower_components/jquery-flot/jquery.flot.pie.js', 'bower_components/tinymce/plugins/autolink/plugin.js', 'bower_components/tinymce/plugins/code/plugin.js', 'bower_components/leaflet/dist/leaflet.js',
'bower_components/jquery-flot/jquery.flot.fillbetween.js', 'bower_components/leaflet-locationfilter/src/locationfilter.js', 'bower_components/bootstrap-sass/assets/javascripts/bootstrap.js', 'bower_components/jquery-ui/jquery-ui.js',
'bower_components/jquery-simplecolorpicker/jquery.simplecolorpicker.js', 'bower_components/jquery-ui/ui/autocomplete.js', 'bower_components/dyn-css/lib/dyncss.js', 'bower_components/jstree/dist/jstree.min.js' ],
'bower_components/tinymce/tinymce.js',
'bower_components/tinymce/tinymce.jquery.js',
'bower_components/tinymce/themes/modern/theme.js',
'bower_components/tinymce/plugins/link/plugin.js',
'bower_components/tinymce/plugins/autolink/plugin.js',
'bower_components/tinymce/plugins/code/plugin.js',
'bower_components/leaflet/dist/leaflet.js',
'bower_components/leaflet-locationfilter/src/locationfilter.js',
'bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
'bower_components/jquery-ui/jquery-ui.js',
'bower_components/jquery-ui/ui/autocomplete.js',
'bower_components/dyn-css/lib/dyncss.js',
'bower_components/jstree/dist/jstree.min.js' ],
dest : '<%= app.dist1 %>/js/libraries.js', dest : '<%= app.dist1 %>/js/libraries.js',
}, },
app1 : { app1 : {
...@@ -260,7 +143,7 @@ module.exports = function(grunt) { ...@@ -260,7 +143,7 @@ module.exports = function(grunt) {
dest : '<%= app.dist1 %>/js/genesys.js' dest : '<%= app.dist1 %>/js/genesys.js'
}, },
world1 : { world1 : {
src: [ 'bower_components/highmaps-beta/highmaps.src.js', 'bower_components/highcharts/modules/data.src.js', '<%= app.source1 %>/js/world.js'], src : [ 'bower_components/highmaps-beta/highmaps.src.js', 'bower_components/highcharts/modules/data.src.js', '<%= app.source1 %>/js/world.js' ],
dest : '<%= app.dist1 %>/js/genesyshighcharts.js' dest : '<%= app.dist1 %>/js/genesyshighcharts.js'
} }
}, },
...@@ -269,15 +152,6 @@ module.exports = function(grunt) { ...@@ -269,15 +152,6 @@ module.exports = function(grunt) {
options : { options : {
browsers : [ 'last 3 versions' ] browsers : [ 'last 3 versions' ]
}, },