UNPKG

2.34 kBMarkdownView Raw
1KD [![Build Status](https://img.shields.io/travis/koding/kd/master.svg?style=flat)](https://travis-ci.org/koding/kd) [![Dependency Status](https://img.shields.io/david/dev/koding/kd.svg?style=flat)](https://david-dm.org/koding/kd#info=devDependencies) [![Dependency Status](https://img.shields.io/david/koding/kd.svg?style=flat)](https://david-dm.org/koding/kd#info=dependencies)
2--
3_a non-document focused UI Framework for web applications._
4
5Install gulp:
6
7```bash
8$ npm install gulp -g
9```
10
11
12Build steps:
13
14```bash
15$ npm i
16$ gulp
17```
18
19Before building make sure you have these installed:
20
21- [node](http://nodejs.org)
22- [gulp](http://gulpjs.com/)
23
24#### Build the documentation website or create a playground
25
26Documentation website is under `/docs` folder, it is a great example to check how a site can be put together with KD.
27
28You can build & run it by doing:
29
30```bash
31$ gulp --docs
32```
33
34or you can create playground to fiddle with the components with this:
35
36```bash
37$ gulp --play
38```
39
40
41#### Test Runner
42
43KD uses [karma](http://karma-runner.github.io) for automatically running
44tests. To launch karma, run
45
46```bash
47$ gulp karma
48```
49
50If you're editing test files, you'll also need to run the test watcher
51to automatically build the test files:
52
53```bash
54$ gulp watch-test
55```
56
57There is also an html based test runner, which can be useful for
58debugging tests. If you're running the playground server (started by
59running `gulp`) the tests are available by going to
60
61[http://localhost:8080/test/index.html](http://localhost:8080/test/index.html)
62
63Alternately, you can view the tests directly in the browser:
64
65```bash
66$ open test/index.html
67```
68
69#### Running tests on Saucelabs
70
71You can also run tests remotely on [SauceLabs](https://saucelabs.com)
72browsers.
73
74First, expose your saucelabs username and access key as environment
75variables
76
77```bash
78$ export SAUCE_USERNAME=your-username SAUCE_ACCESS_KEY=your-access-key
79```
80
81Then fire up the SauceLabs test runner with
82
83```bash
84$ gulp sauce
85```
86
87The available browser definitions are configured in the
88`customLaunchers` key in `karma.conf.js` and then
89selected in the 'sauce' task in `gulpfile.coffe`.
90
91
92------------------------
93
94#### Disclaimer
95
96__The framework is not well documented yet and the unit tests are in very early stage, any pull requests in this direction is highly appreciated.__