kazupon / vue-cli-plugin-p11n

:electric_plug: Vue CLI 3 plugin to pluginize your Vue project
MIT License
113 stars 13 forks source link

Can you please provide more documentation about using the plugin with a real life example ? #23

Open msalahz opened 5 years ago

msalahz commented 5 years ago

Can you please provide more documentation about using the plugin with a real life example ? the plugin can use more documentation at least in the README file.

chopfitzroy commented 5 years ago

Hey @msalahz,

Could you explain where you are having issues, after running vue add p11n I found the generated folder structure to be quite clear, maybe if we had a better idea what is not clear I (or you) could submit a PR to make things easier.

msalahz commented 5 years ago

Hi @CrashyBang, I'm trying to plugnize my tool as well, and I can confirm the running vue add p11n is working as expected, but I can't figure out the following points :

Can you advice ?

chopfitzroy commented 5 years ago

Hey @msalahz,

Okay your first issue sounds like it is related to #22 which I am actually working on and hope to have merged into the master branch soon.

As for your second issue, are you trying to add your own module to the tool you are trying to plugnize or do you mean you are trying to add the plugnized tool to another project you are working on?

Cheers.

msalahz commented 5 years ago

Hi @CrashyBang,

As for your second issue, are you trying to add your own module to the tool you are trying to plugnize or do you mean you are trying to add the plugnized tool to another project you are working on?

I'm trying to add the plugnized tool to another project that i'm working on.

chopfitzroy commented 5 years ago

Hey @msalahz,

I am not sure on this one, does this issue only happen with plugnized tools? For example if you were to create another module my-other-module and yarn add ../path/to/my-other-module does that work? Just trying to figure out where the issue is coming from.

msalahz commented 5 years ago

I'm working on plugin now @CrashyBang to know that. Will keep you updated.

msalahz commented 5 years ago

BTW @CrashyBang installing my-plugin is working fine, I'm getting this error when I try to invoke it

chopfitzroy commented 5 years ago

Hey @msalahz,

Are you tying to create a cli plugin? I ask because that is what invoke is for.

If you are trying to create a cli plugin I am not sure this project is going to help you (although it would be best to confirm with @kazupon) from what I understand this project is intended to help plugnize front end type modules, for example I am using it to create a portable search box plugin at work.

It is probably worth highlighting this in the README to help avoid confusion.

msalahz commented 5 years ago

yes @CrashyBang , I'm trying to create a cli plugin like Vuetify. This is what already mentioned here by @kazupon

chopfitzroy commented 5 years ago

Hey @msalahz,

I think it would be best to wait for @kazupon to comment as I am not 100% sure and would not want to mislead you.

msalahz commented 5 years ago

@kazupon : Looks like the current build doesn't support JSON import, Can you confirm ?