Loading client-app/app.profile.js +41 −41 Original line number Diff line number Diff line Loading @@ -25,9 +25,9 @@ var declarativeTagger = function(filename) { }; var profileObj = { basePath: './src', releaseDir: '../../dist', releaseName: 'src', basePath: '.', releaseDir: '../dist', releaseName: 'javascript', action: 'release', layerOptimize: 'closure', optimize: 'closure', Loading Loading @@ -85,16 +85,16 @@ var profileObj = { packages: [{ name: 'dijit', location: 'dijit' location: 'deps/dijit' },{ name: 'dojo', location: 'dojo' location: 'deps/dojo' },{ name: 'dojox', location: 'dojox' location: 'deps/dojox' },{ name: 'cbtree', location: 'cbtree', location: 'deps/cbtree', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, [ Loading @@ -119,112 +119,112 @@ var profileObj = { } },{ name: 'put-selector', location: 'put-selector' location: 'deps/put-selector' },{ name: 'wicket', location: 'wicket', location: 'deps/wicket', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, ['wicket/wicket.min', 'wicket/wicket-leaflet.min']) } },{ name: 'app', location: 'app', location: 'src/app', resourceTags: { amd: amdTagger } },{ name: 'RWidgets', location: 'redmic/widgets', location: 'src/redmic/widgets', resourceTags: { amd: amdTagger } },{ name: 'redmic', location: 'redmic', location: 'src/redmic', resourceTags: { amd: amdTagger } },{ name: 'src', location: 'src', location: 'src/src', resourceTags: { amd: amdTagger } },{ name: 'mediatorjs', location: 'mediatorjs', location: 'deps/mediatorjs', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'mediatorjs/mediator.min') } },{ name: 'moment', location: 'moment/min', location: 'deps/moment/min', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'moment/moment.min') } },{ name: 'deepmerge', location: 'deepmerge/dist', location: 'deps/deepmerge/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'deepmerge/umd') } },{ name: 'leaflet', location: 'leaflet/dist', location: 'deps/leaflet/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'leaflet/leaflet') } },{ name: 'leaflet-nontiledlayer', location: 'leaflet-nontiledlayer/dist', location: 'deps/leaflet-nontiledlayer/dist', resourceTags: { amd: amdTagger } },{ name: 'awesome-markers', location: 'leaflet-awesome-markers/dist', location: 'deps/leaflet-awesome-markers/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'awesome-markers/leaflet.awesome-markers.min') } },{ name: 'L-coordinates', location: 'leaflet-coordinates/dist', location: 'deps/leaflet-coordinates/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'L-coordinates/Leaflet.Coordinates-0.1.5.min') } },{ name: 'L-draw', location: 'leaflet-draw/dist', location: 'deps/leaflet-draw/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'L-draw/leaflet.draw') } },{ name: 'L-miniMap', location: 'leaflet-minimap/dist', location: 'deps/leaflet-minimap/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'L-miniMap/Control.MiniMap.min') } },{ name: 'L-navBar', location: 'leaflet-navbar/src', location: 'deps/leaflet-navbar/src', resourceTags: { ignore: ignoreTagger.bind(null, 'L-navBar/Leaflet.NavBar') } },{ name: 'L-areaselect', location: 'leaflet-areaselect/src', location: 'deps/leaflet-areaselect/src', resourceTags: { ignore: ignoreTagger.bind(null, 'L-areaselect/leaflet-areaselect') } },{ name: 'leaflet-measure', location: 'leaflet-measure/dist', location: 'deps/leaflet-measure/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, [ Loading @@ -234,110 +234,110 @@ var profileObj = { } },{ name: 'pruneCluster', location: 'pruneCluster/dist', location: 'deps/pruneCluster/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'pruneCluster/PruneCluster.amd.min') } },{ name: 'sockjs', location: 'sockjs/dist', location: 'deps/sockjs/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'sockjs/sockjs.min') } },{ name: 'stomp-websocket', location: 'stomp-websocket/lib', location: 'deps/stomp-websocket/lib', resourceTags: { ignore: ignoreTagger.bind(null, 'stomp-websocket/stomp.min') } },{ name: 'alertify', location: 'alertify/build', location: 'deps/alertify/build', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'alertify/alertify.min') } },{ name: 'templates', location: 'templates/dist', location: 'deps/templates/dist', resourceTags: { amd: amdTagger } },{ name: 'd3', location: 'd3/dist', location: 'deps/d3/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'd3/d3.min') } },{ name: 'd3Tip', location: 'd3-v6-tip/build', location: 'deps/d3-v6-tip/build', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'd3Tip/d3-v6-tip.min') } },{ name: 'uuid', location: 'uuid/dist/umd', location: 'deps/uuid/dist/umd', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'uuid/uuidv4.min') } },{ name: 'proj4', location: 'proj4/dist', location: 'deps/proj4/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'proj4/proj4') } },{ name: 'dropzone', location: 'dropzone/dist/min', location: 'deps/dropzone/dist/min', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'dropzone/dropzone-amd-module.min') } },{ name: 'tv4', location: 'tv4', location: 'deps/tv4', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'tv4/tv4') } },{ name: 'colorjs', location: 'color-js', location: 'deps/color-js', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'colorjs/color') } },{ name: 'json-schema-ref-parser', location: 'json-schema-ref-parser/dist', location: 'deps/json-schema-ref-parser/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'json-schema-ref-parser/ref-parser.min') } },{ name: 'packery', location: 'packery/dist', location: 'deps/packery/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'packery/packery.pkgd.min') } },{ name: 'draggabilly', location: 'draggabilly/dist', location: 'deps/draggabilly/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'draggabilly/draggabilly.pkgd.min') } },{ name: 'handlebars', location: 'handlebars/dist', location: 'deps/handlebars/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'handlebars/handlebars.runtime.min') Loading grunt/config/copy.js +15 −11 Original line number Diff line number Diff line module.exports = function(grunt) { var srcPath = grunt.config('redmicConfig.srcPath'), var path = require('path'), srcPath = grunt.config('redmicConfig.srcPath'), depsPath = grunt.config('redmicConfig.depsPath'), distPath = grunt.config('redmicConfig.distPath'), destDir = grunt.config('redmicConfig.destDir'), publicPath = srcPath.split('/')[0], resourcesPath = 'resources/**', Loading @@ -10,13 +14,13 @@ module.exports = function(grunt) { stylesDistPath = stylesPath + '/dist', distStylesSubPath = distPath + '/stylesheets', leafletPath = '/deps/leaflet/', srcLeafletPath = publicPath + leafletPath, distLeafletPath = distPath + leafletPath, leafletPath = 'leaflet', srcLeafletPath = path.join(depsPath, leafletPath), distLeafletPath = path.join(distPath, destDir, leafletPath), pdfjsPath = '/deps/pdfjs/', srcPdfjsPath = publicPath + pdfjsPath, distPdfjsPath = distPath + pdfjsPath, pdfjsPath = 'pdfjs', srcPdfjsPath = path.join(depsPath, pdfjsPath), distPdfjsPath = path.join(distPath, destDir, pdfjsPath), pdfjsWebName = 'web', pdfjsBuildName = 'build'; Loading Loading @@ -47,14 +51,14 @@ module.exports = function(grunt) { }, pdfjs: { files: [{ cwd: srcPdfjsPath + pdfjsWebName, cwd: path.join(srcPdfjsPath, pdfjsWebName), src: ['v*[^.map]', 'pdf.viewer.js', 'images/*', 'locale/es-ES/*', 'locale/en-GB/*'], dest: distPdfjsPath + pdfjsWebName, dest: path.join(distPdfjsPath, pdfjsWebName), expand: true },{ cwd: srcPdfjsPath + pdfjsBuildName, cwd: path.join(srcPdfjsPath, pdfjsBuildName), src: 'pdf.worker.js', dest: distPdfjsPath + pdfjsBuildName, dest: path.join(distPdfjsPath, pdfjsBuildName), expand: true }] } Loading grunt/task/buildApp.js +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ module.exports = function(grunt) { var path = require('path'), rootPath = grunt.config('redmicConfig.rootPath'), srcPath = grunt.config('redmicConfig.srcPath'), depsPath = grunt.config('redmicConfig.depsPath'), distPath = grunt.config('redmicConfig.distPath'), destDir = grunt.config('redmicConfig.destDir'), resourcesToClean = grunt.config('redmicConfig.resourcesToCleanInBuiltApp'), Loading @@ -21,7 +21,7 @@ module.exports = function(grunt) { command: function() { var profile = pkg.dojoBuild, scriptPath = path.join(srcPath, 'dojo/dojo.js'), scriptPath = path.join(depsPath, 'dojo/dojo.js'), releaseDir = path.join(rootPath, distPath), nodeParams = ' --optimize_for_size --max_old_space_size=3000 --gc_interval=100 ', buildParams = ' load=build --profile "' + profile + '" --releaseDir "' + releaseDir + '"'; Loading server-app/views/layout.pug +5 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,9 @@ html altLocale1 = esLocale; } const basePath = '/' + (env.useBuilt ? 'dist' : 'client-app'); const basePath = '/' + (env.useBuilt ? 'dist' : 'client-app'), dojoConfigPath = basePath + '/' + (env.useBuilt ? 'javascript' : 'src') + '/dojoConfig.js', dojoJsPath = basePath + '/' + (env.useBuilt ? 'javascript' : 'deps') + '/dojo/dojo.js'; meta(name = 'og:locale' content = locale) meta(name = 'og:locale:alternate' content = altLocale1) Loading @@ -38,8 +40,8 @@ html meta(name = 'twitter:card' content = 'summary') meta(name = 'twitter:site' content = '@redmic_project') script(src = basePath + '/src/dojoConfig.js') script(src = basePath + '/deps/dojo/dojo.js' data-dojo-config = 'locale:"' + env.lang + '"') script(src = dojoConfigPath) script(src = dojoJsPath data-dojo-config = 'locale:"' + env.lang + '"') link(rel='shortcut icon', href=basePath + '/resources/images/favicon.ico') Loading Loading
client-app/app.profile.js +41 −41 Original line number Diff line number Diff line Loading @@ -25,9 +25,9 @@ var declarativeTagger = function(filename) { }; var profileObj = { basePath: './src', releaseDir: '../../dist', releaseName: 'src', basePath: '.', releaseDir: '../dist', releaseName: 'javascript', action: 'release', layerOptimize: 'closure', optimize: 'closure', Loading Loading @@ -85,16 +85,16 @@ var profileObj = { packages: [{ name: 'dijit', location: 'dijit' location: 'deps/dijit' },{ name: 'dojo', location: 'dojo' location: 'deps/dojo' },{ name: 'dojox', location: 'dojox' location: 'deps/dojox' },{ name: 'cbtree', location: 'cbtree', location: 'deps/cbtree', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, [ Loading @@ -119,112 +119,112 @@ var profileObj = { } },{ name: 'put-selector', location: 'put-selector' location: 'deps/put-selector' },{ name: 'wicket', location: 'wicket', location: 'deps/wicket', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, ['wicket/wicket.min', 'wicket/wicket-leaflet.min']) } },{ name: 'app', location: 'app', location: 'src/app', resourceTags: { amd: amdTagger } },{ name: 'RWidgets', location: 'redmic/widgets', location: 'src/redmic/widgets', resourceTags: { amd: amdTagger } },{ name: 'redmic', location: 'redmic', location: 'src/redmic', resourceTags: { amd: amdTagger } },{ name: 'src', location: 'src', location: 'src/src', resourceTags: { amd: amdTagger } },{ name: 'mediatorjs', location: 'mediatorjs', location: 'deps/mediatorjs', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'mediatorjs/mediator.min') } },{ name: 'moment', location: 'moment/min', location: 'deps/moment/min', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'moment/moment.min') } },{ name: 'deepmerge', location: 'deepmerge/dist', location: 'deps/deepmerge/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'deepmerge/umd') } },{ name: 'leaflet', location: 'leaflet/dist', location: 'deps/leaflet/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'leaflet/leaflet') } },{ name: 'leaflet-nontiledlayer', location: 'leaflet-nontiledlayer/dist', location: 'deps/leaflet-nontiledlayer/dist', resourceTags: { amd: amdTagger } },{ name: 'awesome-markers', location: 'leaflet-awesome-markers/dist', location: 'deps/leaflet-awesome-markers/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'awesome-markers/leaflet.awesome-markers.min') } },{ name: 'L-coordinates', location: 'leaflet-coordinates/dist', location: 'deps/leaflet-coordinates/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'L-coordinates/Leaflet.Coordinates-0.1.5.min') } },{ name: 'L-draw', location: 'leaflet-draw/dist', location: 'deps/leaflet-draw/dist', resourceTags: { ignore: ignoreTagger.bind(null, 'L-draw/leaflet.draw') } },{ name: 'L-miniMap', location: 'leaflet-minimap/dist', location: 'deps/leaflet-minimap/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'L-miniMap/Control.MiniMap.min') } },{ name: 'L-navBar', location: 'leaflet-navbar/src', location: 'deps/leaflet-navbar/src', resourceTags: { ignore: ignoreTagger.bind(null, 'L-navBar/Leaflet.NavBar') } },{ name: 'L-areaselect', location: 'leaflet-areaselect/src', location: 'deps/leaflet-areaselect/src', resourceTags: { ignore: ignoreTagger.bind(null, 'L-areaselect/leaflet-areaselect') } },{ name: 'leaflet-measure', location: 'leaflet-measure/dist', location: 'deps/leaflet-measure/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, [ Loading @@ -234,110 +234,110 @@ var profileObj = { } },{ name: 'pruneCluster', location: 'pruneCluster/dist', location: 'deps/pruneCluster/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'pruneCluster/PruneCluster.amd.min') } },{ name: 'sockjs', location: 'sockjs/dist', location: 'deps/sockjs/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'sockjs/sockjs.min') } },{ name: 'stomp-websocket', location: 'stomp-websocket/lib', location: 'deps/stomp-websocket/lib', resourceTags: { ignore: ignoreTagger.bind(null, 'stomp-websocket/stomp.min') } },{ name: 'alertify', location: 'alertify/build', location: 'deps/alertify/build', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'alertify/alertify.min') } },{ name: 'templates', location: 'templates/dist', location: 'deps/templates/dist', resourceTags: { amd: amdTagger } },{ name: 'd3', location: 'd3/dist', location: 'deps/d3/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'd3/d3.min') } },{ name: 'd3Tip', location: 'd3-v6-tip/build', location: 'deps/d3-v6-tip/build', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'd3Tip/d3-v6-tip.min') } },{ name: 'uuid', location: 'uuid/dist/umd', location: 'deps/uuid/dist/umd', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'uuid/uuidv4.min') } },{ name: 'proj4', location: 'proj4/dist', location: 'deps/proj4/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'proj4/proj4') } },{ name: 'dropzone', location: 'dropzone/dist/min', location: 'deps/dropzone/dist/min', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'dropzone/dropzone-amd-module.min') } },{ name: 'tv4', location: 'tv4', location: 'deps/tv4', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'tv4/tv4') } },{ name: 'colorjs', location: 'color-js', location: 'deps/color-js', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'colorjs/color') } },{ name: 'json-schema-ref-parser', location: 'json-schema-ref-parser/dist', location: 'deps/json-schema-ref-parser/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'json-schema-ref-parser/ref-parser.min') } },{ name: 'packery', location: 'packery/dist', location: 'deps/packery/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'packery/packery.pkgd.min') } },{ name: 'draggabilly', location: 'draggabilly/dist', location: 'deps/draggabilly/dist', resourceTags: { copyOnly: copyOnlyTagger, ignore: ignoreTagger.bind(null, 'draggabilly/draggabilly.pkgd.min') } },{ name: 'handlebars', location: 'handlebars/dist', location: 'deps/handlebars/dist', resourceTags: { amd: amdTagger, ignore: ignoreTagger.bind(null, 'handlebars/handlebars.runtime.min') Loading
grunt/config/copy.js +15 −11 Original line number Diff line number Diff line module.exports = function(grunt) { var srcPath = grunt.config('redmicConfig.srcPath'), var path = require('path'), srcPath = grunt.config('redmicConfig.srcPath'), depsPath = grunt.config('redmicConfig.depsPath'), distPath = grunt.config('redmicConfig.distPath'), destDir = grunt.config('redmicConfig.destDir'), publicPath = srcPath.split('/')[0], resourcesPath = 'resources/**', Loading @@ -10,13 +14,13 @@ module.exports = function(grunt) { stylesDistPath = stylesPath + '/dist', distStylesSubPath = distPath + '/stylesheets', leafletPath = '/deps/leaflet/', srcLeafletPath = publicPath + leafletPath, distLeafletPath = distPath + leafletPath, leafletPath = 'leaflet', srcLeafletPath = path.join(depsPath, leafletPath), distLeafletPath = path.join(distPath, destDir, leafletPath), pdfjsPath = '/deps/pdfjs/', srcPdfjsPath = publicPath + pdfjsPath, distPdfjsPath = distPath + pdfjsPath, pdfjsPath = 'pdfjs', srcPdfjsPath = path.join(depsPath, pdfjsPath), distPdfjsPath = path.join(distPath, destDir, pdfjsPath), pdfjsWebName = 'web', pdfjsBuildName = 'build'; Loading Loading @@ -47,14 +51,14 @@ module.exports = function(grunt) { }, pdfjs: { files: [{ cwd: srcPdfjsPath + pdfjsWebName, cwd: path.join(srcPdfjsPath, pdfjsWebName), src: ['v*[^.map]', 'pdf.viewer.js', 'images/*', 'locale/es-ES/*', 'locale/en-GB/*'], dest: distPdfjsPath + pdfjsWebName, dest: path.join(distPdfjsPath, pdfjsWebName), expand: true },{ cwd: srcPdfjsPath + pdfjsBuildName, cwd: path.join(srcPdfjsPath, pdfjsBuildName), src: 'pdf.worker.js', dest: distPdfjsPath + pdfjsBuildName, dest: path.join(distPdfjsPath, pdfjsBuildName), expand: true }] } Loading
grunt/task/buildApp.js +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ module.exports = function(grunt) { var path = require('path'), rootPath = grunt.config('redmicConfig.rootPath'), srcPath = grunt.config('redmicConfig.srcPath'), depsPath = grunt.config('redmicConfig.depsPath'), distPath = grunt.config('redmicConfig.distPath'), destDir = grunt.config('redmicConfig.destDir'), resourcesToClean = grunt.config('redmicConfig.resourcesToCleanInBuiltApp'), Loading @@ -21,7 +21,7 @@ module.exports = function(grunt) { command: function() { var profile = pkg.dojoBuild, scriptPath = path.join(srcPath, 'dojo/dojo.js'), scriptPath = path.join(depsPath, 'dojo/dojo.js'), releaseDir = path.join(rootPath, distPath), nodeParams = ' --optimize_for_size --max_old_space_size=3000 --gc_interval=100 ', buildParams = ' load=build --profile "' + profile + '" --releaseDir "' + releaseDir + '"'; Loading
server-app/views/layout.pug +5 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,9 @@ html altLocale1 = esLocale; } const basePath = '/' + (env.useBuilt ? 'dist' : 'client-app'); const basePath = '/' + (env.useBuilt ? 'dist' : 'client-app'), dojoConfigPath = basePath + '/' + (env.useBuilt ? 'javascript' : 'src') + '/dojoConfig.js', dojoJsPath = basePath + '/' + (env.useBuilt ? 'javascript' : 'deps') + '/dojo/dojo.js'; meta(name = 'og:locale' content = locale) meta(name = 'og:locale:alternate' content = altLocale1) Loading @@ -38,8 +40,8 @@ html meta(name = 'twitter:card' content = 'summary') meta(name = 'twitter:site' content = '@redmic_project') script(src = basePath + '/src/dojoConfig.js') script(src = basePath + '/deps/dojo/dojo.js' data-dojo-config = 'locale:"' + env.lang + '"') script(src = dojoConfigPath) script(src = dojoJsPath data-dojo-config = 'locale:"' + env.lang + '"') link(rel='shortcut icon', href=basePath + '/resources/images/favicon.ico') Loading