Skip to content

Commit 0f8190b

Browse files
authored
refactor: update bundling (#9)
1 parent 752ffe1 commit 0f8190b

27 files changed

+4146
-5766
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/env"]
3+
}

.eslintrc.js

-36
This file was deleted.

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ coverage
1515

1616
# Build
1717
dist
18+
.cache
1819

1920
# Docs
2021
_book
2122
.tmp
22-
tmp*
23+
tmp*

CHANGELOG.md

+37-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
1.5.0 / 03-30-2017
2-
=================
3-
* Add displaySeconds prop
4-
5-
1.4.0 / 03-30-2017
6-
=================
7-
* Add blink prop
8-
9-
1.3.1 / 03-29-2017
10-
=================
11-
* Remove babel from project
12-
13-
1.3.0 / 03-29-2017
14-
=================
15-
* Remove ES6 from Clock.vue
16-
17-
1.2.0 / 03-29-2017
18-
=================
19-
* Remove babel-runtime plugin
20-
21-
1.1.0 / 03-05-2017
22-
=================
23-
* Add destroyed() method to clear interval when component is destroyed
24-
25-
1.0.2 / 03-02-2017
26-
=================
27-
* Add keywords to package.json
28-
* Update image URL
29-
* Add installation guide to README
30-
31-
1.0.1 / 03-02-2017
32-
=================
33-
* Update image URL in README
34-
35-
1.0.0 / 03-01-2017
36-
=================
37-
* Initial release.
1+
# 1.5.0 / 03-30-2017
2+
3+
- Add displaySeconds prop
4+
5+
# 1.4.0 / 03-30-2017
6+
7+
- Add blink prop
8+
9+
# 1.3.1 / 03-29-2017
10+
11+
- Remove babel from project
12+
13+
# 1.3.0 / 03-29-2017
14+
15+
- Remove ES6 from Clock.vue
16+
17+
# 1.2.0 / 03-29-2017
18+
19+
- Remove babel-runtime plugin
20+
21+
# 1.1.0 / 03-05-2017
22+
23+
- Add destroyed() method to clear interval when component is destroyed
24+
25+
# 1.0.2 / 03-02-2017
26+
27+
- Add keywords to package.json
28+
- Update image URL
29+
- Add installation guide to README
30+
31+
# 1.0.1 / 03-02-2017
32+
33+
- Update image URL in README
34+
35+
# 1.0.0 / 03-01-2017
36+
37+
- Initial release.

Clock.vue

-74
This file was deleted.

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55
## Installation
66

77
With NPM:
8+
89
```shell
910
npm install --save vue-digital-clock
1011
```
1112

1213
With Yarn
14+
1315
```shell
1416
yarn add vue-digital-clock
1517
```
1618

1719
And import it into your project
20+
1821
```javascript
19-
import Clock from 'vue-digital-clock'
22+
import DigitalClock from "vue-digital-clock";
2023
```
2124

2225
## Props
@@ -32,20 +35,20 @@ import Clock from 'vue-digital-clock'
3235

3336
```vue
3437
<template>
35-
<Clock :blink="true" />
38+
<digital-clock :blink="true" />
3639
</template>
3740
3841
<script>
39-
import Clock from 'vue-digital-clock'
42+
import DigitalClock from "vue-digital-clock";
4043
4144
export default {
42-
name: 'app',
4345
components: {
44-
Clock,
45-
},
46-
}
46+
DigitalClock
47+
}
48+
};
4749
</script>
4850
```
51+
4952
## Screenshot
5053

5154
![vue-digital-clock screenshot](https://raw.githubusercontent.com/eddyerburgh/vue-digital-clock/master/assets/vue-digital-clock.gif)

build/check-versions.js

-45
This file was deleted.

build/dev-client.js

-9
This file was deleted.

build/dev-server.js

-78
This file was deleted.

build/utils.js

-10
This file was deleted.

0 commit comments

Comments
 (0)