ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 652 forks source link

gulp4 with ionic v3 cli tasks won't run #2971

Open aubrey-fowler opened 6 years ago

aubrey-fowler commented 6 years ago

I installed this plugin: https://www.npmjs.com/package/@ionic/cli-plugin-gulp

I want to run my gulp4 tasks when I run the ionic cordova build command.

It's not working for me. Is it compatible with gulp4?

gulp.task("ionic:build:before", gulp.series("build"));

ionic info cli packages: (C:\Program Files\nodejs\node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0
Gulp CLI              : CLI version 3.9.1 Local version 3.5.6

local packages:

Cordova Platforms : android 6.2.3 windows 4.4.2
Ionic Framework   : ionic1 1.3.5

System:

Node : v6.11.0
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : C:\Android\sdk

Misc:

backend : pro
imhoffd commented 6 years ago

Kinda weird, but is gulp in devDependencies in package.json?

aubrey-fowler commented 6 years ago

Yes, I have gulp and gulp4 in my devDependencies:

  "devDependencies": {
    "gulp": "3.5.6",
    "gulp4": "4.0.2",
}