You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-13
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,7 @@ You can also just download the contents of the `dist/` folder and add dependenci
94
94
95
95
### Dependencies
96
96
97
-
Schema form has a lot of dependencies, most of which are optional. Therefor
98
-
99
-
Schema Form depends on:
97
+
Schema form has a lot of dependencies, most of which are optional. Schema Form depends on:
100
98
101
99
1.[AngularJS](https://angularjs.org/) version 1.3.x is recomended. Version 1.2.x
102
100
has some limitation. See [known limitations](docs/knownlimitations.md).
@@ -109,19 +107,40 @@ If you install via bower you get all of the above except bootstrap since we
109
107
don't want to push a certain version or flavor on you. Also make
110
108
sure you got the angular version you actually want.
111
109
110
+
112
111
#### Additional dependecies
113
112
114
-
1. If you want to use the date picker, you'll also need [jQuery](https://github.com/jquery/jquery) and [pickadate.js](http://amsul.ca/pickadate.js/)
115
-
2. If you'd like to use drag-and-drop reordering of arrays, you'll also need [ui-sortable](https://github.com/angular-ui/ui-sortable) and its [jQueryUI](http://jqueryui.com/) dependencies. See the *ui-sortable* documentation for details about which parts of jQueryUI are needed. You can safely ignore these if you don't need reordering.
116
-
3. Schema Form provides tabbed arrays through the form type `tabarray`. Tab arrays default to tabs on the left side. For these to work, you'll need to include the CSS from [bootstrap-vertical-tabs](https://github.com/dbtek/bootstrap-vertical-tabs). However, you won't need Bootstrap Vertical Tabs for horizontal tabs (the `tabType: "top"` option).
113
+
1. If you'd like to use drag-and-drop reordering of arrays, you'll also need [ui-sortable](https://github.com/angular-ui/ui-sortable) and its [jQueryUI](http://jqueryui.com/) dependencies. See the *ui-sortable* documentation for details about which parts of jQueryUI are needed. You can safely ignore these if you don't need reordering.
114
+
2. Schema Form provides tabbed arrays through the form type `tabarray`. Tab arrays default to tabs on the left side. For these to work, you'll need to include the CSS from [bootstrap-vertical-tabs](https://github.com/dbtek/bootstrap-vertical-tabs). However, you won't need Bootstrap Vertical Tabs for horizontal tabs (the `tabType: "top"` option).
117
115
118
116
The minified files include templates - no need to load additional HTML files.
119
117
118
+
119
+
### Script Loading
120
+
121
+
Schema form is split into two main files, `dist/schema-form.min.js` and
122
+
`dist/boostrap-decorator.min.js` and they need be loaded in that order. AngularJ,
123
+
[tv4](https://github.com/geraintluff/tv4) and [objectpath](https://github.com/mike-marcacci/objectpath)
@@ -147,19 +166,24 @@ Unit tests are run with [karma](http://karma-runner.github.io) and written using
147
166
To run the tests:
148
167
149
168
1. Install all dependencies via NPM
150
-
2. Install the Karma CLI
151
-
3. Run the tests
169
+
2. Install dev dependencies with bower.
170
+
3. Install the Karma CLI
171
+
4. Run the tests
152
172
153
173
```bash
154
174
$ npm install
175
+
$ bower install
155
176
$ sudo npm install -g karma-cli
156
177
$ karma start karma.conf.js
157
178
```
158
179
159
180
Contributing
160
181
------------
161
182
162
-
**Heads up!** Sometime soon we will go over and change the code style to follow
163
-
whatever [jscs](https://github.com/mdevils/node-jscs) says with preset set to 'google'.
183
+
All contributions are welcome! We're trying to use
184
+
[git flow](http://danielkummer.github.io/git-flow-cheatsheet/), so please base any merge request
185
+
on the **development** branch instead of **master**.
164
186
165
-
All contributions are welcome! We're trying to use [git flow](http://danielkummer.github.io/git-flow-cheatsheet/), so please base any merge request on the **development** branch instead of **master**.
187
+
Also run any code through the code style checker [jscs](https://github.com/mdevils/node-jscs)
188
+
(or even better use it in your editor) with preset set to `google`. You can also us `gulp jscs` to
0 commit comments