Skip to content

Commit d7cd31a

Browse files
committed
Explain production imports in the examples
1 parent 96c5b53 commit d7cd31a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

examples/chat.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/* Just a first basic test */
22
var Modelate = require('../index');
3+
// In production, just change the require for:
4+
// var Modelate = require('modelate');
35

46
// Models
57
var userModel = {
68
name: {
79
type: 'string',
8-
length: { // For now, length do nothng.
10+
length: {
911
max: 10,
1012
min: 1,
1113
},
@@ -15,7 +17,7 @@ var userModel = {
1517
},
1618
surname: {
1719
type: 'string',
18-
length: { // For now, length do nothng.
20+
length: {
1921
max: 3,
2022
min: 1,
2123
},

examples/user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
/* Just a first basic test */
22
var Modelate = require('../index');
3+
// In production, just change the require for:
4+
// var Modelate = require('modelate');
35

46
var model = {
57
name: {
68
type: 'string',
7-
length: { // For now, length do nothng.
9+
length: {
810
max: 10,
911
min: 1,
1012
},
@@ -14,7 +16,7 @@ var model = {
1416
},
1517
surname: {
1618
type: 'string',
17-
length: { // For now, length do nothng.
19+
length: {
1820
max: 3,
1921
min: 1,
2022
},

0 commit comments

Comments
 (0)