Skip to content

Commit f469753

Browse files
committed
feat: 🔥 uses Rollup for build
Uses Rollup.js for builds instead of Vue CLI. 👍
1 parent 3c6f0b7 commit f469753

32 files changed

+14533
-9254
lines changed

Diff for: .eslintrc.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
}
1414
};
1515

16-
// "plugin:vue/recommended",
17-
// "eslint:recommended",
18-
// "prettier/vue",
19-
// "plugin:prettier/recommended"
16+
// "plugin:vue/recommended",
17+
// "eslint:recommended",
18+
// "prettier/vue",
19+
// "plugin:prettier/recommended"

Diff for: .gitignore

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
.DS_Store
22
node_modules
3-
# /dist
3+
public
4+
dist/*.gz
5+
dist/*.map
6+
coverage
7+
docs/.vuepress/dist
48

59
# local env files
610
.env.local
711
.env.*.local
812

9-
# Log files
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13+
# related test files
14+
/tests/e2e/reports
15+
/tests/e2e/videos
16+
/tests/e2e/screenshots
1317

14-
# Editor directories and files
18+
# editor directories and files
1519
.idea
16-
# .vscode
20+
.vscode
1721
*.suo
1822
*.ntvs*
1923
*.njsproj
2024
*.sln
21-
*.sw?
22-
25+
*.sw*
2326
# Backups
2427
.BACKUP
2528
.STORAGE

Diff for: CHANGELOG.md

+1-219
Original file line numberDiff line numberDiff line change
@@ -1,219 +1 @@
1-
# Changelog
2-
3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4-
5-
## [2.7.0-alpha.21](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.20...v2.7.0-alpha.21) (2019-05-26)
6-
7-
8-
### Bug Fixes
9-
10-
* removes wrong cli option for \`build:demos\`' ([ece166c](https://github.com/davidroyer/vue2-editor/commit/ece166c))
11-
* **demos:** removes ex. with 2 duplicate editors ([5948223](https://github.com/davidroyer/vue2-editor/commit/5948223))
12-
13-
14-
15-
## [2.7.0-alpha.20](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.19...v2.7.0-alpha.20) (2019-05-26)
16-
17-
18-
19-
## [2.7.0-alpha.19](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.18...v2.7.0-alpha.19) (2019-05-26)
20-
21-
22-
23-
## [2.7.0-alpha.18](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.17...v2.7.0-alpha.18) (2019-05-26)
24-
25-
26-
27-
## [2.7.0-alpha.17](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.16...v2.7.0-alpha.17) (2019-05-26)
28-
29-
30-
31-
## [2.7.0-alpha.16](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.15...v2.7.0-alpha.16) (2019-05-26)
32-
33-
34-
### Bug Fixes
35-
36-
* reduces bundle size ([bf1b8b8](https://github.com/davidroyer/vue2-editor/commit/bf1b8b8))
37-
38-
39-
40-
## [2.7.0-alpha.15](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.14...v2.7.0-alpha.15) (2019-05-26)
41-
42-
43-
### Bug Fixes
44-
45-
* **package.json:** removes src from files property ([108f1be](https://github.com/davidroyer/vue2-editor/commit/108f1be))
46-
47-
48-
49-
## [2.7.0-alpha.14](https://github.com/davidroyer/vue2-editor/compare/v2.7.1-alpha.0...v2.7.0-alpha.14) (2019-05-26)
50-
51-
52-
53-
### [2.7.1-alpha.0](https://github.com/davidroyer/vue2-editor/compare/v2.7.0...v2.7.1-alpha.0) (2019-05-26)
54-
55-
56-
57-
## [2.7.0](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.13...v2.7.0) (2019-05-26)
58-
59-
60-
### Bug Fixes
61-
62-
* removes unused and non-working config option ([61098d7](https://github.com/davidroyer/vue2-editor/commit/61098d7))
63-
64-
65-
66-
## [2.7.0-alpha.13](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.12...v2.7.0-alpha.13) (2019-05-24)
67-
68-
69-
### Bug Fixes
70-
71-
* **scripts:** removes unused config option ([09b303e](https://github.com/davidroyer/vue2-editor/commit/09b303e))
72-
73-
74-
75-
## [2.7.0-alpha.12](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.11...v2.7.0-alpha.12) (2019-05-24)
76-
77-
78-
### Bug Fixes
79-
80-
* fixes libraryName ([8cfb6fd](https://github.com/davidroyer/vue2-editor/commit/8cfb6fd))
81-
82-
83-
84-
## [2.7.0-alpha.11](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.10...v2.7.0-alpha.11) (2019-05-24)
85-
86-
87-
88-
## [2.7.0-alpha.10](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.9...v2.7.0-alpha.10) (2019-05-24)
89-
90-
91-
92-
## [2.7.0-alpha.9](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.8...v2.7.0-alpha.9) (2019-05-16)
93-
94-
95-
### Bug Fixes
96-
97-
* fixes changed package file names ([1209d94](https://github.com/davidroyer/vue2-editor/commit/1209d94))
98-
99-
100-
101-
## [2.7.0-alpha.8](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.7...v2.7.0-alpha.8) (2019-05-16)
102-
103-
104-
### Bug Fixes
105-
106-
* fixes name for browser field ([3851164](https://github.com/davidroyer/vue2-editor/commit/3851164))
107-
108-
109-
110-
## [2.7.0-alpha.7](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.6...v2.7.0-alpha.7) (2019-05-15)
111-
112-
113-
114-
## [2.7.0-alpha.6](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.5...v2.7.0-alpha.6) (2019-05-15)
115-
116-
117-
### Bug Fixes
118-
119-
* adds `files` property ([11fd1ad](https://github.com/davidroyer/vue2-editor/commit/11fd1ad))
120-
121-
122-
123-
## [2.7.0-alpha.5](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.4...v2.7.0-alpha.5) (2019-05-15)
124-
125-
126-
127-
## [2.7.0-alpha.4](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.3...v2.7.0-alpha.4) (2019-05-15)
128-
129-
130-
131-
## [2.7.0-alpha.3](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.2...v2.7.0-alpha.3) (2019-05-15)
132-
133-
134-
135-
## [2.7.0-alpha.2](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.1...v2.7.0-alpha.2) (2019-05-15)
136-
137-
138-
### Bug Fixes
139-
140-
* fixes README layout ([6f95733](https://github.com/davidroyer/vue2-editor/commit/6f95733))
141-
142-
143-
### Tests
144-
145-
* **git:** testing new lines ([a312d19](https://github.com/davidroyer/vue2-editor/commit/a312d19))
146-
147-
148-
149-
## [2.7.0-alpha.1](https://github.com/davidroyer/vue2-editor/compare/v2.7.0-alpha.0...v2.7.0-alpha.1) (2019-05-15)
150-
151-
## [2.7.0-alpha.0](https://github.com/davidroyer/vue2-editor/compare/v2.4.1...v2.7.0-alpha.0) (2019-05-14)
152-
153-
### Features
154-
155-
- **builds:** now using bili.js & standard-version ([fb9ebc8](https://github.com/davidroyer/vue2-editor/commit/fb9ebc8))
156-
157-
### 2.6.6 (2018-08-04)
158-
159-
### Build System
160-
161-
- **package.json:** Needed to add `publishConfig` property to _npm_ and set it as the `registry` ([63c066f](https://github.com/davidroyer/vue2-editor/commit/63c066f))
162-
163-
### 2.6.5 (2018-08-04)
164-
165-
### 2.6.4 (2018-08-04)
166-
167-
### 2.6.3 (2018-08-04)
168-
169-
### 2.6.2 (2018-08-04)
170-
171-
### Build System
172-
173-
- **package.json:** Added `commitizen` and changelog dependencies ([a11f2d8](https://github.com/davidroyer/vue2-editor/commit/a11f2d8))
174-
175-
### 2.4.2 (2018-02-04)
176-
177-
<a name="2.6.6"></a>
178-
179-
## [2.6.6](https://github.com/davidroyer/vue2-editor/compare/2.6.5...2.6.6) (2018-08-04)
180-
181-
<a name="2.6.5"></a>
182-
183-
## [2.6.5](https://github.com/davidroyer/vue2-editor/compare/2.6.4...2.6.5) (2018-08-04)
184-
185-
<a name="2.6.4"></a>
186-
187-
## [2.6.4](https://github.com/davidroyer/vue2-editor/compare/2.6.3...2.6.4) (2018-08-04)
188-
189-
<a name="2.6.3"></a>
190-
191-
## [2.6.3](https://github.com/davidroyer/vue2-editor/compare/2.6.2...2.6.3) (2018-08-04)
192-
193-
<a name="2.6.2"></a>
194-
195-
## [2.6.2](https://github.com/davidroyer/vue2-editor/compare/2.4.2...2.6.2) (2018-08-04)
196-
197-
<a name="2.6.1"></a>
198-
199-
## [2.6.1](https://github.com/davidroyer/vue2-editor/compare/2.4.2...2.6.1) (2018-08-03)
200-
201-
<a name="2.4.2"></a>
202-
203-
## [2.4.2](https://github.com/davidroyer/vue2-editor/compare/v2.4.1...2.4.2) (2018-02-04)
204-
205-
<a name="2.4.1"></a>
206-
207-
## [2.4.1](https://github.com/davidroyer/vue2-editor/compare/v2.5.0...v2.4.1) (2018-02-04)
208-
209-
<a name="2.5.0"></a>
210-
211-
# [2.5.0](https://github.com/davidroyer/vue2-editor/compare/2.4.0...v2.5.0) (2018-02-04)
212-
213-
<a name="2.4.0"></a>
214-
215-
# [2.4.0](https://github.com/davidroyer/vue2-editor/compare/2.0.0...2.4.0) (2018-01-29)
216-
217-
<a name="2.0.0"></a>
218-
219-
# 2.0.0 (2017-04-06)
1+
// TODO: release log here ...

Diff for: LICENSE

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017. David Royer
3+
Copyright (c) 2019 David Royer
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: demo/Demo.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div class="demo">
3+
<h1>Plugin Demo</h1>
4+
<p>add: {{ a }} + {{ b }} = {{ $add(a, b) }}</p>
5+
</div>
6+
</template>
7+
8+
<script>
9+
export default {
10+
name: "Demo",
11+
data: () => ({ a: 1, b: 1 })
12+
};
13+
</script>
14+
15+
<style></style>

Diff for: demo/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Vue Plugin Demo</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
</body>
10+
</html>

Diff for: demo/main.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from 'vue'
2+
import App from '~entry'
3+
import plugin from '../src/index'
4+
5+
Vue.use(plugin)
6+
7+
Vue.config.productionTip = false
8+
9+
new Vue({
10+
// NOTE: if you need to inject as option, you can set here!
11+
// plugin,
12+
render: h => h(App)
13+
}).$mount('#app')

0 commit comments

Comments
 (0)