-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
41 lines (38 loc) · 1.15 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! Javascript Sudoku v<%= pkg.version %> by Deniss Dubinin - ' +
'https://github.com/denissdubinin/Javascript-Sudoku - Licensed MIT */\n',
uglify: {
options: {
banner: '<%= banner %>',
output: {
beautify: false
}
},
dist: {
files: {
'dist/sudoku.min.js': 'src/sudoku.js'
}
}
},
sass: {
options: {
noCache: true,
style: 'compressed',
banner: '<%= banner %>'
},
dist: {
files: {
'dist/sudoku.min.css': 'src/sudoku.scss'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('styles', ['sass']);
grunt.registerTask('js', ['uglify']);
grunt.registerTask('compile', ['styles', 'js']);
};