Commit 4bb3d190 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Reestructura helpers, mejora stats

Prepara el proyecto para tener helpers por temática.

Continúa trabajo en la plantilla de estadísticas.
parent 0d657b20
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
module.exports = function(grunt) {

	grunt.config('copy', {
		rootFiles: {
		mainFile: {
			expand: true,
			cwd: 'src',
			src: '*.js',
			src: 'main.js',
			dest: 'dist'
		},
		helpers: {
			expand: true,
			cwd: 'src/Helpers',
			src: '*.js',
			dest: 'dist/Helpers'
		}
	});
};
+3 −2
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@ module.exports = function(grunt) {
						Depth: true,
						IsValidZ: true,
						ExpandOrCollapse: true,
						ColorRamp: true
						ColorRamp: true,
						Capitalize: true
					},
					knownHelpersOnly: true
				}
@@ -167,7 +168,7 @@ module.exports = function(grunt) {
				, 'dist/SelectionList.js': 'src/Selection/List.hbs'
				, 'dist/MisidentificationList.js': 'src/Misidentification/List.hbs'

				, 'dist/AdministrativeStatisticsList.js': 'src/Statistics/AdministrativeList.hbs'
				, 'dist/StatisticsList.js': 'src/Statistics/List.hbs'
				, 'dist/NotificationList.js': 'src/Notification/List.hbs'
				, 'dist/StatisticsTitle.js': 'src/Statistics/Title.hbs'

+1 −1
Original line number Diff line number Diff line
module.exports = function(grunt) {

	grunt.registerTask('build',
		['clean', 'handlebars', 'copy:rootFiles']);
		['clean', 'handlebars', 'copy']);
};
+0 −0

File moved.

src/Helpers/string.js

0 → 100644
+17 −0
Original line number Diff line number Diff line
define([
	'handlebars/handlebars.min'
	, 'RWidgets/Utilities'
], function(
	handlebars
	, Utilities
) {

	'use strict';

	return {
		'Capitalize': function(data) {

			return new handlebars.SafeString(Utilities.capitalize(data));
		}
	};
});
Loading