UNPKG

551 BJavaScriptView Raw
1/* eslint strict: 0, global-require: 0 */
2
3'use strict';
4
5module.exports = grunt => {
6 require('load-grunt-tasks')(grunt);
7
8 grunt.initConfig({
9 clean: {
10 compiled: ['./dist']
11 },
12 babel: {
13 options: {
14 sourceMap: true
15 },
16 dist: {
17 files: [{
18 expand: true,
19 cwd: 'src/',
20 src: ['**/**.js'],
21 dest: 'dist/',
22 ext: '.js'
23 }]
24 }
25 }
26 });
27
28 grunt.registerTask('build', [
29 'clean',
30 'babel'
31 ]);
32
33 grunt.registerTask('default', 'build');
34};