@lemoncode/fonk-validator-builder
v1.2.5
Published
Helper library to create validators supported by fonk library.
Downloads
66
Maintainers
Readme
fonk-validator-builder
Helper library to create validators
supported by fonk library.
How to use it
- Install library as globally or use npx:
npm install @lemoncode/fonk-validator-builder -g
Create validator repository in https://github.com/Lemoncode. A good repository name will be fonk-validator-name-validator. For example,
fonk-is-number-validator
.Add repository to circleci:
- Execute command in
empty
folder project. It will create validator folders and files:
fonk-validator
NOTE: It will prompt a question requiring the
validator name
- Install dependencies:
npm install
Search
// TODO:
to get pending files to update and implement it:Add PR with implementation.
Publishing library:
npm run deploy // Select library version 1.0.0
Description
- Install as globally this library to create fonk validators.
- Run
fonk-validator
command. - Insert
validator name
. It automatically addsfonk-
prefix and-validator
suffix. For example:is-number
->fonk-is-number-validator
. - It will copy all necessary files in your project using the
validator name
. - Now you can search
// TODO:
to implement necessary code. - Publish new
fonk validator
withnpm run deploy
.
About Basefactor + Lemoncode
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend