Skip to content

Commit

Permalink
🔧 add playground environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vhoyer committed Nov 16, 2019
1 parent e4b7a3e commit 4685254
Show file tree
Hide file tree
Showing 9 changed files with 10,101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
README.md
jest.config.json
test/
playground/
coverage/
1 change: 1 addition & 0 deletions playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.cache
13 changes: 13 additions & 0 deletions playground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div id="app"></div>
<script src="index.ts"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions playground/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import Vue from 'vue';
import validationHelper from 'vue-prop-validation-helper';

const TestComponent = Vue.extend({
props: {
test: validationHelper({
default: 'maaaan',
options: ['world', 'me'],
required: true,
type: String,
}),
},
render(h) {
const test = this.test as string;

return h('div', ['hello ', test]);
},
});

// tslint:disable-next-line:no-unused-expression
new Vue({
el: '#app',
render(h) {
return h(TestComponent, {
props: {
test: 'man',
},
});
},
});
10,030 changes: 10,030 additions & 0 deletions playground/package-lock.json

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "test_project",
"version": "1.0.0",
"description": "",
"main": "index.html",
"scripts": {
"dev": "parcel index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"parcel-bundler": "^1.12.4",
"vue": "^2.6.10",
"vue-hot-reload-api": "^2.3.4",
"vue-prop-validation-helper": "../"
},
"devDependencies": {
"@vue/component-compiler-utils": "^3.0.2",
"vue-template-compiler": "^2.6.10"
}
}
1 change: 1 addition & 0 deletions playground/tsconfig.json
1 change: 1 addition & 0 deletions playground/tslint.json
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"exclude": [
"node_modules",
"playground",
"dist",
"test"
]
Expand Down

0 comments on commit 4685254

Please sign in to comment.