From 2082d1b02b167b616ced0c11014e156fd2eb441e Mon Sep 17 00:00:00 2001 From: Peter Rushforth Date: Thu, 30 Mar 2023 14:55:06 -0400 Subject: [PATCH] Add extension, docs, sync tasks to Gruntfile, allowing dist to be copied (#811) to mapml-extension, web-map-doc and all targets respectively. --- Gruntfile.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index cd6919d5f..811b5fade 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -133,6 +133,24 @@ module.exports = function(grunt) { dest: '../experiments' } ] + }, + extension: { + files: [ + { + expand: true, + src: ['dist/*'], + dest: '../mapml-extension/src' + } + ] + }, + docs: { + files: [ + { + expand: true, + src: ['dist/*'], + dest: '../web-map-doc' + } + ] } }, clean: { @@ -141,6 +159,14 @@ module.exports = function(grunt) { experiments: { options: {force: true}, src: ['../experiments/dist'] + }, + extension: { + options: {force: true}, + src: ['../mapml-extension/src/dist'] + }, + docs: { + options: {force: true}, + src: ['../web-map-doc/dist'] } }, rollup: { @@ -166,5 +192,8 @@ module.exports = function(grunt) { grunt.registerTask('default', ['clean:dist', 'copy:main', 'copy:images', 'jshint', 'rollup', 'uglify', 'cssmin','clean:tidyup']); grunt.registerTask('experiments',['clean:experiments','default','copy:experiments']); + grunt.registerTask('extension',['clean:extension','default','copy:extension']); + grunt.registerTask('docs', ['clean:docs','default','copy:docs']); + grunt.registerTask('sync', ['default','experiments','extension','docs']); };