Chore project clean up (#42)
* chore: project clean up * docs: update package release
This commit is contained in:
parent
29abefd605
commit
3c1ab5c40e
10 changed files with 25 additions and 20 deletions
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 233 KiB |
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
dist
|
||||||
|
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
|
@ -10,5 +11,3 @@ pnpm-debug.log*
|
||||||
*~
|
*~
|
||||||
*swp
|
*swp
|
||||||
*swo
|
*swo
|
||||||
|
|
||||||
demo/dist
|
|
|
@ -9,7 +9,7 @@ Let your data build your UI. Blazing-fast, reactive user interfaces with native
|
||||||
|
|
||||||
| Packages | Version | Docs | Description |
|
| 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-) | [](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) | [](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-validator | 🛠 | 🛠 | set of utilities for validating inputs |
|
||||||
| astro-reactive-datagrid | 🛠 | 🛠 | generate a dynamic datagrid or table of values |
|
| astro-reactive-datagrid | 🛠 | 🛠 | generate a dynamic datagrid or table of values |
|
||||||
|
|
||||||
|
|
15
package-lock.json
generated
15
package-lock.json
generated
|
@ -18,7 +18,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"demo": {
|
"demo": {
|
||||||
"name": "demo-astro-reactive-library",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -921,9 +920,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "18.8.1",
|
"version": "18.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.2.tgz",
|
||||||
"integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==",
|
"integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/parse5": {
|
"node_modules/@types/parse5": {
|
||||||
|
@ -7942,7 +7941,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/astro-reactive-form": {
|
"packages/astro-reactive-form": {
|
||||||
"version": "0.2.3",
|
"version": "0.2.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
|
@ -8682,9 +8681,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "18.8.1",
|
"version": "18.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.2.tgz",
|
||||||
"integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==",
|
"integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/parse5": {
|
"@types/parse5": {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"description": "Astro components for building reactive user interfaces 🚀",
|
"description": "Astro components for building reactive user interfaces 🚀",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"repository": "https://github.com/ayoayco/astro-reactive-library",
|
"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": {
|
"author": {
|
||||||
"name": "Ayo Ayco",
|
"name": "Ayo Ayco",
|
||||||
"email": "ramon.aycojr@gmail.com",
|
"email": "ramon.aycojr@gmail.com",
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm run dev -w demo",
|
"start": "npm run dev -w demo",
|
||||||
"test": "npm run test --workspaces --if-present",
|
"test": "npm run test --workspaces --if-present",
|
||||||
|
"test:watch": "npm run test:watch --workspaces --if-present",
|
||||||
"dev": "npm run dev -w demo",
|
"dev": "npm run dev -w demo",
|
||||||
"bump": "npm version patch -w",
|
"bump": "npm version patch -w",
|
||||||
"bump-minor": "npm version minor -w",
|
"bump-minor": "npm version minor -w",
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
# Astro Reactive Form 🔥
|
# 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)_
|
_[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 { FormControl, FormGroup } from "astro-reactive-form/core";
|
||||||
import Form from "astro-reactive-form";
|
import Form from "astro-reactive-form";
|
||||||
|
|
||||||
// create a form group (rendered as <fieldset>)
|
// create a form group
|
||||||
const form = new FormGroup([
|
const form = new FormGroup([
|
||||||
{
|
{
|
||||||
name: "username",
|
name: "username",
|
||||||
|
@ -39,10 +41,10 @@ const form = new FormGroup([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// set the name (rendered as <legend>)
|
// set the name optionally
|
||||||
form.name = "Simple Form";
|
form.name = "Simple Form";
|
||||||
|
|
||||||
// insert a control
|
// you can insert a control at any point
|
||||||
form.controls.push(
|
form.controls.push(
|
||||||
new FormControl({
|
new FormControl({
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
|
@ -52,10 +54,10 @@ form.controls.push(
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// get a FormControl object
|
// you can get a FormControl object
|
||||||
const userNameControl = form.get("username");
|
const userNameControl = form.get("username");
|
||||||
|
|
||||||
// set values dynamically
|
// you can set values dynamically
|
||||||
userNameControl?.setValue("RAMOOOON");
|
userNameControl?.setValue("RAMOOOON");
|
||||||
form.get('is-awesome')?.setValue("checked");
|
form.get('is-awesome')?.setValue("checked");
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## v0.2.4 to v0.2.5
|
||||||
|
- update package README
|
||||||
|
- update dependencies
|
||||||
|
|
||||||
## v0.2.2
|
## v0.2.2
|
||||||
- initial light and dark mode scaffold
|
- initial light and dark mode scaffold
|
||||||
- update package README
|
- update package README
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "astro-reactive-form",
|
"name": "astro-reactive-form",
|
||||||
"description": "The Reactive Form component for Astro 🔥",
|
"description": "The Reactive Form component for Astro 🔥",
|
||||||
"version": "0.2.4",
|
"version": "0.2.5",
|
||||||
"repository": "https://github.com/ayoayco/astro-reactive-library",
|
"repository": "https://github.com/ayoayco/astro-reactive-library",
|
||||||
"homepage": "https://github.com/ayoayco/astro-reactive-library#readme",
|
"homepage": "https://github.com/ayoayco/astro-reactive-library#readme",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
Loading…
Reference in a new issue