diff --git a/config.yml b/config.yml index 22fa253..ca203d5 100644 --- a/config.yml +++ b/config.yml @@ -1,17 +1,18 @@ SITE: - Local: 'https://roblib2023.lndo.site/' + Local: + Url: 'https://d10_dev.lndo.site/' Remote: - Url: 'https://rdm2.researchspaces.ca/' + Url: 'https://library-d10.researchspaces.ca/' Path: user PORT: 8000 BSREWRITE: Css: - Match: '/themes/contrib/rdm/css/style.css' - Replace: '/css/style.css' + Match: '/themes/custom/roblib_2023/css/global-style.css' + Replace: '/css/global-style.css' Js: - Match: "/themes/contrib/RDM/js/" - Replace: "/js/" + Match: "/themes/custom/roblib_2023/js/custom_js.js" + Replace: "/js/custom_js.js" PATHS: Watch: #changes in these compiled files trigged reload diff --git a/gulpfile.js b/gulpfile.js index 10e3656..89cc5fa 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,15 +20,15 @@ function loadConfig() { function bsInit__local(done) { browsersync.init({ logLevel: 'debug', - //proxy: SITE.Local.Url, - proxy: 'https://roblib2023.lndo.site/' + proxy: SITE.Local.Url, + //proxy: 'https://d10_dev.lndo.site/', }); done(); } function bsInit__remote(done) { browsersync.init({ - //logLevel: 'debug', + logLevel: 'debug', proxy: SITE.Remote.Url, serveStatic: ['.'], files: PATHS.Watch, @@ -61,24 +61,22 @@ function drush() { // Compile CSS function styles() { 'use strict'; - return ( - gulp - //.src(PATHS.Scss.Dir + '/**/*.scss') - .src('./css/sass/**/*.scss') - .pipe(plumber()) - .pipe(sourcemaps.init()) - .pipe( - sass - .sync({ - includePaths: PATHS.Scss.Libraries - }) - .on('error', sass.logError) - ) - .pipe(sourcemaps.write('.')) - //.pipe(gulp.dest(PATHS.Css.Dir)) - .pipe(gulp.dest('./css')) - .pipe(browsersync.stream()) - ); + return gulp + //.src(PATHS.Scss.Dir + '/**/*.scss') + .src('./css/sass/**/*.scss') + .pipe(plumber()) + .pipe(sourcemaps.init()) + .pipe( + sass + .sync({ + includePaths: PATHS.Scss.Libraries + }) + .on('error', sass.logError) + ) + .pipe(sourcemaps.write('.')) + //.pipe(gulp.dest(PATHS.Css.Dir)) + .pipe(gulp.dest('./css')) + .pipe(browsersync.stream()); } // Watch Files