Chore project clean up (#42)

* chore: project clean up

* docs: update package release
This commit is contained in:
Ayo Ayco 2022-10-04 19:18:17 +02:00 committed by GitHub
parent 29abefd605
commit 3c1ab5c40e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 25 additions and 20 deletions

View file

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 233 KiB

View file

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 232 KiB

View file

@ -10,7 +10,7 @@ on:
branches: ["main"]
jobs:
build:
build-and-test:
runs-on: ubuntu-latest
strategy:

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
node_modules
dist
npm-debug.log*
yarn-debug.log*
@ -10,5 +11,3 @@ pnpm-debug.log*
*~
*swp
*swo
demo/dist

View file

@ -9,7 +9,7 @@ Let your data build your UI. Blazing-fast, reactive user interfaces with native
| Packages | Version | Docs | Description |
| --- | --- | --- | --- |
| [astro-reactive-form](https://github.com/ayoayco/astro-reactive-library/blob/main/packages/astro-reactive-form/README.md#astro-reactive-form-) | [![npm](https://img.shields.io/npm/v/astro-reactive-form)](https://www.npmjs.com/package/astro-reactive-form) | 🛠 | generate a dynamic form which can be modified programatically |
| [astro-reactive-form](https://github.com/ayoayco/astro-reactive-library/blob/main/packages/astro-reactive-form/README.md) | [![npm](https://img.shields.io/npm/v/astro-reactive-form)](https://www.npmjs.com/package/astro-reactive-form) | 🛠 | generate a dynamic form which can be modified programatically |
| astro-reactive-validator | 🛠 | 🛠 | set of utilities for validating inputs |
| astro-reactive-datagrid | 🛠 | 🛠 | generate a dynamic datagrid or table of values |

15
package-lock.json generated
View file

@ -18,7 +18,6 @@
}
},
"demo": {
"name": "demo-astro-reactive-library",
"version": "0.0.1",
"license": "ISC",
"dependencies": {
@ -921,9 +920,9 @@
}
},
"node_modules/@types/node": {
"version": "18.8.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz",
"integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==",
"version": "18.8.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.2.tgz",
"integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==",
"dev": true
},
"node_modules/@types/parse5": {
@ -7942,7 +7941,7 @@
}
},
"packages/astro-reactive-form": {
"version": "0.2.3",
"version": "0.2.4",
"license": "MIT",
"devDependencies": {
"@types/chai": "^4.3.3",
@ -8682,9 +8681,9 @@
}
},
"@types/node": {
"version": "18.8.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz",
"integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==",
"version": "18.8.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.2.tgz",
"integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==",
"dev": true
},
"@types/parse5": {

View file

@ -3,7 +3,7 @@
"description": "Astro components for building reactive user interfaces 🚀",
"version": "0.0.0",
"repository": "https://github.com/ayoayco/astro-reactive-library",
"homepage": "https://ayco.io/showcase/astro-reactive-library",
"homepage": "https://ayco.io/showcase/astro-reactive-library#readme",
"author": {
"name": "Ayo Ayco",
"email": "ramon.aycojr@gmail.com",
@ -16,6 +16,7 @@
"scripts": {
"start": "npm run dev -w demo",
"test": "npm run test --workspaces --if-present",
"test:watch": "npm run test:watch --workspaces --if-present",
"dev": "npm run dev -w demo",
"bump": "npm version patch -w",
"bump-minor": "npm version minor -w",

View file

@ -7,7 +7,9 @@
# Astro Reactive Form 🔥
Generate a dynamic form which can be modified programatically. The Reactive Form component for [Astro](https://astro.build) 🔥
Generate a dynamic form based on your data, and modify programatically.
The Reactive Form component for [Astro](https://astro.build) 🔥
_[All contributions are welcome.](https://github.com/ayoayco/astro-reactive-library/issues)_
@ -26,7 +28,7 @@ Use in an Astro page:
import { FormControl, FormGroup } from "astro-reactive-form/core";
import Form from "astro-reactive-form";
// create a form group (rendered as <fieldset>)
// create a form group
const form = new FormGroup([
{
name: "username",
@ -39,10 +41,10 @@ const form = new FormGroup([
},
]);
// set the name (rendered as <legend>)
// set the name optionally
form.name = "Simple Form";
// insert a control
// you can insert a control at any point
form.controls.push(
new FormControl({
type: "checkbox",
@ -52,10 +54,10 @@ form.controls.push(
})
);
// get a FormControl object
// you can get a FormControl object
const userNameControl = form.get("username");
// set values dynamically
// you can set values dynamically
userNameControl?.setValue("RAMOOOON");
form.get('is-awesome')?.setValue("checked");
---

View file

@ -1,3 +1,7 @@
## v0.2.4 to v0.2.5
- update package README
- update dependencies
## v0.2.2
- initial light and dark mode scaffold
- update package README

View file

@ -1,7 +1,7 @@
{
"name": "astro-reactive-form",
"description": "The Reactive Form component for Astro 🔥",
"version": "0.2.4",
"version": "0.2.5",
"repository": "https://github.com/ayoayco/astro-reactive-library",
"homepage": "https://github.com/ayoayco/astro-reactive-library#readme",
"author": {