Skip to content

Commit 99adc67

Browse files
authored
Create Gruntfile.js
from 8ee4858
1 parent 20db6ce commit 99adc67

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Gruntfile.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = function (grunt)
2+
{
3+
'use strict';
4+
5+
// Load all Grunt tasks.
6+
require('load-grunt-tasks')(grunt);
7+
8+
grunt.initConfig({
9+
pkg: grunt.file.readJSON('package.json'),
10+
11+
// Uglify and copy JavaScript files from `node_modules` and from `src/` to `assets/js/`.
12+
uglify: {
13+
dist: {
14+
files: [
15+
{
16+
'assets/js/search.js': [
17+
'node_modules/jquery/dist/jquery.js',
18+
'node_modules/lunr/lunr.js',
19+
'src/search.js'
20+
]
21+
}
22+
]
23+
}
24+
}
25+
26+
});
27+
28+
// Register tasks.
29+
grunt.registerTask('build', ['uglify']);
30+
};

0 commit comments

Comments
 (0)