diff --git a/abp_io/src/Volo.AbpWebSite.Web/gulpfile.js b/abp_io/src/Volo.AbpWebSite.Web/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/abp_io/src/Volo.AbpWebSite.Web/gulpfile.js +++ b/abp_io/src/Volo.AbpWebSite.Web/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/gulpfile.js b/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/gulpfile.js +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/modules/blogging/app/Volo.BloggingTestApp/gulpfile.js b/modules/blogging/app/Volo.BloggingTestApp/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/modules/blogging/app/Volo.BloggingTestApp/gulpfile.js +++ b/modules/blogging/app/Volo.BloggingTestApp/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/modules/client-simulation/demo/Volo.ClientSimulation.Demo/gulpfile.js b/modules/client-simulation/demo/Volo.ClientSimulation.Demo/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/modules/client-simulation/demo/Volo.ClientSimulation.Demo/gulpfile.js +++ b/modules/client-simulation/demo/Volo.ClientSimulation.Demo/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/modules/docs/app/VoloDocs.Web/gulpfile.js b/modules/docs/app/VoloDocs.Web/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/modules/docs/app/VoloDocs.Web/gulpfile.js +++ b/modules/docs/app/VoloDocs.Web/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/samples/BookStore/src/Acme.BookStore.Web/gulpfile.js b/samples/BookStore/src/Acme.BookStore.Web/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/samples/BookStore/src/Acme.BookStore.Web/gulpfile.js +++ b/samples/BookStore/src/Acme.BookStore.Web/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/samples/DashboardDemo/src/DashboardDemo.Web/gulpfile.js b/samples/DashboardDemo/src/DashboardDemo.Web/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/samples/DashboardDemo/src/DashboardDemo.Web/gulpfile.js +++ b/samples/DashboardDemo/src/DashboardDemo.Web/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/gulpfile.js b/samples/MicroserviceDemo/applications/AuthServer.Host/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/samples/MicroserviceDemo/applications/AuthServer.Host/gulpfile.js +++ b/samples/MicroserviceDemo/applications/AuthServer.Host/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/samples/MicroserviceDemo/applications/BackendAdminApp.Host/gulpfile.js b/samples/MicroserviceDemo/applications/BackendAdminApp.Host/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/samples/MicroserviceDemo/applications/BackendAdminApp.Host/gulpfile.js +++ b/samples/MicroserviceDemo/applications/BackendAdminApp.Host/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/samples/MicroserviceDemo/applications/PublicWebSite.Host/gulpfile.js b/samples/MicroserviceDemo/applications/PublicWebSite.Host/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/samples/MicroserviceDemo/applications/PublicWebSite.Host/gulpfile.js +++ b/samples/MicroserviceDemo/applications/PublicWebSite.Host/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js b/templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js +++ b/templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/gulpfile.js b/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/gulpfile.js +++ b/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Unified/gulpfile.js b/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Unified/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Unified/gulpfile.js +++ b/templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Unified/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js b/templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js index 754602029a..5dcf4c5c6f 100644 --- a/templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js +++ b/templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/gulpfile.js b/templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/gulpfile.js +++ b/templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file diff --git a/templates/mvc/src/MyCompanyName.MyProjectName.Web/gulpfile.js b/templates/mvc/src/MyCompanyName.MyProjectName.Web/gulpfile.js index db4c6fd03c..f7ebc78f23 100644 --- a/templates/mvc/src/MyCompanyName.MyProjectName.Web/gulpfile.js +++ b/templates/mvc/src/MyCompanyName.MyProjectName.Web/gulpfile.js @@ -4,8 +4,6 @@ var gulp = require("gulp"), path = require('path'), copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); -copyResources.init(path.resolve('./')); - -gulp.task('default', [copyResources.taskName], function () { - -}); \ No newline at end of file +exports.default = function(){ + return copyResources(path.resolve('./')); +}; \ No newline at end of file