thaliproject / postcardapp

A sample app to demonstrate how to build Thali applications
MIT License
22 stars 5 forks source link

Polymer 1.0 Build script for production #36

Closed deadlyfingers closed 8 years ago

deadlyfingers commented 9 years ago

Setup Polymer vulcanize & gulp script to build app as production webapp.

deadlyfingers commented 8 years ago

Figuring how to add socket.io script which is created dynamically by server - vulcanize only recognises statically hosted files. Turns out Vulcanise doesn't take input src like other gulp modules if you need to use 'inputUrl' so saving as a copy *.tmp file.

deadlyfingers commented 8 years ago

Suggest moving everything out of '/www/jxcore' folder to '/app' (localhost) dev folder. Then running gulp build to put 'distribution' files into jxcore folder which means we bundle components (node & bower) that are only required for mobile. That should reduce files and therefore deploy time for postcard app.

deadlyfingers commented 8 years ago

Using 'gulp build' script to update the 'www/jxcore' dist directory with packaged app. This should be hooked into cordova build to keep things in a Cordova app flow - so I can still push any dev changes into the 'www/jxcore' folder with one command (related to #82)

deadlyfingers commented 8 years ago

By using gulp build script client-side / public files are reduced from 3106 items to just 2! This will help speed deploying to iPhones as there are less files for Xcode to transfer.