Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

flipgroup/vue-sfc-sandbox

 
 

Repository files navigation

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.

How it works

  1. Follow the instructions here:

https://github.com/dwjohnston/vue-repl

except, install your package as a git dependency like git://github.com....

link

At this point everything will work, except you won't have typings.

  1. 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.

  1. Make this file be opened as a template by default:

https://github.com/vuejs/repl/commit/dd4309685c37e3f77f81eab448ec6e8dc96bdf28#diff-2717c7fb31c2070dd96f07394997809bc9be7f3fff03ab638db696cc480f39b6R25-R347

About

Vue SFC Sandbox - with our design system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.6%
  • Vue 28.2%
  • HTML 8.3%
  • CSS 6.6%
  • JavaScript 4.3%