Coder Social home page Coder Social logo

knowscount / vue-lib Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 396 KB

๐Ÿ’ fun vue component library for my own use.

Home Page: https://csb-rr7eq-knowscount.vercel.app

License: Do What The F*ck You Want To Public License

JavaScript 12.43% Vue 87.57%
vue lib library component component-library codepen vuejs vuejs2

vue-lib's Introduction

@knowscount/vue-lib

Codacy Badge

vue component library containing fun stuff.

๐Ÿ“Œ to-dos

marked in issues.

๐Ÿคค usage

see #3.

to install the library, run

npm install --save @knowscount/vue-lib

you can choose to import the entire library, or use a slightly different syntax to import individual components:

// Import and register entire library
import VueLib from '@knowscount/vue-lib';
Vue.use(VueLib);
// Import and register globally individual components from the library
import { FooComponent, FooComponent2 } from '@knowscount/vue-lib';
Vue.component('FooComponent', FooComponent);
Vue.component('FooComponent2', FooComponent2);
// Import and register locally individual components from the library
import { FooComponent, FooComponent2 } from '@knowscount/vue-lib';

export default {
  name: 'SomeParentComponent',
  components: {
    FooComponent,
    FooComponent2,
  }
  ...
}

๐Ÿ™‹โ€โ™‚๏ธ contributing

please read CONTRIBUTING.md.

๐Ÿ›  project setup

npm install

๐Ÿ”จ compiles and hot-reloads for development

npm run serve

๐Ÿ“ฆ compiles and minifies for production

npm run build

๐Ÿ”ง customize configuration

see configuration reference.

vue-lib's People

Contributors

codacy-badger avatar knowscount avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eamonyym

vue-lib's Issues

using it in another project

to add vue-lib component library I ran

npm install --save @knowscount/vue-lib

and then placed <InputBox /> & import InputBox from '@knowscount/vue-lib, registering the component, yet the page went blank and the folioing error was reported in the console:

[Vue warn]: Error in render: "TypeError: Vue.component is not a function"

found in

---> <App> at src/App.vue
       <Root>
warn @ vue.runtime.esm.js?2b0e:619

and also

vue.runtime.esm.js?2b0e:1888 TypeError: Vue.component is not a function
    at eval (vue-lib.esm.js?ca34:5655)
    at Array.forEach (<anonymous>)
    at installVueLib (vue-lib.esm.js?ca34:5654)
    at resolveAsyncComponent (vue.runtime.esm.js?2b0e:3686)
    at createComponent (vue.runtime.esm.js?2b0e:3200)
    at _createElement (vue.runtime.esm.js?2b0e:3422)
    at createElement (vue.runtime.esm.js?2b0e:3353)
    at vm._c (vue.runtime.esm.js?2b0e:3491)
    at Proxy.render (App.vue?6ad7:13)
    at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548)
logError @ vue.runtime.esm.js?2b0e:1888

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.