Vue-form-generator: Update docs & readme

Created on 15 Feb 2017  路  25Comments  路  Source: vue-generators/vue-form-generator

After #120 we need to update docs & readme

  • Update docs on gitbook

    • [ ] rewrite examples

    • [ ] refresh "Install" & "Usage" section (how to use full & core bundle)

    • [ ] refresh "Features" section

    • [ ] add info about bundle sizes

    • [ ] refresh dependencies (remove momentjs)


  • Update readme

    • [ ] rewrite examples

    • [ ] refresh "Install" & "Usage" section (how to use full & core bundle)

    • [ ] refresh "Features" section

    • [ ] add info about bundle sizes

    • [ ] refresh dependencies (remove momentjs)

enhancement medium documentation in progress

Most helpful comment

I like your proposition. It keep the current naming convention used internally.
We should mention this somewhere on the README to encourage people ! 馃槂

All 25 comments

I'm on it, but I don't think I will have the time to do everything

OK, I can help you!

Ok, I will inform you when I finished. Thank you !

I don't know how to handle the new hierarchy of fields.
Should we do something that show the need for dependency:

  • build in (mixing core and optional field)
  • optional

    • jquery

    • vanilla

OR

Should we show what's in core vs optional:

  • core
  • optional (mixing dependent and independent)

I'm for the second option, since we explicitly say which dependency have each field in its description.
What are your thought ?

I agree the second option.

I have added this into the custom field page

if you decide to release your custom field into the wild, please open an issue so we can add you to a list on the README

I think we should encourage people to release their own custom field. Can we agree on a naming convention for vfg custom field ?

  • vue-form-generator-my-field
  • vfg-my-field
  • vue-form-generator-plugin-my-field
  • vfg-plugin-my-field

That would allow people to find other custom field easily. What do you think about that ?

I prefer vfg-my-field.

vue-form-generator.... is too long.
vfg-plugin.... I think it is confuse, because it is not plugin. It is a field or component.

Or vfg-field-mystuff
E.g.:
vfg-field-calendar
vfg-field-awesome-dropdown

I like your proposition. It keep the current naming convention used internally.
We should mention this somewhere on the README to encourage people ! 馃槂

I just realized that I don't know how to use the core version.

// the normal way
import VueFormGenerator from "vue-form-generator";

I'm really confuse as to how this is going to work

// the "core" way ???
import VueFormGenerator from "vue-form-generator/dist/vue-form-generator-core.js";

The code is correct, but ugly :confused:

But this is the correct way. Like with Vue when you want to use the vue.common.js. Vue solution is you need to create an alias in webpack config

Have you tested it ?
BTW, I think we should use an alias for the "utils" folder.

Also, we never mention how to use the css file.

Why not rename this to common.js or core.js without having the whole vue-form-generator...
Once you try to import from the npm directory you know that it's the form generator.

Yeah, like full.js and core.js. I fear that common.js might get mixed up with CommonJS specific usage.
As for the CSS, I did that:

<style  src="../../dist/vue-form-generator-core.css"></style>

Good news is that it work, bad news is that it look bad with all the style in the dev environment..

Yeah full.js and 'core.js` sounds fine. What do you mean it looks bad ?

@cristijora maybe an in-between with vfg-core.js and vfg.js ?
I mean that some element don't look the same when you include the css extracted from vfg.
EDIT: and it look bad when you don't include boostrap, but that's to be expected.

Hm, actually yeah. I think that one is the best option so far.

Other solution is, we drop the dist folder and place bundles js & css to root of repo.
In this case the links look as:

import vfgCore from "vue-form-generator/vfg-core.js";
import vfgFull from "vue-form-generator";

import "vue-form-generator/vfg-core.css";

What is the problem with extracted CSS? I didn't find any problem. Please make a screenshot.

@icebob I think I'm finished with the doc. Not everything is done, so I let you take a look.

Sorry for late. I was ill. Thanks. I'll check it

I checked, I think it's correct. I fix some examples and make some minor changes.
I will update the README.

Done

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Atiladanvi picture Atiladanvi  路  4Comments

zwx00 picture zwx00  路  3Comments

gkurdej picture gkurdej  路  5Comments

miseeger picture miseeger  路  4Comments

afourmeaux picture afourmeaux  路  4Comments