A canvas designer made with Svelte on top of Fabric.js to allow users to create their own designs.
Install dependencies.
npm install
Start a development server:
npm run dev
Everything inside src/lib is part of the library, everything inside src/routes is used to showcase the library.
To build the library:
npm run package
To create a production version of the showcase app:
npm run build
Preview the production build with npm run preview.
To deploy the app, it may be necessary to install an adapter for the target environment.
Go into the package.json and give the package the desired name through the "name" option. Also consider adding a "license" field and point it to a LICENSE file which you can create from a template (one popular option is the MIT license).
To publish the library to npm:
npm publish