cms/gulpfile.js
changeset 541 e756a8c72c3d
parent 346 4cd0f8c936ed
--- a/cms/gulpfile.js	Tue Jul 11 09:49:26 2017 +0200
+++ b/cms/gulpfile.js	Fri Sep 08 12:04:06 2017 +0200
@@ -10,8 +10,10 @@
 
 const appBuildFolder = 'app-client/dist';
 const moduleFolder = 'corpus_module';
-const moduleBuildFolder = 'dist'
-const buildDestFolder = '../build/root/var/www/corpusdelaparole/drupal/sites/all/modules/' + moduleFolder;
+const moduleBuildFolder = 'dist';
+const drupalSrcFolder = 'drupal';
+const drupalDestFolder = '../build/root/var/www/corpusdelaparole/drupal';
+const buildDestFolder = drupalDestFolder + '/sites/all/modules/' + moduleFolder;
 
 const options = minimist(process.argv.slice(2), {string: "version"});
 
@@ -118,6 +120,11 @@
         .pipe(gulp.dest(buildDestFolder));
 });
 
+gulp.task('copy-drupal', function(cb) {
+    return gulp.src([drupalSrcFolder+'/**/*', drupalSrcFolder+'/**/.*'])
+        .pipe(gulp.dest(drupalDestFolder));
+});
+
 gulp.task('copy-build', function(cb) {
     seq('clean', 'copy-module', 'do-copy-build', function (err) {
       //if any error happened in the previous tasks, exit with a code > 0