Hey guys, we’re in the process of migrating our ionic-v1 app to Ionic Pro. We use Deploy and that’s the major thing we’re going to need to change. In in the instructions it says to get npm run build setup:
so they when the app is deployed to Ionic Pro via git, it will be able to build it. Our app is currently using gulp to do the build process and I"m not sure if that’s available for Ionic Pro. I don’t have any instructions for moving the build process from gulp to npm build. Could someone give me some pointers on how to do that?
Right now the build process in Pro doesn’t seem to do anything (the npm run build and build script info needs to be setup in package.json, just not sure how)
Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on ip-10-2-90-23 (c9648220)
Using Shell executor…
Running on ip-10-2-90-23…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/c9648220/0/project-1’…
Checking out 82811ce1 as vijay1…
Skipping Git submodules setup
$ run "fetch-updates"
Running Stage fetch-updates for Job: 5243957
Checking for build process updates…
$ run "build-app"
Running Stage build-app for Job: 5243957
Parsing ionic.config.json for project settings
Project Settings:
Name: PeachDelivery
App ID: 4a…4
Type: ionic1
No build script detected in package.json. Skipping install and build steps.
Uploading build…
Yeah! So the way we got it to work was to add the build script to package.json and run our locally-installed gulp command (which gets installed from devDependencies) from there. So in our package.json it looks something like this: