1.6.1 • Published 5 months ago

@unyu/ant-form v1.6.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Netlify Status

Vue Component Library Starter

Create your own Vue 3 component library with TypeScript, Vite and VitePress.

Sooner or later, you will find that creating a component library is much better than having all components inside your app project. A component library force to you remove app specific logic from your components, making it easier to test and reuse them in other apps.

Once the components are in a library, documentation becomes critical. This starter project includes a documentation app powered by VitePress. It not only documents the usage of the component, but also provides a testing bed during the development of components. See the generated documentation app here.

Setup

When running docs:dev for the first time, you may encounter error like vitepress data not properly injected in app in your browser. Restart the server and reload the browser. Please refer to issue #30 for more details.

# install dependencies
npm install

# start the doc app with hot reload, great for testing components
npm run docs:dev

# build the library, available under dist
npm run build

# build the doc app, available under docs/.vitepress/dist
npm run docs:build

# preview the doc app locally from docs/.vitepress/dist
npm run docs:serve

You may use Netlify to auto build and deloy the doc app like this project does.

Develop and test locally

The best way to develop and test your component is by creating demos in docs/components/demo folder, as shown by the example components.

If you want to test the library in your Vue3 app locally:

  • In the root folder of this library, run npm link. This will create a symbolic link to the library.
  • In the root folder of your client app, run npm link my-lib. This will add the symbolic link to the node_modules folder in your client app.
  • You can now import my-lib in your client app.

There is no need to add my-lib to your client app's dependency in this case.

If you made changes to the library, you will need to rebuild the library. Your Vue3 app shall hot reload when the building of library is completed.

1.6.1

5 months ago

1.6.0

5 months ago

1.5.5

5 months ago

1.5.4

5 months ago

1.2.0

9 months ago

1.4.2

9 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.4.3-beta.3

8 months ago

1.4.3-beta.2

9 months ago

1.4.3-beta.1

9 months ago

1.1.9

10 months ago

1.5.3

6 months ago

1.5.2

6 months ago

1.5.1

7 months ago

1.5.0

7 months ago

1.3.0

9 months ago

1.5.0-beta.0

8 months ago

1.5.0-beta.2

8 months ago

1.5.0-beta.1

8 months ago

1.5.0-beta.8

8 months ago

1.1.12

10 months ago

1.5.0-beta.7

8 months ago

1.1.11

10 months ago

1.1.10

10 months ago

1.5.0-beta.9

7 months ago

1.5.0-beta.4

8 months ago

1.5.0-beta.3

8 months ago

1.5.0-beta.6

8 months ago

1.1.14

10 months ago

1.5.0-beta.5

8 months ago

1.1.13

10 months ago

1.1.1

11 months ago

1.0.0

12 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.10

11 months ago

0.0.21

12 months ago

0.0.22

12 months ago

0.0.20

12 months ago

0.0.14

12 months ago

0.0.15

12 months ago

0.0.16

12 months ago

0.0.17

12 months ago

0.0.18

12 months ago

0.0.19

12 months ago

0.0.13

12 months ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago