Skip to content

Release 3.0.0 (October 15, 2019)

Latest
Compare
Choose a tag to compare
@ktalebian ktalebian released this 16 Oct 00:36

3.0.0 (October 15, 2019)

Create Flex Plugin 3.0 uses the Twilio Serverless API to build and deploy your plugin directly from the CLI.

Highlights

  • Twilio Serverless API support
  • Bumped all dependencies to the latest version (Craco, Create React App, etc)
  • Unified all scripts under a new flex-plugin-scripts repo

Migrating from 2.x to 3.x

Update your global create-flex-plugin by running:

npm install --global create-flex-plugin

To update existing plugins, edit package.json and modify the scripts:

{
  "scripts": {
    "bootstrap": "flex-plugin check-start",
    "postinstall": "npm run bootstrap",
    "prestart": "npm run bootstrap",
    "start": "flex-plugin start",
    "prebuild": "rm -rf build && npm run bootstrap",
    "build": "flex-plugin build",
    "predeploy": "npm run build",
    "deploy": "flex-plugin deploy",
    "test": "flex-plugin test --env=jsdom",
    "list": "flex-plugin list",
    "clear": "flex-plugin clear",
    "remove": "flex-plugin remove",
    "eject": "flex-plugin eject"
  },
  "dependencies": {
    "craco-config-flex-plugin": "^3",
    "flex-plugin": "^3",
    "flex-plugin-scripts": "^3",
    "react": "16.5.2",
    "react-dom": "16.5.2",
    "react-scripts": "3.2.0"
  },
  "devDependencies": {
    "@twilio/flex-ui": "^1",
    "babel-polyfill": "^6.26.0",
    "enzyme": "^3.10.0",
    "enzyme-adapter-react-16": "^1.14.0"
  }
}

Breaking Changes

Version 3 is backward compatible with version 2. The new version essentially adds a way to upload your plugin directly to Twilio without needing to drag-and-drop the bundle in the Twilio Console.

New Features

Deploying to Twilio Assets

The new Flex plugin builder adds the ability to deploy to Twilio Assets directly from your CLI. It enables you to build and deploy your plugins directly from the CLI by leveraging the Functions & Assets API. This allows you to integrate your plugin development within a CI/CD pipeline.