Gulp Setup

87 views
Skip to first unread message

Amit Kapoor

unread,
Jul 26, 2019, 3:09:40 AM7/26/19
to Scroll Viewport Developers

Hi,

Can anyone help me with this error? GADS is the theme name here. I started with ZURB Foundation Framework and installer BOWER. Bower is depracated so Installed yarn and webpack.

I added gulp.series and gulp.parallel to the gulpfile as required by Gulp 4. On running gulp create or gulp watch, I get this:


Error text:
assert.js:362
    throw err;
    ^

AssertionError [ERR_ASSERTION]: Task never defined: reset-theme
    at getFunction (C:\Users\amikapoo\node_modules\undertaker\lib\helpers\normalizeArgs.js:15:5)
    at map (C:\Users\amikapoo\node_modules\arr-map\index.js:20:14)
    at normalizeArgs (C:\Users\amikapoo\node_modules\undertaker\lib\helpers\normalizeArgs.js:22:10)
    at Gulp.parallel (C:\Users\amikapoo\node_modules\undertaker\lib\parallel.js:13:14)
    at Object.<anonymous> (C:\Users\amikapoo\GADS\gulpfile.js:39:26)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: true,
  operator: '=='
}

Here is the structure in VS Code.
gulp_structure.png

Amit Kapoor

unread,
Jul 26, 2019, 6:05:15 AM7/26/19
to Scroll Viewport Developers

I also removed square brackets from line #39.

Steffen Burzlaff (K15t)

unread,
Jul 26, 2019, 8:23:09 AM7/26/19
to Scroll Viewport Developers
Hi Amit,

it seems that you are missing the task "reset-theme" in your gulp file. Make sure the jobs you are calling with gulp watch are set up.
Does this solve the problem?

Thanks and have a nice day.

Best Regards,
Steffen
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Amit Kapoor

unread,
Jul 26, 2019, 9:56:01 AM7/26/19
to Scroll Viewport Developers


Hi Steffan,

I beleiveI have it in my file. Please see the file attached.

-Amit
gulpfile.js.txt

Amit Kapoor

unread,
Jul 26, 2019, 9:58:22 AM7/26/19
to Scroll Viewport Developers

On a second thought- may be it is missing. Please see the file. I followed the instructions. How do I setup these jobs and in which file?

-Amit

Steffen Burzlaff (K15t)

unread,
Jul 29, 2019, 2:56:05 AM7/29/19
to Scroll Viewport Developers
Hi Amit,

as far as I can see in your file, you try to call gulp watch, this will call the task 'gulp.upload' which is commented out.
Also the gulp.upload task is trying to perform the tasks parallel ( gulp.parallel ) which could cause problems, because you want to delete the existing theme (in Confluence) first before uploading your new files.
So I would recommend to use the [array] as it is in the default gulp files from ours.

Hope this is helping.
Let me know if you encounter any problems.

Best Regards,
Steffen
Reply all
Reply to author
Forward
0 new messages