From dc458c7b763df4bac5eaf940b8247080275eaed2 Mon Sep 17 00:00:00 2001 From: Alexander Trofimov Date: Thu, 22 Oct 2020 11:37:55 +0300 Subject: [PATCH] [add] Develop --- Gruntfile.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 077cfd69..fa8ee002 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -121,6 +121,16 @@ module.exports = function (grunt) { }, checkDependencies: checkDependencies }); + + grunt.registerTask('build-develop', 'Build develop scripts', function () { + if (packageFile.grunt["develop-copy"]) { + grunt.initConfig({ + copy: packageFile.grunt["develop-copy"] + }); + } else { + grunt.registerTask('copy', 'No copy', function () {}); + } + }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-copy'); @@ -130,5 +140,5 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-check-dependencies'); grunt.registerTask('default', ['clean', 'mkdir', 'copy', 'comments', 'usebanner', 'checkDependencies']); - -}; \ No newline at end of file + grunt.registerTask('develop', ['build-develop', 'copy']); +};