QXCPROMISE
Includes a helper to use Qooxdoo with RequireJS/alameda, whatwg-fetch and bluebird.
It also includes restful.js, swagger-client and swagger-parser all of this is optional.
Requirements
This requires grunt-qx with qxcompiler.
Install
Install from npm
npm install qxc.promise --save
Now add it as dependency to your Manifest.json
And your done.
Or install as submodule
mkdir vendorcd vendorgit submodule add https://github.com/drawstack/qxc.promise.gitcd ..
Add it to your Gruntfile.js
You have the choice, either as librayHint
or vendor as libraryDir
.
libraryDir
(prefrerred):
grunt;
librayHint
:
grunt;
Now add it as dependency to your Manifest.json
Add these lines to your Application.js
// You can omit these, but they will only get loaded when// you realy use them.qxcpromiseRest;qxcpromiseSwagger; // Init QXCPROMISE which will call requirejs.config.// make sure to do this as last .init(),// if you have other contribs that require QXCPROMISE.qxcpromiseInit;
If you want pretty printed deps
Download and copy them:
cd vendor/qxc.promisenpm installgrunt copy-pretty-depscd ../..
Add pretty-deps to your Application.js:
// You can omit these, but they will only get loaded when// you realy use them.qxcpromiseRest;qxcpromiseSwagger; // Init QXCPROMISE which will call requirejs.config.// make sure to do this as last .init(),// if you have other contribs that require QXCPROMISE.qxcpromiseInit;
Building the demo
Do this to install the demo
cd vendor/qxc.promise/demo/defaultnpm install git clone https://github.com/johnspackman/qooxdoo.gitcd qooxdoogit checkout -b qxcompiler-master-v2 origin/qxcompiler-master-v2cd .. QOOXDOO_PATH=$PWD/qooxdoo grunt serve
Author
René Jochum rene@jochums.at
License
MIT