granite-editor
v8.7.3
Published
Create vibrant, full custom pages in the browser by dragging, dropping, and resizing a variety of plugins on the page.
Downloads
35
Readme
Granite Editor
Create vibrant, full custom pages in the browser by dragging, dropping, and resizing a variety of plugins on the page.
Powered by React and Redux.
Developing
~~It is recommended that you use npm link
on this directory and then create another project with react-scripts
which
requires this project by running npm link granite-editor
in your new react-scripts
project root. Add the editor
via an import Editor from 'granite-editor'
and use it as normal.~~
~~Then running npm run build --watch
or yarn run build --watch
will continually recompile your changes and
react-scripts
will pick up and rebuild.~~
Update: You can run yarn run dev
to start up a development instance of the editor. The above instructions may work for
developing this project inside another project, but are no longer recommended.
Editor Constraints/Rules:
- A Row contains only columns. Rows are for horizontally grouping columns.
- Columns contain only rows or blocks. Columns are for resizing horizontally.
Pushing
This project exists on npm at granite-editor.
The workflow for pushing new releases is as follows:
- Make changes
- Update package.json to your next semver version, and add this change to your changes in a new commit.
- Use
git tag
to tag your new version, using the formatv0.0.0
- Edit the tag in
package.json
. yarn run build
to output a fresh build artifact.git push --tags
npm publish