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

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sico-vue-component-template

Info

Vue Component + Typescript + RollUp

This is a sample project for building Vue.js Components not a full SPA unlike vue-cli / webpack setups. We use rollup.js for template compiling.

Global

Edit package.json and rollup.config.js for updating names and build pipeline.

Component

You can create your own components. See sample and export them in one bundled file with all your components. This bundle file does not include the Vue base library.

Build

You should use yarn for building the components.

# Build in development mode and start a local webserver
yarn dev

# Build for production use
yarn build

Usage

Have look at sample how to use the components in your final application.

    var HelloComponent = sico.HelloComponent;
    var model = new Vue({
        el: "#app",
        data: function() {
            return {
                Name: "Sample"
            };
        },
        components: {
            HelloComponent
        }
    });

About

Sample setup for creating reusable Vue components

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages