New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flex-plugin-scripts

Package Overview
Dependencies
Maintainers
1
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugin-scripts

Scripts to run, build and deploy Flex plugins

  • 3.0.8-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
decreased by-65.62%
Maintainers
1
Weekly downloads
 
Created
Source

npm npm NpmLicense

Flex Plugin Scripts

Scripts to run, build, and deploy Flex plugin.

Installation

This repo will automatically be installed as part of creating a new plugin.

Scripts

Release

npm run release {major, minor, patch, custom, overwrite} {--public}

This script will build, and then deploy your plugin bundle to Twilio Assets. Please note that your accountSid and authToken are required to use this script. Your plugins will be uploaded to Twilio Assets using the following format:

https://domain.twil.io/plugins/${PluginName}/${Version}/bundle.js

Where PluginName is the name from package.json, and Version is the version from package.json. For example:

https://domain.twil.io/plugins/dialpad/1.0.0/bundle.js
https://domain.twil.io/plugins/dialpad/1.1.0/bundle.js
https://domain.twil.io/plugins/dialpad/1.1.1/bundle.js`

You may choose between major, minor, patch, custom, overwrite options:

  • major: A major SemVer release version, e.g. going from 1.2.3 to 2.0.0.

    npm run release major

  • minor: A minor SemVer release version, e.g. going from 1.2.3 to 1.3.0.

    npm run release minor

  • patch: A patch SemVer release version, e.g. going from 1.2.3 to 1.2.4.

    npm run release patch

  • custom: A custom release version if you are not using SemVer versioning. Provide the version as the next argument.

    npm run release custom v1.2-someTag

  • overwrite: Will overwrite the version.

    npm run release overwrite

By default, all plugins are uploaded as Protected Assets (i.e. they require a Twilio Signature to be accessed). Plugin can be uploaded as a Public Asset using --public in your script.

Build

npm run build

Run this script to build and create a single .js bundle for your plugin. You can then upload this to Twilio Assets or serve it via your own plugin service.

Test

npm run build

Run this script to test your sourcecode.

Start

npm run start

Run this script to use dev-server for local development.

Contributing

Make sure to follow the instructions in the main repository to set up the project.

# Install dependencies and link local packages with each other
cd packages/flex-plugin
npx lerna bootstrap

# Run tests
npm test

# To use your local package in a different project
npm link
# then in a different project
npm link flex-plugin

Contributors

Thank you to all the lovely contributors to this project. Please check the main repository to see all contributors.

License

MIT

Keywords

FAQs

Package last updated on 23 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc