Commit 80c33ad2 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Agrega recursos de imagen de leaflet a compilado

parent db818bde
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ module.exports = function(grunt) {
		filesToDelete = [strippedFiles, uncompressedFiles],
		filesToKeep = [
			'dojo/dojo.js', 'dojo/resources/blank.gif', 'dojox/widget/ColorPicker/images/*.png',
			'redmic/modules/app/App.js'
			'leaflet/dist/images/*.png', 'redmic/modules/app/App.js'
		];

	grunt.config('redmicConfig.resourcesToCleanInBuiltApp', {
+12 −0
Original line number Diff line number Diff line
@@ -10,6 +10,10 @@ module.exports = function(grunt) {
		stylesDistPath = stylesPath + '/dist',
		distStylesSubPath = distPath + '/stylesheets',

		leafletPath = '/javascript/leaflet/',
		srcLeafletPath = publicPath + leafletPath,
		distLeafletPath = distPath + leafletPath,

		pdfjsPath = '/javascript/pdfjs/',
		srcPdfjsPath = publicPath + pdfjsPath,
		distPdfjsPath = distPath + pdfjsPath,
@@ -33,6 +37,14 @@ module.exports = function(grunt) {
				expand: true
			}]
		},
		leaflet: {
			files: [{
				cwd: srcLeafletPath,
				src: ['dist/images/marker-*.png'],
				dest: distLeafletPath,
				expand: true
			}]
		},
		pdfjs: {
			files: [{
				cwd: srcPdfjsPath + pdfjsWebName,
+1 −1
Original line number Diff line number Diff line
module.exports = function(grunt) {

	grunt.registerTask('build',
		['buildStyles', 'copy:resources', 'copy:pdfjs', 'buildApp', 'packageApp']);
		['buildStyles', 'copy:resources', 'copy:leaflet', 'copy:pdfjs', 'buildApp', 'packageApp']);
};