aurelia-ui-toolkits / carmel-fe

Carmel editor front end application
MIT License
1 stars 1 forks source link

Bundling aurelia applications #19

Open adriatic opened 7 years ago

adriatic commented 7 years ago

Articles read

  1. http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/bundling-jspm/2
  2. http://www.aureliajsrocks.com/bundling-aurelia-apps-with-gulp/
  3. https://ilikekillnerds.com/2016/02/the-definitive-guide-to-bundling-exporting-in-aurelia/

Just document 1 above should be sufficient - I never saw it before and it is almost impertinent to stuff an aurelia app into gh-pages host without that minimal experience.

adriatic commented 7 years ago

Case 1 - Using skeleton esnext application.

Step 1

Built the app with npm install && jspm install && gulp watch and verified that if works fine

Step 2

Ran gulp bundle followed by gulp serve-bundle and verified that if works fine.

Step 3

3.1 Ran gulp export.

3.2 Copied the content of the export folder (see below) image

to my local folder

image

and pushed it to https://github.com/aurelia-tools/deploy

3.3 After some time, I got the message from GitHub

image

Reported this to GitHub via browser based problem report - now waiting for their explanation of what means Please try again later 😢


Step 4

Added 20 minutes later: Updated the index.html file in the local repo and pushed it to remote master. The website showed up right away:

image

As you can see it has only 10 request to the server - it is bundled and works like a charm.