chore: switch from Gruntfiles to npm scripts, see #5
This commit is contained in:
parent
fe6881099f
commit
b9e150200f
29
Gruntfile.js
29
Gruntfile.js
@ -1,29 +0,0 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
babel: {
|
||||
scripts: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'src',
|
||||
src: '**/*.js',
|
||||
dest: 'build/'
|
||||
}]
|
||||
}
|
||||
},
|
||||
clean: {
|
||||
files: ['build/**/*.js']
|
||||
},
|
||||
watch: {
|
||||
scripts: {
|
||||
files: ['src/**/*.js', 'server/**/*.js'],
|
||||
tasks: ['babel']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-babel');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('default', ['clean', 'babel']);
|
||||
};
|
Loading…
Reference in New Issue
Block a user