commonroutesApp/www/lib/ui-leaflet/grunt/concat.js
www/lib/ui-leaflet/grunt/concat.jsRaw
1'use strict';
2
3var concatDist, concatDistMapped = null;
4
5concatDist = {
6 options: {
7 banner: require('./utils/banner') + "(function(angular){\n" + "'use strict';\n",
8 footer: '\n}(angular));'
9 },
10 src: [
11 'dist/src/directives/leaflet.js',
12 'dist/src/services/*.js',
13 'dist/src/**/*.js'
14
15 ],
16 dest: 'dist/<%= pkg.name %>.pre.js'
17};
18
19concatDistMapped = _.clone(concatDist, true);
20concatDistMapped.options.sourceMap = true;
21concatDistMapped.options.sourceMapName = "dist/<%= pkg.name %>_dev_mapped.js.map";
22concatDistMapped.dest = "dist/<%= pkg.name %>_dev_mapped.js";
23
24
25module.exports = function (grunt, options) {
26 return {
27 dist: concatDist,
28 distMapped: concatDistMapped,
29 license: {
30 src: [
31 'src/header-MIT-license.txt',
32 'dist/<%= pkg.name %>.min.no-header.js'
33 ],
34 dest: 'dist/<%= pkg.name %>.min.js'
35 },
36 examples: {
37 options: {
38 banner: '(function(angular){ \nvar app = angular.module(\'webapp\');\n',
39 footer: '}(angular));'
40 },
41 src: ['examples/js/controllers/*.js'],
42 dest: 'examples/js/controllers.js'
43 },
44 website: {
45 options: {
46 //separator: ';',
47 banner: '(function (angular) {\n',
48 footer: '})(window.angular);'
49 },
50 src: ['website/src/js/app.js', 'website/src/js/**/*.js'],
51 dest: 'website/dist/js/<%= pkg.name %>-webpage.js',
52 }
53 };
54};