diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 946cecb..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,63 +0,0 @@ -module.exports = function(grunt) { - - require('load-grunt-tasks')(grunt); - - grunt.loadNpmTasks('grunt-contrib-clean'); - grunt.loadNpmTasks('grunt-babel'); - grunt.initConfig({ - - clean: ["dist"], - - copy: { - src_to_dist: { - cwd: 'src', - expand: true, - src: ['**/*', '**/*.js', '!**/*.scss'], - dest: 'dist' - }, - img_to_dist: { - cwd: 'src', - expand: true, - src: ['img/*'], - dest: 'dist/src/' - }, - pluginDef: { - expand: true, - src: [ 'plugin.json', 'README.md' ], - dest: 'dist', - } - }, - - watch: { - rebuild_all: { - files: ['src/**/*', 'plugin.json'], - tasks: ['default'], - options: {spawn: false} - }, - }, - - babel: { - options: { - sourceMap: true, - plugins: [ - "@babel/plugin-transform-modules-systemjs", - ], - presets: [ - ["@babel/preset-env"] - ] - }, - dist: { - files: [{ - cwd: 'src', - expand: true, - src: ['*.js'], - dest: 'dist', - ext:'.js' - }] - }, - }, - - }); - - grunt.registerTask('default', ['clean', 'copy:src_to_dist', 'copy:img_to_dist', 'copy:pluginDef', 'babel']); -};