QmlWeb/Qml.js/Workflow

From KDE Community Wiki
< QmlWeb‎ | Qml.js
Revision as of 08:29, 21 July 2015 by Akreuzkamp (talk | contribs) (Created page with "This site describes the workflow we have in mind for a developer using QmlWeb. {{Warning|The Qml.js Compiler is in a very early state — this site collects ideas and all of ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This site describes the workflow we have in mind for a developer using QmlWeb.

Warning

The Qml.js Compiler is in a very early state — this site collects ideas and all of it might change completely.


As an example, we use cmake as build system and git as version control system, but the workflow would be the same for every build system and vcs you use.


Setup: You have a checkout of your code locally available. You develop and test locally. Moreover, you have an http-webspace connected via nfs, ftp, sftp or similar as your production system. You don't have rights, to install software on the server.

You need:

  • The Qml.js Compiler installed on your local computer
  • A webserver running on your local computer

Your worklow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory
  • Call cmake .. (maybe containing info like -DCMAKE_INSTALL_DIR or -DQMLWEB_UPLOAD_URL — if not already in the CMakeLists.txt)
  • Call make
  • Test locally
  • Edit
  • Call make
  • Test again
  • When done, call make install

Setup: You have a checkout of your code locally available. You develop and test locally. Moreover, you have a root server available as your production system. You want the code to be compiled on the fly on the server.

You need:

  • The Qml.js Compiler installed on your local computer
  • A webserver running on your local computer
  • The Qml.js Compiler installed on the server
  • A Git hook to recognize code updates
  • The hook needs to
    • create and enter a clean build dir
    • call cmake -DCMAKE_INSTALL_DIR=/srv/somewhere ..
    • make
    • make install

Your workflow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory for local testing
  • Call cmake ..
  • Call make
  • Test locally
  • Edit
  • Call make
  • Test again
  • When done, call git push

Setup: You have a checkout of your code locally available. You develop locally, but have an http-webspace connected via nfs, ftp, sftp or similar, that is to be used as your testing evironment. You don't have rights, to install software on the server.

You need:

  • The Qml.js Compiler installed on your local computer

Your worklow:

  • Write your code
  • Create a CMakeLists.txt
  • Create and enter a build/ directory
  • Call cmake .. (maybe containing info like -DCMAKE_INSTALL_DIR or -DQMLWEB_UPLOAD_URL — if not already in the CMakeLists.txt)
  • Call make
  • Call make install
  • Test remotely
  • Edit
  • Call make
  • Call make install
  • Test again