8000 Merge branch 'next' into typescript-example · przemkow/rollup-plugin-vue@466747b · GitHub
[go: up one dir, main page]

Skip to content

Commit 466747b

Browse files
authored
Merge branch 'next' into typescript-example
2 parents 18549e5 + b934ddf commit 466747b

File tree

9 files changed

+1321
-186
lines changed

9 files changed

+1321
-186
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
defaults:
66
run:

examples/no-template/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "no-template",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "rollup -c"
7+
},
8+
"dependencies": {
9+
"rollup": "^2.10.9",
10+
"rollup-plugin-vue": "link:../.."
11+
}
12+
}

examples/no-template/rollup.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import VuePlugin from 'rollup-plugin-vue'
2+
3+
export default [
4+
{
5+
input: 'src/HelloWorld.vue',
6+
output: {
7+
file: 'dist/HelloWorld.js',
8+
format: 'esm',
9+
sourcemap: 'inline',
10+
},
11+
plugins: [VuePlugin()],
12+
external: ['vue'],
13+
},
14+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script>
2+
import { h } from 'vue'
3+
4+
export default {
5+
props: ['name'],
6+
render() {
7+
return h('div', 'my render')
8+
},
9+
}
10+
</script>

examples/simple/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import VuePlugin from 'rollup-plugin-vue'
22

33
export default [
44
{
5-
input: 'src/App.vue',
5+
input: 'src/HelloWorld.vue',
66
output: {
7-
file: 'dist/app.js',
7+
file: 'dist/HelloWorld.js',
88
format: 'esm',
99
sourcemap: 'inline',
1010
},

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-vue",
3-
"version": "6.0.0-beta.3",
3+
"version": "6.0.0-beta.9",
44
"license": "MIT",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
@@ -25,16 +25,18 @@
2525
"@vue/compiler-sfc": "*"
2626
},
2727
"devDependencies": {
28+
"@rollup/plugin-node-resolve": "^9.0.0",
2829
"@types/debug": "^4.1.5",
2930
"@types/jest": "^25.2.3",
3031
"@types/node": "^13.13.2",
31-
"@vue/compiler-sfc": "^3.0.0-beta.14",
32+
"@vue/compiler-sfc": "^3.0.0-rc.5",
3233
"husky": "^4.2.0",
3334
"jest": "^26.0.1",
3435
"lint-staged": "^10.1.7",
3536
"npm-run-all": "^4.1.5",
3637
"prettier": "^2.0.5",
3738
"rollup": "^2.7.2",
39+
"rollup-plugin-postcss": "^3.1.8",
3840
"ts-jest": "^26.0.0",
3941
"typescript": "^3.9.3"
4042
},

0 commit comments

Comments
 (0)
0