Skip to content

Commit 232fdd2

Browse files
committed
Implement v-model
1 parent 5f4c024 commit 232fdd2

File tree

8 files changed

+7247
-0
lines changed

8 files changed

+7247
-0
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/dist
2+
/test/functional-compiled.js
3+
/coverage
4+
/coverage-functional
5+
/coverage-snapshot
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "@vuejs/babel-sugar-v-model",
3+
"version": "0.1.0",
4+
"description": "Babel syntactic sugar for v-model support in Vue JSX",
5+
"main": "dist/plugin.js",
6+
"repository": "https://github.com/vuejs/jsx/tree/master/packages/babel-sugar-event-modifiers",
7+
"author": "Nick Messing <[email protected]>",
8+
"license": "MIT",
9+
"private": false,
10+
"scripts": {
11+
"pretest:snapshot": "yarn build:test",
12+
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js",
13+
"pretest:functional": "yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,./node_modules/@vuejs/babel-plugin-transform-vue-jsx/dist/plugin.js --out-file test/functional-compiled.js",
14+
"test:functional": "ava -v test/functional-compiled.js",
15+
"build": "rollup -c",
16+
"build:test": "rollup -c rollup.config.testing.js",
17+
"test": "rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional",
18+
"prepublish": "yarn build"
19+
},
20+
"devDependencies": {
21+
"@babel/cli": "^7.0.0-beta.49",
22+
"@babel/core": "^7.0.0-beta.49",
23+
"@babel/preset-env": "^7.0.0-beta.49",
24+
"ava": "^0.25.0",
25+
"jsdom": "^11.11.0",
26+
"jsdom-global": "^3.0.2",
27+
"nyc": "^11.8.0",
28+
"rollup": "^0.59.4",
29+
"rollup-plugin-babel": "beta",
30+
"rollup-plugin-istanbul": "^2.0.1",
31+
"rollup-plugin-uglify-es": "^0.0.1",
32+
"vue": "^2.5.16",
33+
"vue-template-compiler": "^2.5.16",
34+
"vue-test-utils": "^1.0.0-beta.11"
35+
},
36+
"dependencies": {
37+
"@babel/plugin-syntax-jsx": "^7.0.0-beta.49",
38+
"@vuejs/babel-helper-vue-jsx-merge-props": "^0.1.0",
39+
"@vuejs/babel-plugin-transform-vue-jsx": "^0.1.0",
40+
"camelcase": "^5.0.0"
41+
},
42+
"nyc": {
43+
"exclude": [
44+
"dist",
45+
"test"
46+
]
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import babel from 'rollup-plugin-babel'
2+
import uglify from 'rollup-plugin-uglify-es'
3+
4+
export default {
5+
input: 'src/index.js',
6+
plugins: [
7+
babel({
8+
presets: [
9+
[
10+
'@babel/preset-env',
11+
{
12+
targets: {
13+
node: '8',
14+
},
15+
modules: false,
16+
loose: true,
17+
},
18+
],
19+
],
20+
}),
21+
uglify(),
22+
],
23+
output: [
24+
{
25+
file: 'dist/plugin.js',
26+
format: 'cjs',
27+
},
28+
],
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import istanbul from 'rollup-plugin-istanbul'
2+
3+
export default {
4+
input: 'src/index.js',
5+
plugins: [istanbul()],
6+
output: [
7+
{
8+
file: 'dist/plugin.testing.js',
9+
format: 'cjs',
10+
},
11+
],
12+
}

0 commit comments

Comments
 (0)