Skip to content

Commit

Permalink
Merge branch 'release/v0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlgj committed Jun 27, 2014
2 parents 32352b6 + 345de05 commit 76d9033
Show file tree
Hide file tree
Showing 14 changed files with 333 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.4.0
------
* Create tabs with the 'tab' type, just for show!
* Add arbitrary HTML with the 'help' type, just because you can.

v0.3.0
------
* A shiny new datepicker using pickadate.js
Expand Down
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ manually)

It depends on AngularJS (duh!), [tv4](https://github.com/geraintluff/tv4), and
if you like to use the date picker you also need jQuery and
[pickadate.js](http://amsul.ca/pickadate.js/)
[pickadate.js](http://amsul.ca/pickadate.js/). Also if you use the ```help```
type to inject HTML you'll want to use ngSanitize as well.

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


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


Building
--------
The files in the ```dist``` plus dependencies are all you need to use Schema
Form, but if you like to build it yourself we use [gulp](http://gulpjs.com/).

First off you need to have nodejs installed. Then install all dev dependencies
of the project with npm, install gulp and run the default task.

```bash
$ npm install
$ sudo npm install -g gulp
$ gulp
```

The default task uses [gulp-angular-templatecache](https://github.com/miickel/gulp-angular-templatecache)
to compile all html templates to js and then concatenates and minifies them with
the rest of the sources.

You can also run ```gulp watch``` to have it rebuild on change.

Tests
-----
Unit tests are run with [karma](http://karma-runner.github.io) and written using
[mocha](http://visionmedia.github.io/mocha/), [chai](http://chaijs.com/)
and [sinon](http://sinonjs.org/)

To run the tests first install all dependencies with npm (if you haven't done it
already) and install the karma cli to run the test.

```bash
$ npm install
$ sudo npm install -g karma-cli
$ karma start karma.conf.js
```

Contributing
------------

Expand Down
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dist/bootstrap-decorator.min.js",
"dist/bootstrap-datepicker.min.js"
],
"version": "0.3.0",
"version": "0.4.0",
"authors": [
"Textalk",
"David Jensen <[email protected]>"
Expand All @@ -24,7 +24,8 @@
"dependencies": {
"angular": "~1.2.18",
"tv4": "~1.0.15",
"pickadate": "~3.5.2"
"pickadate": "~3.5.2",
"angular-sanitize": "~1.2.18"
},
"devDependencies": {
"angular-ui-ace": "bower"
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-decorator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 76d9033

Please sign in to comment.