Run an old ionic app made in 2016

I’ve developed an app with Ionic in the beginning of 2016 (I don’t remember the version of Ionic, which was the latest at that time).

At that time, Angular (v2+) was AngularJS (v1) and v2 was just an idea. I mean by that: I was forced to use AngularJS (v1) with Ionic.

Three years later and a few months later, I want to make some changes to this app. But somehow I can’t. It seems that support for AngularJS (v1) has been abandoned.

All I want is to be able to run it as it is (and maybe if possible make some little changes). I don’t want to upgrade to Angular (v7). I don’t even want to publish to the Apple Store or Google Store anymore (what a waste of time it was). All I want is to produce a web build of the app (as it is right now) and serve it somewhere.

There should be a way to do that! I mean, I spent so much time building this app and just 3 years later I cannot touch it anymore.

I was an early adopter of Ionic. I feel punished for it.

Any advice is welcomed. Thanks in advance.

The package.json at the top level of the app should remember, and its contents would be extremely useful to anybody trying to help you here.

1 Like

Hello @rapropos,

The package.json is:

{
  "name": "BridgeAtHome",
  "version": "1.0.2",
  "description": "BridgeAtHome",
  "dependencies": {
    "babel-plugin-transform-es2015-modules-amd": "^6.3.13",
    "babel-preset-es2015": "^6.3.13",
    "bower": "^1.3.3",
    "gulp": "^3.9.0",
    "gulp-babel": "^6.1.1",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0",
    "gulp-sass": "^2.0.4",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-util": "^2.2.14",
    "shelljs": "^0.3.0",
    "vinyl-buffer": "^1.0.0",
    "vinyl-source-stream": "^1.1.0"
  },
  "devDependencies": {},
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard",
    "cordova-plugin-inappbrowser"
  ],
  "cordovaPlatforms": [
    "ios@4.1.0",
    "android"
  ]
}

As you can see, no reference to ionic. I think ionic was referenced with bower at that time. Here’s the bower.json file:

{
  "name": "HelloIonic",
  "private": "true",
  "devDependencies": {
  },
  "dependencies": {
    "ionic": "driftyco/ionic-bower#master",
    "angular": "1.5.1-build.4623+sha.7324804",
    "angular-animate": "1.5.1-build.4623+sha.7324804",
    "angular-sanitize": "1.5.1-build.4623+sha.7324804",
    "angular-ui-router": "0.2.18"
  },
  "resolutions": {
    "angular": "1.5.1-build.4623+sha.7324804",
    "angular-animate": "1.5.1-build.4623+sha.7324804",
    "angular-sanitize": "1.5.1-build.4623+sha.7324804",
    "angular-ui-router": "0.2.18"
  }
}
1 Like

That’s a moving target, so is going to be rather challenging to replicate. I would start looking in here.