-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.0.0
-
Sprint:nxfit 9.1.6
-
Story Points:5
This may be needed for React Applications using https://github.com/facebookincubator/create-react-app.
What we want:
- Publish the standard ES6 Node.js version of the client, that could be used with:
var Nuxeo = require('nuxeo'); // or import Nuxeo from 'nuxeo';
- Publish a transpiled to ES5 browser version of the client, that can be installed through bower. This file is located in the dist folder.
- Publish a transpiled to ES5 Node.js version, that could be used with:
var Nuxeo = require('nuxeo/legacy'); or import Nuxeo from 'nuxeo/legacy';
The 2 Node.js versions of the client should also work in a web context, thanks to the browser field in the package.json - for instance in a React Application.
The transpiled Node.js version should work with Node < 6.
Test that we can use the client (with the default or legacy version) with:
- an Angular app
- using https://github.com/facebookincubator/create-react-app
- Node.js >= 6
- Node.js <= 4