Restore meteorjs source code from build app (app.js) in .meteor directory


#1

Hi there :slight_smile:

I accidentally erase CLIENT directory of my meteor project. :cry:

Fortunately, this project was not “running” so I can see in .meteor/local/build/programs/web.browser/app a file name app.js containing all my source code “compiled” (last build). :sweat:

Is there a way to get back my CLIENT directory from this app.js ?

Thx for your help

Mickael
Meteor newbie
:slight_smile:

Relative : http://stackoverflow.com/questions/38732253/restore-meteorjs-source-code-from-build-app-in-meteor-directory


#2

The Isobuild build system used by the Meteor Tool is one-way only. Meteor does not provide a way to reverse the Isobuild compiler, bundler, builder, and linker steps. To restore your client directory, you’ll have to reverse engineer the isopack (app.js) file yourself.


#3

Thx @hwillson. I quickly studied isobuild and seems to be faster to recode my app.

But it could be fun to build a reverse tool… Maybe later, when I’ll get some free time :wink: