@@ -73,10 +73,12 @@ manually)
73
73
74
74
It depends on AngularJS (duh!), [ tv4] ( https://github.com/geraintluff/tv4 ) , and
75
75
if you like to use the date picker you also need jQuery and
76
- [ pickadate.js] ( http://amsul.ca/pickadate.js/ )
76
+ [ pickadate.js] ( http://amsul.ca/pickadate.js/ ) . Also if you use the ``` help ```
77
+ type to inject HTML you'll want to use ngSanitize as well.
77
78
78
79
The minified files also includes all templates so they are all you need.
79
80
81
+
80
82
Addons
81
83
------
82
84
Currently there is only one addon, a date picker using
@@ -85,6 +87,41 @@ the excellent [pickadate.js](http://amsul.ca/pickadate.js/).
85
87
See the [ docs] ( docs/datepicker.md ) for usage.
86
88
87
89
90
+ Building
91
+ --------
92
+ The files in the ``` dist ``` plus dependencies are all you need to use Schema
93
+ Form, but if you like to build it yourself we use [ gulp] ( http://gulpjs.com/ ) .
94
+
95
+ First off you need to have nodejs installed. Then install all dev dependencies
96
+ of the project with npm, install gulp and run the default task.
97
+
98
+ ``` bash
99
+ $ npm install
100
+ $ sudo npm install -g gulp
101
+ $ gulp
102
+ ```
103
+
104
+ The default task uses [ gulp-angular-templatecache] ( https://github.com/miickel/gulp-angular-templatecache )
105
+ to compile all html templates to js and then concatenates and minifies them with
106
+ the rest of the sources.
107
+
108
+ You can also run ``` gulp watch ``` to have it rebuild on change.
109
+
110
+ Tests
111
+ -----
112
+ Unit tests are run with [ karma] ( http://karma-runner.github.io ) and written using
113
+ [ mocha] ( http://visionmedia.github.io/mocha/ ) , [ chai] ( http://chaijs.com/ )
114
+ and [ sinon] ( http://sinonjs.org/ )
115
+
116
+ To run the tests first install all dependencies with npm (if you haven't done it
117
+ already) and install the karma cli to run the test.
118
+
119
+ ``` bash
120
+ $ npm install
121
+ $ sudo npm install -g karma-cli
122
+ $ karma start karma.conf.js
123
+ ```
124
+
88
125
Contributing
89
126
------------
90
127
0 commit comments