Skip to content
Permalink
Browse files

Preset nochmals gewechselt auf preset-typescript, erste Vue-Komponent…

…e inkl. HTML Template eingefügt
  • Loading branch information...
Mcafee123 committed Apr 21, 2019
1 parent e8d5718 commit 2c14981c953ee5459a1caa6da2cc1968a0e4abad
Showing with 298 additions and 12 deletions.
  1. +2 −2 .babelrc
  2. +232 −0 package-lock.json
  3. +5 −0 package.json
  4. +4 −0 src/components/App.html
  5. +12 −0 src/components/App.ts
  6. +10 −1 src/main.ts
  7. +6 −4 tsconfig.json
  8. +9 −0 typings.d.ts
  9. +18 −5 webpack.config.js
@@ -1,9 +1,9 @@
{
"presets": [
"@babel/preset-env",
"@babel/typescript"
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
]

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -33,6 +33,7 @@
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
"@babel/polyfill": "^7.4.3",
"@babel/preset-env": "^7.4.3",
@@ -43,6 +44,10 @@
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"typescript": "^3.4.4",
"vue": "^2.6.10",
"vue-property-decorator": "^8.1.0",
"vue-template-compiler": "^2.6.10",
"vue-template-loader": "^1.0.0",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.3.1"
@@ -0,0 +1,4 @@
<div>
<h1>App.ts</h1>
<h5>Hello {{ name }}</h5>
</div>
@@ -0,0 +1,12 @@
import { Component, Vue } from 'vue-property-decorator'
import WithRender from './App.html' // ?style=./HelloWorld.scss'

@WithRender
@Component({
name: 'HelloWorld'
})
export default class App extends Vue {

public name = 'Tinu'

}
@@ -1,8 +1,17 @@
import Vue from 'vue'
import App from 'components/App'

export class C {
private x = 10
getX = () => this.x;
setX = (newVal: number) => { this.x = newVal; }
}

export let x = new C();
export let y = { ...{ some: "value" } }
export let y = { ...{ some: "value" } }

new Vue({
el: '#app',
template: '<App/>',
components: { App }
})
Oops, something went wrong.

0 comments on commit 2c14981

Please sign in to comment.
You can’t perform that action at this time.