diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 00000000..b8c52256
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,59 @@
+version: 2
+
+jobs:
+ build:
+ working_directory: ~/app
+ docker:
+ - image: circleci/node:10.13.0
+ steps:
+ - checkout
+ - run:
+ name: Install dependencies
+ command: |
+ npm ci
+ - run:
+ name: Run build
+ command: |
+ npm run build:lib
+ - persist_to_workspace:
+ root: ~/app
+ paths:
+ - ./
+
+ tests_unit:
+ working_directory: ~/app
+ docker:
+ - image: circleci/node:10.13.0
+ environment:
+ APP_PORT: 8080
+ steps:
+ - attach_workspace:
+ at: ~/app
+ - run:
+ name: Run tests
+ command: |
+ npm run test:unit
+
+ misc:
+ working_directory: ~/app
+ docker:
+ - image: circleci/node:10.13.0
+ steps:
+ - attach_workspace:
+ at: ~/app
+ - run:
+ name: Lint
+ command: |
+ npm run lint
+
+workflows:
+ version: 2
+ app:
+ jobs:
+ - build
+ - tests_unit:
+ requires:
+ - build
+ - misc:
+ requires:
+ - build
diff --git a/README.md b/README.md
index 533ab726..b29541f8 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,9 @@
> A vue component for select dates (range mode available) & time
-This documentation is for v2.*. Find v1 documentation [here](./assets/doc-v1.md)
+[![Build Status](https://circleci.com/gh/chronotruck/vue-ctk-date-time-picker/tree/master.svg?style=shield)](https://circleci.com/gh/chronotruck/vue-ctk-date-time-picker/tree/master)
+
+This documentation is for v2.\*. Find v1 documentation [here](./assets/doc-v1.md)
![vue-ctk-date-time-picker](./assets/illu-animated.gif)
@@ -48,29 +50,36 @@ Vue.component('VueCtkDateTimePicker', VueCtkDateTimePicker);
## UMD
```html
-
+
-
+
```
-Here is an example of UMD implementation: https://codepen.io/louismazel/pen/jQWNzQ
+Here is an example of [UMD implementation](https://codepen.io/louismazel/pen/jQWNzQ).
## Use custom element to trigger the component
@@ -86,49 +95,47 @@ Here is an example of UMD implementation: https://codepen.io/louismazel/pen/jQWN
# Props API
-| Props | Type | Required | Default |
-|------------|------------|----------|------------|
-| v-model | String | yes | - |
-| id | String | no | DateTimePicker |
-| format | String | no | 'YYYY-MM-DD hh:mm a' |
-| formatted | String | no | 'llll' (momentjs format) |
-| label | String | no | Select date & time |
-| disabled | Boolean | no | false |
-| hint (1) | String | no | - |
-| error (2) | Boolean | no | false |
-| color (3) | String (hex) | no | dodgerblue |
-| button-color (4) | String (hex) | no | #00C853 |
-| position | String | no | null |
-| locale (5) | String | no | Browser Locale |
-| persistent | Boolean | no | false |
-| minute-interval | Integer | no | 1 |
-| output-format | String | no | null |
-| only-time | Boolean | no | false |
-| only-date | Boolean | no | false |
-| no-label | Boolean | no | false |
-| no-header | Boolean | no | false |
-| no-value-to-custom-elem (6) | Boolean | no | false |
-| min-date (7) | String | no | - |
-| max-date (7) | String | no | - |
-| no-weekends-days | Boolean | no | false |
-| auto-close | Boolean | no | false |
-| inline | Boolean | no | false |
-| overlay | Boolean | no | false |
-| range | Boolean | no | false |
-| dark | Boolean | no | false |
-| no-shortcuts | Boolean | no | false |
-| no-button | Boolean | no | false |
-| input-size | String (sm or lg) | no | null |
-| button-now-translation | String | no | 'Now' |
-| no-button-now | Boolean | no | false |
-| first-day-of-week | Int (0 to 7) | no | - |
-| disabled-dates (8) | Array`` | no | [] |
-| disabled-hours (9) | Array`` | no | - |
-| custom-shortcuts (10) | Array`