Skip to content

Commit b7be011

Browse files
committed
added missing readme
1 parent 75ddc53 commit b7be011

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# adf-widget-markdown
2+
3+
clock widget for the [angular-dashboard-framework](https://github.com/sdorra/angular-dashboard-framework).
4+
5+
## Build
6+
7+
The widget is build with the help of [node](https://nodejs.org/), [npm](https://www.npmjs.com/), [bower](http://bower.io/) and [gulp](http://gulpjs.com/). For a install instruction for node and npm, please have a look [here](https://docs.npmjs.com/getting-started/installing-node).
8+
9+
#### Installing bower and gulp
10+
11+
```bash
12+
npm install -g bower
13+
npm install -g gulp
14+
```
15+
16+
#### Installing dependencies
17+
18+
```bash
19+
npm install
20+
bower install
21+
```
22+
23+
#### Build the adf-widget-markdown
24+
25+
```bash
26+
gulp
27+
```
28+
29+
The compiled and optimized files can be found in the dist directory.
30+
31+
#### Other build goals
32+
33+
Each goal can be used as parameter for the gulp command.
34+
35+
* *clean*: removes the dist folder
36+
* *lint*: checks css and javascript files for common errors
37+
* *serve*: starts an webserver to test the widget
38+
39+
## Usage
40+
41+
Install the widget with bower:
42+
43+
```bash
44+
bower install adf-widget-markdown --save
45+
```
46+
47+
Include the script in your index.html and be sure it is loaded after [angular](https://angularjs.org/) and after the [angular-dashboard-framework](https://github.com/sdorra/angular-dashboard-framework).
48+
49+
```html
50+
<script type="text/javascript" src="bower_components/showdown/src/showdown.js"></script>
51+
<script type="text/javascript" src="bower_components/angular-markdown-directive/markdown.js"></script>
52+
<script type="text/javascript" src="bower_components/adf-widget-markdown/dist/adf-widget-markdown.min.js"></script>
53+
```
54+
55+
Define a dependency for the module:
56+
57+
```javascript
58+
angular.module('sample', ['adf', 'adf.widget.markdown']);
59+
```

0 commit comments

Comments
 (0)