Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-99

Publish a transpiled version of the Node.js client

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Browser, Node.js

      Description

      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:

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: