Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

Add support for library projects #3

Closed
Toilal opened this issue Mar 31, 2017 · 8 comments
Closed

Add support for library projects #3

Toilal opened this issue Mar 31, 2017 · 8 comments

Comments

@Toilal
Copy link
Owner

Toilal commented Mar 31, 2017

Library project with 2 outputs : library and demo.

@dvic
Copy link

dvic commented Apr 1, 2017

Do you think this should go in the same template? (asking a question whether the user wants a library or an app?)

@Toilal
Copy link
Owner Author

Toilal commented Apr 1, 2017

Yes, I think it should be in the same template, but during generation we need to generate most files in ./demo/ instead of ./src/, and it's not possible with actual vue-cli version.

I have a Pull Request on vue-cli to support extending metalsmith (the generator used under the hoods for vue-init).

Alternative that will work with actual vue-cli release is to duplicate ./src files into ./demo and use vue-cli filters, until this pull request is merged and released.

@Toilal
Copy link
Owner Author

Toilal commented Apr 4, 2017

A library should also be published as a single file CommonJS ES5 bundle in package.json main property, and as ES2015 modules in module property.

@Toilal
Copy link
Owner Author

Toilal commented May 16, 2017

vue-cli has been released with my Pull Request merged, so i'll be able to work on this now.

@Toilal Toilal mentioned this issue Jul 1, 2017
5 tasks
@Toilal
Copy link
Owner Author

Toilal commented Oct 1, 2017

It's here ! @dvic if you are still here, maybe you can give it a try ?

@dvic
Copy link

dvic commented Oct 8, 2017

Hi! Looks good, thanks! I'm really looking forward to Vue 2.5: https://medium.com/the-vue-point/upcoming-typescript-changes-in-vue-2-5-e9bd7e2ecf08 (see vuejs/vue#6391).

@Toilal
Copy link
Owner Author

Toilal commented Oct 8, 2017

Yes, I read this article too. When it's out, i'll upgrade this boilerplate.

@Toilal Toilal closed this as completed Oct 11, 2017
@Toilal
Copy link
Owner Author

Toilal commented Oct 13, 2017

@dvic => 2.5 is out : https://github.com/vuejs/vue/releases

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants