pypes-grapesjs-plugin-publish-s3
v1.0.7
Published
Enables grapesjs to publish designed page.
Downloads
112
Maintainers
Readme
GrapesJS Plublish S3
This enables you to publish rendered html from grapesJs to S3.
Summary
- Plugin
- Name:
grapesjs-plugin-publish-s3
- Options:
- accessKeyId:
<AWS Access key Id>
, - secretAccessKey:
<Aws secret access key>
, - sessionToken:
<AWS Sessions Token>
- bucketName:
<S3 Bucket Name>
(Default bodylesscms) - prefix:
<Folder Name>
(Default Empty)
- accessKeyId:
- Name:
Download
npm i grapesjs-plugin-publish-s3
Usage
<link href="path/to/grapes.min.css" rel="stylesheet"/>
<link href="path/to/grapesjs-plugin-publish-s3.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-plugin-publish-s3.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container : '#gjs',
plugins: ['gjs-plugin-publish-s3'],
pluginsOpts: {
'gjs-plugin-publish-s3': {
accessKeyId: '<AWS Access key Id>',
secretAccessKey: '<Aws secret access key>',
sessionToken: '<AWS Sessions Token>',
bucketName: '<AWS S3 Bucket Name>',
prefix: '<Folder Name in s3 bucket.>'
}
}
});
</script>
Development
Clone the repository
$ git clone https://github.com/chaitanya11/grapesjs-plugin-publish-s3.git
$ cd grapesjs-plugin-publish-s3
Install it
$ npm i
The plugin relies on GrapesJS via peerDependencies
so you have to install it manually (without adding it to package.json)
$ npm i grapesjs --no-save
Start the dev server
$ npm start
License
BSD 3-Clause