Skip to content

mdwp/scrivito-follow-on-twitter

Repository files navigation

Scrivito Follow on Twitter

CMS: Scrivito License: MIT

Screenshot

Screenshot

Installation

Open your terminal.

$ cd to your Scrivito project

$ npm install scrivito-follow-on-twitter

Import the widget in your javascript (e.g. in index.js or Widgets/index.js).

Add this line to your index.js:

import "scrivito-follow-on-twitter";

Make the following changes in your '_headersCsp.json' in the public directory of your Scrivito App:

"script-src": [
        "'self'",
        "https://api.scrivito.com",
        "https://app.intercom.io",
        "https://assets.scrivito.com",
        "https://js.intercomcdn.com",
        "https://widget.intercom.io",
        "https://www.google-analytics.com",
        "https://maps.googleapis.com/maps/api/js",
        "https://platform.twitter.com/widgets.js",
        "https://platform.twitter.com/js/"
    ],

Development

With npm run build you can build the package into build/.

With npm start you'll start a continues process, that rebuilds build/ automatically once the source code is changed.

To add this library locally do the following in your scrivito app:

npm install file:<path to build folder>

e.g.

npm install file:../scrivito-follow-on-twitter/build/

To publish the package:

npm i && npm run build && cd build/ && npm publish

Check code quality

With npm run eslint and npm run es-check you can check your coding quality.

About

A follow me on twitter React component/Scrivito widget for the Scrivito CMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published