This is a demonstration of running a fork of the Vue SFC Sandbox with your own design system.
Approach B: We accessing the design system as a git dependency.
This approach does not require a a publically published NPM package.
In this demonstration, our design system is the package sample-vue-library maintained here: https://github.com/dwjohnston/sample-vue-library
See that repository for an outline of how to create a vue package.
- Follow the instructions here:
https://github.com/dwjohnston/vue-repl
except, install your package as a git dependency like git://github.com....
At this point everything will work, except you won't have typings.
- Create a codemod to do create a ts file containing
declare module 'mylibrary'link
This codemod examines the .d.ts file that comes from the package, wraps it in declare module 'mylibrary' and removes the declare statements inside.
- Make this file be opened as a template by default: