Building a mobile application just got even easier.
harp compileexports directly to an Apache Cordova / PhoneGap-friendly
If for whatever reason you fall out of love with Harp, just export your project and deploy it on any stack or cloud provider that serves static assets.
harp compile [options] [projectPath] [outputPath]
Try creating a project called
mobileapp by running
harp init mobileapp and then compiling it:
harp init mobileapp harp compile mobileapp
Running the compile command would generate the assets as follows:
mobileapp/ +- www/ |- index.html +- main.css
Lets say we have a project called example in our apps folder. We could export it to static assets in our Desktop/backup folder by running the following command.
harp compile ~/apps/example ~/Desktop/backup
Note The backup folder is automatically created and is assumed to be empty.