0.0.8 • Published 2 years ago

introsvect-beta v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

INTROSVECT

Generate a documentation of your sveltekit component library from it's source files.

how to use

npx introsvect-beta init
npx introsvect generate

output

    interface Library{
        name:string 
        version:string 
        description:string|null 
        components: [Component] 
    }

    interface Component{
        name: string 
        description: string|null 
        properties:[Property] 
        events:[Event]
        slots:[Slot]
    }

    interface Property{
        name: string
        type: string|null
        default: string|null
        description:string|null
    }

    interface Event{
        name: string
        description:string|null
    }

    interface Slot{
        name: string
        description:string|null
    }

descriptions

Descriptions can be added via comments:

<script lang="ts">
    type integer = number
    export let count:integer //@description{ set the initial value of the counter }
</script>
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago