vue-library-template icon indicating copy to clipboard operation
vue-library-template copied to clipboard

question : the use of lib > my-lib.js

Open rgalaxy opened this issue 7 years ago • 1 comments
trafficstars

Hi @prograhammer i really want to ask some question here, when i do build, i got 2 folders which is docs and lib. but when i do npm run dev i see on my index.html it only link the script to docs/my-lib.js and docs/docs.js.

here i dont understand what is the use of lib/my-lib.js ? am i missing something here? because i really get so confused for the docs and lib folders.

also i want to ask if this library template can be used for any kind of framework (and frameworkless) project? or only to vue project? because your example i take it as a vue prject

rgalaxy avatar Apr 25 '18 10:04 rgalaxy

When you publish your library to npm, it will actually publish js file in lib folder

https://github.com/prograhammer/vue-library-template/blob/788eea64000fc15482d29f22978023937b0275cf/template/package.json#L6

ittus avatar May 09 '18 14:05 ittus