fng-reports 0.12.0-beta.17 → 0.12.0-beta.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Gruntfile.js CHANGED
@@ -1 +1 @@
1
- 'use strict';
2
1
  // load all grunt tasks
3
2
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
4
3
  // Project configuration.
5
4
  grunt.initConfig({
6
5
  // Project settings
7
6
  builddir: 'dist',
8
7
  pkg: grunt.file.readJSON('package.json'),
9
8
  meta: {
10
9
  banner: '/**\n' + ' * <%= pkg.description %>\n' +
11
10
  ' * @version v<%= pkg.version %> - ' +
12
11
  '<%= grunt.template.today("yyyy-mm-dd hh:nn") %>\n' +
13
12
  ' * @link <%= pkg.homepage %>\n' +
14
13
  ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' + ' */'
15
14
  },
16
15
  watch: {
17
16
  less: {
18
17
  files: ['app/css/{,*/}*.less'],
19
18
  tasks: ['less']
20
19
  }
21
20
  },
22
21
  'expand-include': {
23
22
  'get-started': {
24
23
  src: [ 'app/partials/get-started/get-started-template.html' ],
25
24
  dest: 'app/partials/get-started.html',
26
25
  options: {
27
26
  directiveSyntax: 'xml',
28
27
  substituteEntities: true,
29
28
  stripSelectedComments: true,
30
29
  adjustReferences: false
31
30
  }
32
31
  }
33
32
  },
34
33
  concat: {
35
34
  options: {
36
35
  banner: '/*! forms-angular <%= grunt.template.today("yyyy-mm-dd") %> */\n'
37
36
  },
38
37
  build: {
39
38
  src: [
40
39
  'src/*.js',
41
40
  'src/plugins/ng-grid/*.js',
42
41
  'src/plugins/jsPDF/*.js'
43
42
  ],
44
43
  dest: '<%= builddir %>/fng-reports.js'
45
44
  }
46
45
  },
47
46
  clean: {
48
47
  dist: {
49
48
  files: [
50
49
  {
51
50
  dot: true,
52
51
  src: [
53
52
  '.tmp',
54
53
  'dist/*',
55
54
  'dist/.git*'
56
55
  ]
57
56
  }
58
57
  ]
59
58
  },
60
59
  server: '.tmp'
61
60
  },
62
61
  // Add vendor prefixed styles
63
62
  autoprefixer: {
64
63
  options: {
65
64
  browsers: ['last 1 version']
66
65
  },
67
66
  dist: {
68
67
  files: [
69
68
  {
70
69
  expand: true,
71
70
  cwd: '.tmp/styles/',
72
71
  src: '{,*/}*.css',
73
72
  dest: '.tmp/styles/'
74
73
  }
75
74
  ]
76
75
  }
77
76
  },
78
77
  uglify: {
79
78
  options: {
80
79
  banner: '/*! forms-angular <%= grunt.template.today("yyyy-mm-dd") %> */\n'
81
80
  },
82
81
  build: {
83
82
  src: '<%= builddir %>/fng-reports.js',
84
83
  dest: '<%= builddir %>/fng-reports.min.js'
85
84
  }
86
85
  },
87
86
  jshint: {
88
87
  options: {
89
88
  jshintrc: '.jshintrc',
90
89
  ignores: ['app/js/services/utils.js']
91
90
  },
92
91
  all: [
93
92
  'Gruntfile.js',
94
93
  'server/{,*/}*.js',
95
94
  'app/js/{,*/}*.js',
96
95
  'app/demo/{,*/}*.js',
97
96
  'test/api/{,*/}*.js',
98
97
  'test/unit/{,*/}*.js',
99
98
  'test/midway/{,*/}*.js',
100
99
  'test/e2e/{,*/}*.js'
101
100
  ]
102
101
  },
103
102
  karma: {
104
103
  options: {
105
104
  singleRun: true
106
105
  },
107
106
  unit: {
108
107
  configFile: 'test/karma.conf.js'
109
108
  }
110
109
  },
111
110
  // Allow the use of non-minsafe AngularJS files. Automatically makes it
112
111
  // minsafe compatible so Uglify does not destroy the ng references
113
112
  ngAnnotate: {
114
113
  dist: {
115
114
  files: [
116
115
  {
117
116
  expand: true,
118
117
  cwd: '.tmp/concat/scripts',
119
118
  src: ['app.js', 'lib.js'],
120
119
  dest: '.tmp/concat/scripts'
121
120
  }
122
121
  ]
123
122
  }
124
123
  }
125
124
  });
126
125
  grunt.registerTask('build', [
127
126
  'check',
128
127
  'really-build'
129
128
  ]);
130
129
  grunt.registerTask('really-build', [
131
130
  'clean:dist',
132
131
  'autoprefixer',
133
132
  'concat',
134
133
  'ngAnnotate',
135
134
  'uglify'
136
135
  ]);
137
136
  grunt.registerTask('check', [
138
137
  'jshint',
139
138
  'karma'
140
139
  ]);
141
140
  grunt.registerTask('default', [
142
141
  'build'
143
142
  ]);
143
+ 'use strict';
144
144
  // load all grunt tasks
145
145
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
146
146
  // Project configuration.
147
147
  grunt.initConfig({
148
148
  // Project settings
149
149
  builddir: 'dist',
150
150
  pkg: grunt.file.readJSON('package.json'),
151
151
  meta: {
152
152
  banner: '/**\n' + ' * <%= pkg.description %>\n' +
153
153
  ' * @version v<%= pkg.version %> - ' +
154
154
  '<%= grunt.template.today("yyyy-mm-dd hh:nn") %>\n' +
155
155
  ' * @link <%= pkg.homepage %>\n' +
156
156
  ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' + ' */'
157
157
  },
158
158
  watch: {
159
159
  less: {
160
160
  files: ['app/css/{,*/}*.less'],
161
161
  tasks: ['less']
162
162
  }
163
163
  },
164
164
  'expand-include': {
165
165
  'get-started': {
166
166
  src: [ 'app/partials/get-started/get-started-template.html' ],
167
167
  dest: 'app/partials/get-started.html',
168
168
  options: {
169
169
  directiveSyntax: 'xml',
170
170
  substituteEntities: true,
171
171
  stripSelectedComments: true,
172
172
  adjustReferences: false
173
173
  }
174
174
  }
175
175
  },
176
176
  concat: {
177
177
  options: {
178
178
  banner: '/*! forms-angular <%= grunt.template.today("yyyy-mm-dd") %> */\n'
179
179
  },
180
180
  build: {
181
181
  src: [
182
182
  'src/*.js',
183
183
  'src/plugins/ng-grid/*.js',
184
184
  'src/plugins/jsPDF/*.js'
185
185
  ],
186
186
  dest: '<%= builddir %>/fng-reports.js'
187
187
  }
188
188
  },
189
189
  clean: {
190
190
  dist: {
191
191
  files: [
192
192
  {
193
193
  dot: true,
194
194
  src: [
195
195
  '.tmp',
196
196
  'dist/*',
197
197
  'dist/.git*'
198
198
  ]
199
199
  }
200
200
  ]
201
201
  },
202
202
  server: '.tmp'
203
203
  },
204
204
  // Add vendor prefixed styles
205
205
  autoprefixer: {
206
206
  options: {
207
207
  browsers: ['last 1 version']
208
208
  },
209
209
  dist: {
210
210
  files: [
211
211
  {
212
212
  expand: true,
213
213
  cwd: '.tmp/styles/',
214
214
  src: '{,*/}*.css',
215
215
  dest: '.tmp/styles/'
216
216
  }
217
217
  ]
218
218
  }
219
219
  },
220
220
  uglify: {
221
221
  options: {
222
222
  banner: '/*! forms-angular <%= grunt.template.today("yyyy-mm-dd") %> */\n'
223
223
  },
224
224
  build: {
225
225
  src: '<%= builddir %>/fng-reports.js',
226
226
  dest: '<%= builddir %>/fng-reports.min.js'
227
227
  }
228
228
  },
229
229
  jshint: {
230
230
  options: {
231
231
  jshintrc: '.jshintrc',
232
232
  ignores: ['app/js/services/utils.js']
233
233
  },
234
234
  all: [
235
235
  'Gruntfile.js',
236
236
  'server/{,*/}*.js',
237
237
  'app/js/{,*/}*.js',
238
238
  'app/demo/{,*/}*.js',
239
239
  'test/api/{,*/}*.js',
240
240
  'test/unit/{,*/}*.js',
241
241
  'test/midway/{,*/}*.js',
242
242
  'test/e2e/{,*/}*.js'
243
243
  ]
244
244
  },
245
245
  copy: {
246
246
  types: {
247
247
  files: [
248
248
  {
249
249
  expand: true,
250
250
  cwd: '.',
251
251
  dest: '<%= builddir %>',
252
252
  src: ['index.d.ts']
253
253
  }
254
254
  ]
255
255
  }
256
256
  },
257
257
  karma: {
258
258
  options: {
259
259
  singleRun: true
260
260
  },
261
261
  unit: {
262
262
  configFile: 'test/karma.conf.js'
263
263
  }
264
264
  },
265
265
  // Allow the use of non-minsafe AngularJS files. Automatically makes it
266
266
  // minsafe compatible so Uglify does not destroy the ng references
267
267
  ngAnnotate: {
268
268
  dist: {
269
269
  files: [
270
270
  {
271
271
  expand: true,
272
272
  cwd: '.tmp/concat/scripts',
273
273
  src: ['app.js', 'lib.js'],
274
274
  dest: '.tmp/concat/scripts'
275
275
  }
276
276
  ]
277
277
  }
278
278
  }
279
279
  });
280
280
  grunt.registerTask('build', [
281
281
  'check',
282
282
  'really-build'
283
283
  ]);
284
284
  grunt.registerTask('really-build', [
285
285
  'clean:dist',
286
286
  'autoprefixer',
287
287
  'concat',
288
288
  'ngAnnotate',
289
289
  'uglify',
290
290
  'copy:types'
291
291
  ]);
292
292
  grunt.registerTask('check', [
293
293
  'jshint',
294
294
  'karma'
295
295
  ]);
296
296
  grunt.registerTask('default', [
297
297
  'build'
298
298
  ]);