Skip to content

Commit

Permalink
Add extension, docs, sync tasks to Gruntfile, allowing dist to be cop…
Browse files Browse the repository at this point in the history
…ied (#811)

to mapml-extension, web-map-doc and all targets respectively.
  • Loading branch information
prushforth committed Mar 30, 2023
1 parent 29f002a commit 2082d1b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {
Expand All @@ -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']);

};

0 comments on commit 2082d1b

Please sign in to comment.