qxcompiler
node.js based replacement for the Qooxdoo python toolchain
Last updated 5 months ago by hkollmann .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install qxcompiler -g
SYNC missed versions from official npm registry.

Qooxdoo Compiler and Command Line Interface

NOTE If you have previous installed qooxdoo-cli, please uninstall it before continuing

Gitter chat Build Status

Qooxdoo-Compiler is the new compiler and command line interface for Qooxdoo (http://qooxdoo.org) applications, written in 100% Node.JS Javascript it adds these key improvements over the standard python generator:

  • Includes Babel for adding ES6 to all Qooxdoo applications
  • Fast (up to 24x faster) and low resource usage (tiny cache, low CPU usage)
  • Flexible and powerful command line tool for compiling and modifying applications
  • Backward compatible with existing Qooxdoo apps
  • Written in 100% Javascript
  • API based, easily extended and with dependency information available at runtime

One of the top goals of this project is to be very fast and lightweight - fast enough to detect code changes and recompile applications on the fly on a production server, with an application recompile costing a few hundreds of milliseconds.

The included command line utility allows you create, build and manage qooxdoo applications (note that Qooxdoo-Compiler now incorporates the Qooxdoo-CLI project, which used to be a separate repo).

Development status

Beta. The API is still likely to change, but not fundamentally.

Prerequisites

  • Node Currently requires NodeJS v8. The released version will be transpiled to support earlier node versions, but whichever version you choose to use we recommend you consider nvm to ease installing and switching between node versions - you can find the Linux version at http://nvm.sh and there is a version for Windows at https://github.com/coreybutler/nvm-windows

  • Qooxdoo Currently requires the latest master of the Qooxdoo repo - although master is cutting edge, we take care to keep it stable and suitable for production use (although use at your own risk, obviously). Several of the core development team use master on live, production sites with real users ... so you know that we're committed to delivering a stable product.

Install nvm and then:

nvm install 8
nvm use 8

Installation

  • Install qooxdoo-compiler, create a sample application and compile it
npm install -g qxcompiler
qx create myapp
cd myapp
qx compile

Installation for Development

  • Install qooxdoo-compiler
git clone https://github.com/qooxdoo/qooxdoo-compiler
cd qooxdoo-compiler
npm install

Example command line usage

qx create myapp -I # creates the foo application skeleton non-interactively
cd myapp

# (optional) install contrib libraries
qx contrib update # updates the local cache with information on available contribs 
qx contrib list # lists contribs compatible with myapp's qooxdoo version, determine installation candidate
qx contrib install johnspackman/UploadMgr # install UploadMgr contrib library 

# compile the application, using the compile.json default configuration values 
qx compile

Use --all if you don't get any contribs listed or if the ones you are looking for are missing. The reason is that they might not declare compatibility to the qooxdoo version you are using yet, even though they are technically compatible.

Mini Web Server

Although many applications will run perfectly well when loaded via a file:// URL, browser security means that some applications must use an http:// url and to support this the CLI includes a mini web server which works with the continuous compilation.

See docs/cli/serve for more details, but as an example this is all you need to constantly compile your application and start the web server:

$ qx serve

Current state of play

Qooxdoo Compiler is a BETA RELEASE - at this stage, the compiler is expected to be able to compile production applications (use at your own risk) but still has some ancillary features such as API viewer and TestRunner maker which would be required in order to be a release candidate for Qooxdoo 6.0.

It is currently (October 2017) in use on one major project which is in pre-production testing with real users, and another is about to be released; Qooxdoo Compiler is used for source and build releases, and while there may be some issues that will crop up it is stable enough for most users.

Demo Browser

The Demo Browser is compiled by running demos/js/compile-demo-browser.js - it will create the Demo Browser in testdata/demobrowser/

Frequently Asked Questions

Gotchas

Number one gotcha is that you have to run the compiler every time you change your code, because it's being transpiled. The qx compile command has a --watch parameter that enables continuous compilation. Note that the qx serve command always used continuous compilation.

The old style compiler hints (eg #require, #asset etc) have been deprecated in generate.py for some time now, and they are not supported in Qooxdoo-Compiler at all (there will be some warnings output "real soon now" but it is a good idea to do a quick grep through your code)

Is Qooxdoo-Compiler a complete replacement for generate.py?

Not yet - QxCompiler is focused on compiling applications (including collecting resources) whereas generate.py includes features for building and running test suites, creating API documentation, building distributions, creating skeleton applications, etc.

The goal is to move to a 100% Javascript toolchain, and QxCompiler will be used as the base API for implementing all the compilation-related features; by using existing tools like npm, repackaging the API viewer and TestRunner as separate contribs generate.py will be deprecated in 6.0 and removed in 7.0.

What about config.json? QOOXDOO_PATH?

config.json is not used by QxCompiler; the qx command is using a new, and much simpler configuration file called compile.json

Contributing and Getting In Touch

Please get stuck in to any aspects you'd like to work on - I'm open to pull requests, and you can contact me to chat about features you'd like to see or help on using or extending Qooxdoo-Compiler. The best place to talk about it is on Gitter at https://gitter.im/qooxdoo/qooxdoo

Current Tags

  • 0.3.0                                ...           latest (5 months ago)

144 Versions

  • 0.3.0                                ...           5 months ago
  • 0.3.0-alpha.20190508-1924                                ...           5 months ago
  • 0.3.0-alpha.20190508-1653                                ...           5 months ago
  • 0.3.0-alpha.20190508-1412                                ...           5 months ago
  • 0.3.0-alpha.20190430-1926                                ...           6 months ago
  • 0.3.0-alpha.20190429-2056                                ...           6 months ago
  • 0.3.0-alpha.20190429-1449                                ...           6 months ago
  • 0.3.0-alpha.20190428-1222                                ...           6 months ago
  • 0.3.0-alpha.20190424-1916                                ...           6 months ago
  • 0.3.0-alpha.20190423-1234                                ...           6 months ago
  • 0.3.0-alpha.20190419-1314                                ...           6 months ago
  • 0.3.0-alpha.20190419-1042                                ...           6 months ago
  • 0.3.0-alpha.20190412-1250                                ...           6 months ago
  • 0.3.0-alpha.20190411-0745                                ...           6 months ago
  • 0.3.0-alpha.20190409-1543                                ...           6 months ago
  • 0.3.0-alpha.20190409-1453                                ...           6 months ago
  • 0.3.0-alpha.20190409-1447                                ...           6 months ago
  • 0.3.0-alpha.20190409-1147                                ...           6 months ago
  • 0.3.0-alpha.20190409-0621                                ...           6 months ago
  • 0.3.0-alpha.20190408-1008                                ...           6 months ago
  • 0.3.0-alpha.20190408-0737                                ...           6 months ago
  • 0.3.0-alpha.20190408-0736                                ...           6 months ago
  • 0.3.0-alpha.20190405-1228                                ...           6 months ago
  • 0.3.0-alpha.20190405-0817                                ...           6 months ago
  • 0.3.0-alpha.20190404-0909                                ...           6 months ago
  • 0.3.0-alpha.20190403-0451                                ...           6 months ago
  • 0.3.0-alpha.20190401-1018                                ...           7 months ago
  • 0.3.0-alpha.20190327-0809                                ...           7 months ago
  • 0.3.0-alpha.20190326-1007                                ...           7 months ago
  • 0.3.0-alpha.20190326-1006                                ...           7 months ago
  • 0.3.0-alpha.20190320-1703                                ...           7 months ago
  • 0.3.0-alpha.20190318-0831                                ...           7 months ago
  • 0.3.0-alpha.20190315-1953                                ...           7 months ago
  • 0.3.0-alpha.20190314-1941                                ...           7 months ago
  • 0.3.0-alpha.20190313-1054                                ...           7 months ago
  • 0.3.0-alpha.20190309-0916                                ...           7 months ago
  • 0.3.0-alpha.20190308-0919                                ...           7 months ago
  • 0.3.0-alpha.20190308-0840                                ...           7 months ago
  • 0.3.0-alpha.20190306-1202                                ...           7 months ago
  • 0.3.0-alpha.20190305-1954                                ...           7 months ago
  • 0.3.0-alpha.20190301-1043                                ...           8 months ago
  • 0.3.0-alpha.20190225-1008                                ...           8 months ago
  • 0.3.0-alpha.20190222-1556                                ...           8 months ago
  • 0.3.0-alpha                                ...           8 months ago
  • 0.2.73                                ...           8 months ago
  • 0.2.72                                ...           8 months ago
  • 0.2.71                                ...           8 months ago
  • 0.2.70                                ...           8 months ago
  • 0.2.69                                ...           8 months ago
  • 0.2.68                                ...           8 months ago
  • 0.2.67                                ...           8 months ago
  • 0.2.66                                ...           8 months ago
  • 0.2.65                                ...           8 months ago
  • 0.2.64                                ...           8 months ago
  • 0.2.63                                ...           8 months ago
  • 0.2.62                                ...           8 months ago
  • 0.2.61                                ...           8 months ago
  • 0.2.60                                ...           8 months ago
  • 0.2.59                                ...           8 months ago
  • 0.2.58                                ...           8 months ago
  • 0.2.57                                ...           8 months ago
  • 0.2.56                                ...           8 months ago
  • 0.2.55                                ...           9 months ago
  • 0.2.54                                ...           9 months ago
  • 0.2.53                                ...           9 months ago
  • 0.2.52                                ...           9 months ago
  • 0.2.51                                ...           9 months ago
  • 0.2.50                                ...           9 months ago
  • 0.2.49                                ...           9 months ago
  • 0.2.48                                ...           9 months ago
  • 0.2.47                                ...           9 months ago
  • 0.2.46                                ...           9 months ago
  • 0.2.45                                ...           9 months ago
  • 0.2.44                                ...           9 months ago
  • 0.2.43                                ...           9 months ago
  • 0.2.42                                ...           9 months ago
  • 0.2.41                                ...           9 months ago
  • 0.2.40                                ...           9 months ago
  • 0.2.39                                ...           9 months ago
  • 0.2.38                                ...           9 months ago
  • 0.2.37                                ...           10 months ago
  • 0.2.36                                ...           10 months ago
  • 0.2.34                                ...           10 months ago
  • 0.2.33                                ...           10 months ago
  • 0.2.32                                ...           10 months ago
  • 0.2.31                                ...           10 months ago
  • 0.2.30                                ...           10 months ago
  • 0.2.29                                ...           10 months ago
  • 0.2.28                                ...           10 months ago
  • 0.2.27                                ...           10 months ago
  • 0.2.26                                ...           10 months ago
  • 0.2.25                                ...           10 months ago
  • 0.2.24                                ...           10 months ago
  • 0.2.23                                ...           10 months ago
  • 0.2.22                                ...           10 months ago
  • 0.2.21                                ...           10 months ago
  • 0.2.20                                ...           10 months ago
  • 0.2.19                                ...           10 months ago
  • 0.2.18                                ...           10 months ago
  • 0.2.17                                ...           a year ago
  • 0.2.16                                ...           a year ago
  • 0.2.15                                ...           a year ago
  • 0.2.14                                ...           a year ago
  • 0.2.13                                ...           a year ago
  • 0.2.12                                ...           a year ago
  • 0.2.11                                ...           a year ago
  • 0.2.10                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3-alpha.2                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.34                                ...           2 years ago
  • 0.1.33                                ...           2 years ago
  • 0.1.32                                ...           2 years ago
  • 0.1.31                                ...           2 years ago
  • 0.1.30                                ...           2 years ago
  • 0.1.28                                ...           2 years ago
  • 0.1.27                                ...           2 years ago
  • 0.1.26                                ...           2 years ago
  • 0.1.25                                ...           2 years ago
  • 0.1.23                                ...           2 years ago
  • 0.1.22                                ...           2 years ago
  • 0.1.20                                ...           2 years ago
  • 0.1.18                                ...           2 years ago
  • 0.1.17                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.14                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dependencies (41)
Dev Dependencies (9)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |