| OLD | NEW |
| 1 Hacking on Sky | 1 Hacking on Sky |
| 2 ============== | 2 ============== |
| 3 | 3 |
| 4 Building | 4 Building |
| 5 -------- | 5 -------- |
| 6 | 6 |
| 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo
jo) | 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo
jo) |
| 8 * Build ``sky`` with ``ninja``, e.g. ``ninja -C out/Debug sky`` for a debug buil
d. | |
| 9 | |
| 10 If you want to build release, run the following commands: | |
| 11 | |
| 12 * ``gn gen out/Release --args="is_debug=false"`` | |
| 13 * ``ninja -C out/Release sky`` | |
| 14 | 8 |
| 15 Running applications | 9 Running applications |
| 16 -------------------- | 10 -------------------- |
| 17 | 11 |
| 18 * ``./sky/tools/skydb --debug [url]`` | 12 * ``./sky/tools/skydb --debug [url]`` |
| 19 * You should see a ``(skydb)`` prompt | 13 * You should see a ``(skydb)`` prompt |
| 20 * Type ``help`` to see the list of available commands | 14 * Type ``help`` to see the list of available commands |
| 21 * Note: skydb is currently hard-coded to use ``//out/Debug`` | 15 * Note: skydb is currently hard-coded to use ``//out/Debug`` |
| 22 | 16 |
| 23 * ``./sky/tools/test_sky --debug`` | 17 * ``./sky/tools/test_sky --debug`` |
| (...skipping 16 matching lines...) Expand all Loading... |
| 40 * Write tests in [mocha format](http://visionmedia.github.io/mocha/#getting-star
ted) and use [chai asserts](http://chaijs.com/api/assert/): | 34 * Write tests in [mocha format](http://visionmedia.github.io/mocha/#getting-star
ted) and use [chai asserts](http://chaijs.com/api/assert/): |
| 41 ```html | 35 ```html |
| 42 describe('My pretty test of my subject', function() { | 36 describe('My pretty test of my subject', function() { |
| 43 var subject = new MySubject(); | 37 var subject = new MySubject(); |
| 44 | 38 |
| 45 it('should be pretty', function() { | 39 it('should be pretty', function() { |
| 46 assert.ok(subject.isPretty); | 40 assert.ok(subject.isPretty); |
| 47 }); | 41 }); |
| 48 }); | 42 }); |
| 49 ``` | 43 ``` |
| OLD | NEW |