This project was created to test cunsumption of the @segment/email-editors
package. It was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
To build and link the package locally, you can do the following:
- Create the package
In the root directory of the segmentio/content-editors repo, run the following:
yarn editor-components:build
yarn ci:pack
- Update the
package.json
in this repo to point to the packaged build
{
...
"dependencies": {
...
"@segment/email-editors": "file:[your-path-to-repo]/content-editors/packages/editor-components/email-editors.tgz",
...
},
...
}
- In the root directory of this repo, run
npm update @segment/email-editors
- Start the project
npm start
- In the browser, navigate to http://localhost:3000/.