Skip to content

Commit 76d9033

Browse files
committed
Merge branch 'release/v0.4.0'
2 parents 32352b6 + 345de05 commit 76d9033

14 files changed

+333
-22
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v0.4.0
2+
------
3+
* Create tabs with the 'tab' type, just for show!
4+
* Add arbitrary HTML with the 'help' type, just because you can.
5+
16
v0.3.0
27
------
38
* A shiny new datepicker using pickadate.js

README.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ manually)
7373

7474
It depends on AngularJS (duh!), [tv4](https://github.com/geraintluff/tv4), and
7575
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.
7778

7879
The minified files also includes all templates so they are all you need.
7980

81+
8082
Addons
8183
------
8284
Currently there is only one addon, a date picker using
@@ -85,6 +87,41 @@ the excellent [pickadate.js](http://amsul.ca/pickadate.js/).
8587
See the [docs](docs/datepicker.md) for usage.
8688

8789

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+
88125
Contributing
89126
------------
90127

bower.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dist/bootstrap-decorator.min.js",
66
"dist/bootstrap-datepicker.min.js"
77
],
8-
"version": "0.3.0",
8+
"version": "0.4.0",
99
"authors": [
1010
"Textalk",
1111
"David Jensen <[email protected]>"
@@ -24,7 +24,8 @@
2424
"dependencies": {
2525
"angular": "~1.2.18",
2626
"tv4": "~1.0.15",
27-
"pickadate": "~3.5.2"
27+
"pickadate": "~3.5.2",
28+
"angular-sanitize": "~1.2.18"
2829
},
2930
"devDependencies": {
3031
"angular-ui-ace": "bower"

dist/bootstrap-decorator.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)