Line | |
---|
1 | 'use strict';
|
---|
2 | module.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.