Follow the instructions below to migrate projects created in previous versions of Iso to the v0.1 format.
npm install -g @compositor/lab
In your project folder, export your Lab components to React with the following:
lab --pkg --out-dir components
If you do not have a package.json
file in your project folder, create one by running:
npm init -y
Install the following dependencies:
npm install react styled-components styled-system
Create an iso.config.js
configuration file in the root of your project,
and import your components.
// iso.config.js
const components = require('./components')
const theme = require('./theme.json')
module.exports = {
components,
theme
}