Skip to content

Commit b142db3

Browse files
committed
Add a sample and update the doc
1 parent a70762a commit b142db3

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
"version": "0.1.0",
44
"description": "",
55
"main": "index.js",
6-
"keywords": [],
7-
"author": "",
6+
"keywords": [
7+
"lc-form-validation",
8+
"form",
9+
"validation",
10+
"validator"
11+
],
12+
"homepage": "https://github.com/Lemoncode/lc-validator-fields-match/blob/master/readme.md",
13+
"author": "lc-form-validation validator for if two fields match",
14+
"contributors": [
15+
"Javier Calzado <[email protected]> (https://github.com/fjcalzado)",
16+
"Sara Lissette Luis Ibáñez <[email protected]> (https://github.com/LissetteIbnz)"
17+
],
818
"license": "MIT",
919
"scripts": {
1020
"clean": "rimraf build",

readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# lc-validator-fields-match
22

33
This is a [lc-form-validation](https://github.com/Lemoncode/lcFormValidation) add-on that brings validation capabilities for:
4-
* Validate if two fields match.
4+
5+
- Validate if two fields match.
56

67
Please, refer to [lc-form-validation](https://github.com/Lemoncode/lcFormValidation) to know more.
78

9+
## Examples
10+
11+
[Simple form](https://codesandbox.io/s/rmmnk45rqm)
12+
813
## License
14+
915
[MIT](./LICENSE)
1016

1117
# About Basefactor + Lemoncode

webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ module.exports = env => {
88
const mode = NODE_ENV || 'development';
99
const prod = mode === 'production';
1010
const packageName = process.env.npm_package_name;
11-
const packageNameCapital = packageName.split('-').map(capitalizeString).join('');
11+
const packageNameCapital = packageName
12+
.split('-')
13+
.map(capitalizeString)
14+
.join('');
1215
const packageVersion = JSON.stringify(process.env.npm_package_version).replace(/"/g, '');
1316
const filename = `${packageName}-${packageVersion}${prod ? '.min' : ''}.js`;
1417

@@ -39,6 +42,6 @@ module.exports = env => {
3942
},
4043
],
4144
},
42-
plugins: prod ? [new CompressionPlugin()] : []
45+
plugins: prod ? [new CompressionPlugin()] : [],
4346
};
4447
};

0 commit comments

Comments
 (0)