Exporting Ionic App as a Module

is it possible to make whole ionic app as a custom module and publish in npm? I have gone through create and publish custom ionic module. in this method, we create a module(which is not ionic app) and publish it to npm, and another ionic app install by npm install .

I want a team to develop ionic app and publish it as npm module, so that they can create module and code logic in the same project and publish.