source: gs3-extensions/phind-html5/trunk/src/gruntfile.js@ 34928

Last change on this file since 34928 was 34926, checked in by davidb, 3 years ago

Additional files added in

File size: 740 bytes
Line 
1'use strict';
2module.exports = function(grunt) {
3
4 grunt.initConfig({
5
6 concat: {
7 options: {
8 separator: ';',
9 },
10 dist: {
11 src: ['src/Canvas.js',
12 'src/ResultItem.js', 'src/ResultItemDocument.js', 'src/ResultItemPhrase.js', 'src/ResultItemLink.js',
13 'src/Phind.js', 'src/PhindTitle.js',
14 'src/URLUTF8Encoder.js'
15 ],
16 dest: 'concat/phind.js'
17 },
18 },
19
20 babel: {
21 options: {
22 sourceMap: true,
23 presets: ["@babel/preset-env"],
24 },
25
26
27 dist: {
28 files: {
29 "dist/phind.js": "concat/phind.js",
30 },
31
32 },
33 },
34 });
35
36 grunt.loadNpmTasks('grunt-contrib-concat');
37 grunt.loadNpmTasks('grunt-babel');
38
39 grunt.registerTask("default", ["concat", "babel"]);
40}
Note: See TracBrowser for help on using the repository browser.